(1)、python 2.7安裝
https://www.python.org/ftp/python/2.7.8/Python-2.7.8.tgz
#tarxvzfPython-2.7.8.tgz
#cdPython-2.7.8
#./configure--prefix=/usr/local
#make--jobs=`grepprocessor/proc/cpuinfo|wc-l`
#makeinstall
## 將python頭文件拷貝到標准目錄,以避免編譯saltstack時,找不到所需的頭文件
#cd/usr/local/include/python2.7
#cp-a./*/usr/local/include/
## 備份舊版本的python,並符號鏈接新版本的python
#cd/usr/bin
#mvpythonpython2.6
#ln-s/usr/local/bin/python
## 修改yum腳本,使其指向舊版本的python,已避免其無法運行
# vim /usr/bin/yum
#!/usr/bin/python --> #!/usr/bin/python2.6
(2)、PyYAML模塊安裝
http://pyyaml.org/download/libyaml/yaml-0.1.5.tar.gz
https://pypi.python.org/packages/source/P/PyYAML/PyYAML-3.11.tar.gz
#tarxvzfyaml-0.1.5.tar.gz#cdyaml-0.1.5
#./configure--prefix=/usr/local
#make--jobs=`grepprocessor/proc/cpuinfo|wc-l`
#makeinstall
#tarxvzfPyYAML-3.11.tar.gz
#cdPyYAML-3.11
#pythonsetup.pyinstall
(3)、setuptools模塊安裝
https://pypi.python.org/packages/source/s/setuptools/setuptools-7.0.tar.gz
#tarxvzfsetuptools-7.0.tar.gz
#cdsetuptools-7.0
#pythonsetup.pyinstall
(4)、markupsafe模塊安裝
https://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-0.9.3.tar.gz
#tarxvzfMarkupSafe-0.9.3.tar.gz
#cdMarkupSafe-0.9.3
#pythonsetup.pyinstall
(5)、jinja2模塊安裝
https://pypi.python.org/packages/source/J/Jinja2/Jinja2-2.7.3.tar.gz
#tarxvzfJinja2-2.7.3.tar.gz
#cdJinja2-2.7.3
#pythonsetup.pyinstall
(6)、autocon模塊安裝
http://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz
注意:
系統自帶的autoconf版本為2.63,在編譯ZeroMQ時,由於版本較低,會報錯不通過,故需安裝大於2.63的版本。
#tarxvzfautoconf-2.69.tar.gz
#cdautoconf-2.69
#./configure
#make
#makeinstall
如果原來已經裝過,還需要覆蓋原來的。
cp
/usr/local/bin/autoconf
/usr/bin/
cp
/usr/local/bin/autoreconf
/usr/bin/
## 其他依賴庫安裝
#yum-yinstalllibuuid.x86_64libuuid-devel.x86_64
#yum-yinstalluuid.x86_64uuid-devel.x86_64
#yum-yinstalluuid-c++.x86_64uuid-c++-devel.x86_64
https://github.com/jedisct1/libsodium/archive/1.0.1.tar.gz
#tarxvzflibsodium-1.0.1.tar.gz
#cdlibsodium-1.0.1
#./autogen.sh
#./configure--prefix=/usr/local
#make--jobs=`grepprocessor/proc/cpuinfo|wc-l`
#makeinstall
.
/autogen
.sh報錯:
Can't
exec
"aclocal"
:沒有那個文件或目錄at
/usr/share/autoconf/Autom4te/FileUtils
.pmline326.
autoreconf:failedtorunaclocal:沒有那個文件或目錄
解決方法:
1
yum
install
automake
報錯:
configure.ac:418:error:possiblyundefinedmacro:AC_LIBTOOL_WIN32_DLL
Ifthistokenandothersarelegitimate,pleaseusem4_pattern_allow.
SeetheAutoconfdocumentation.
autoreconf:
/usr/bin/autoconf
failedwith
exit
status:1
解決方法:
yum
install
libtool
http://download.zeromq.org/zeromq-4.0.5.tar.gz
https://pypi.python.org/packages/source/p/pyzmq/pyzmq-14.4.1.tar.gz
#tarxvzfzeromq-4.0.5.tar.gz
#cdzeromq-4.0.5
#./autogen.sh
#./configure--prefix=/usr/local
#make--jobs=`grepprocessor/proc/cpuinfo|wc-l`
#makeinstall
#tarxvzfpyzmq-14.4.1.tar.gz
#cdpyzmq-14.4.1
#pythonsetup.pyconfigure--zmq=/usr/local
#pythonsetup.pyinstall
(7)、M2Crypto模塊安裝
# yum -y install swig.x86_64
http://www.openssl.org/source/openssl-1.0.1g.tar.gz
#tarxvzfopenssl-1.0.1g.tar.gz
#cdopenssl-1.0.1g
#./configshared--prefix=/usr/local
#make&&makeinstall
cp
-a
/usr/local/include/openssl
/usr/include/
vimPython-2.7.8
/Modules/Setup
#Socketmodulehelperforsocket(2)
_socketsocketmodule.ctimemodule.c
#SocketmodulehelperforSSLsupport;youmustcommentouttheother
#socketlineabove,andpossiblyedittheSSLvariable:
#SSL=/usr/local/ssl
_ssl_ssl.c\
-DUSE_SSL-I$(SSL)
/include
-I$(SSL)
/include/openssl
\
-L$(SSL)
/lib
-lssl-lcrypto
取消那四行的注釋
# vim/etc/ld.so.conf
/usr/local/lib
/usr/local/lib64
# /sbin/ldconfig
# cd Python-2.7.8
# make && make install
https://pypi.python.org/packages/source/M/M2Crypto/M2Crypto-0.22.3.tar.gz
#tarxvzfM2Crypto-0.22.3.tar.gz
#cdM2Crypto-0.22.3
#pythonsetup.pyinstall
saltstack安裝
https://github.com/saltstack/salt/releases/download/v2014.7.0/salt-2014.7.0.tar.gz
# tar xvzf salt-2014.7.0.tar.gz
# cd salt-2014.7.0
# python setup.py install
# salt --versions-report
http://xxxxxx/Linuxjc/1156031.html TechArticle