pyenvでpython 3.5.1インストール時に"Missing the OpenSSL lib"でエラー
概要
pyenvでpython 3.5.1をインストールしようとしたらエラーが発生。
詳細
# pyenv install 3.5.1
Downloading Python-3.5.1.tgz...
-> https://www.python.org/ftp/python/3.5.1/Python-3.5.1.tgz
Installing Python-3.5.1...
WARNING: The Python bz2 extension was not compiled. Missing the bzip2 lib?
WARNING: The Python readline extension was not compiled. Missing the GNU readline lib?
ERROR: The Python ssl extension was not compiled. Missing the OpenSSL lib?
Please consult to the Wiki page to fix the problem.
https://github.com/yyuu/pyenv/wiki/Common-build-problems
BUILD FAILED (CentOS release 6.7 (Final) using python-build 20160509)
Inspect or clean up the working tree at /tmp/python-build.20160516110941.16104
Results logged to /tmp/python-build.20160516110941.16104.log
Last 10 log lines:
(cd /root/.pyenv/versions/3.5.1/share/man/man1; ln -s python3.5.1 python3.1)
if test "xupgrade" != "xno" ; then \
case upgrade in \
upgrade) ensurepip="--upgrade" ;; \
install|*) ensurepip="" ;; \
esac; \
./python -E -m ensurepip \
$ensurepip --root=/ ; \
fi
Ignoring ensurepip failure: pip 7.1.2 requires SSL/TLS
原因
OpenSSLのライブラリが入っていないため。
対処方法
# yum -y install openssl-devel
pyenvでpythonの2.7.11インストール失敗時に"no acceptable C compiler found in $PATH"
概要
pyenvでpythonの2.7.11をインストールしようとしたらエラーが発生。
環境情報
VirtualBox: 5.0.16r105871
詳細
# pyenv install 2.7.11
Downloading Python-2.7.11.tgz...
-> https://www.python.org/ftp/python/2.7.11/Python-2.7.11.tgz
Installing Python-2.7.11...
BUILD FAILED (CentOS release 6.7 (Final) using python-build 20160509)
Inspect or clean up the working tree at /tmp/python-build.20160516110407.13929
Results logged to /tmp/python-build.20160516110407.13929.log
Last 10 log lines:
checking for --with-universal-archs... 32-bit
checking MACHDEP... linux2
checking EXTRAPLATDIR...
checking for --without-gcc... no
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/tmp/python-build.20160516110407.13929/Python-2.7.11':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
原因
Cのコンパイラがないため。
対処方法
gitコマンドでprenvをインストールしようとしたら失敗
概要
gitコマンドでpyenvをインストールしようとしたらエラーが発生。
環境情報
VirtualBox: 5.0.16r105871
Linux: CentOS 6.7
詳細
# git clone https://github.com/yyuu/pyenv.git ~/.pyenv
-bash: git: コマンドが見つかりません
原因
gitコマンドがインストールされていないため。
対処方法
yumでgitをインストールする。
# yum install git
VirtualBox CentOS 6.7 で PYCURL ERROR 6 - "Couldn't resolve host 'ftp.riken.jp'"が発生した時の対処方法
概要
Virtualbox CentOS環境でpython-setuptoolsをインストールしようとしたらエラーが発生。
環境情報
VirtualBox: 5.0.16r105871
Linux: CentOS 6.7
事象
$ yum install python-setuptools
PYCURL ERROR 6 - "Couldn't resolve host 'ftp.riken.jp'"
原因
IPv6が有効になっているため。
対処方法
IPv6を無効に設定する。
・/etc/sysconfig/networkを開いて以下を末尾に追加する。
$ sudo vim /etc/sysconfig/network
NETWORKING_IPV6=no
・/etc/modprobe.d/disable-ipv6.confを作成して以下内容を記載する。
$ vim /etc/modprobe.d/disable-ipv6.conf
options ipv6 disable=1
・/etc/sysconfig/network-scripts/ifcfg-eth0を開いて、以下を末尾に追加する。
(開くファイルは環境により異なります。私の場合はeth0を外部に繋いでいるため上記。)
$ vim /etc/sysconfig/network-scripts/ifcfg-eth0
IPV6INIT=no
・ネットワークをリスタートする。
$ service network restart
・yum updateを試してみる。
$ sudo yum update
・再度コマンドを実行する。
$ sudo yum install python-setuptools
ATOMにインストールしたWeb関連で必要そうなプラグインをまとめてみた
今までサクラエディタやSublimeText3を主流に使ってましたが、ノートPCを新調したのに合わせてATOMをインストールしました。
今回は検索してインストールしたプラグインをまとめてみました。
プラグインのインストール方法
ATOMはすでにインストールされている状態で以下手順でプラグインをインストールします。
File→Settings→Install→プラグインを検索→Install
japanese-menu
メニューを日本語化するプラグイン。
emmet
元々はZen-Codingという名前で呼ばれていたものです。emmetはHTML/CSSをショートカット+スニペットで簡略化してコードを書くことで作業を効率化できるプラグインです。
color-picker
pigments
cssでrgbを設定すると、自動的にその背景色を付けてくれるプラグイン。
project-manager
プロジェクトを管理するプラグイン。
linter
リアルタイムにエラーを検出するプラグイン。これ単体では意味がなく、言語別のプラグインもインストールが必要。
linter-php
PHP用のlinter。
git-plus
ATOM上でGITコマンドを実行できるようにするプラグイン。
git-control
tool-bar
エディタの好きなところにボタンを配置するプラグイン。
好きなアイコン&コマンドでボタンを設置できるプラグイン。