-
-
Save kenzo0107/7ff8994a65c7a97bf52a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# gmp バージョン確認 | |
rpm -qa |grep gmp | |
gmp-4.1.4-10.el5 | |
gmp-4.1.4-10.el5 | |
gmp-devel-4.1.4-10.el5 | |
gmp-devel-4.1.4-10.el5 | |
# モジュール置き場で gmp-5系インストール(今回は5.1.1) | |
cd /usr/local/src/ | |
wget ftp://ftp.gmplib.org/pub/gmp/gmp-5.1.1.tar.bz2 | |
tar jxf gmp-5.1.1.tar.bz2 | |
cd gmp-5.1.1 | |
# ソースチェック & Makefile生成 | |
./configure | |
# ソースからプログラムをコンパイルしてビルド | |
make | |
# チェック | |
make check | |
# コンパイルしてインストール | |
make install | |
# 依存関係更新 | |
/sbin/ldconfig | |
# Python リビルド | |
cd /usr/local/src/Python-2.7.6 | |
./configure | |
make | |
make install | |
# 依存関係更新 | |
/sbin/ldconfig | |
# pycryptoをインストールし直し | |
pip uninstall pycrypto | |
pip install pycrypto |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment