apt-get install
安裝openssl
wget http://artfiles.org/openssl.org/source/old/1.0.1/openssl-1.0.1f.tar.gz
tar xf openssl-1.0.1f.tar.gz
./config --prefix=/usr/local/ssl
make clean
make && make install
mv -f /usr/bin/openssl /usr/bin/openssl.old
mv -f /usr/include/openssl /usr/include/openssl.old #不一定存在
ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl #修改軟鏈,指向新版本的openssl路徑
ln -s /usr/local/ssl/include/openssl /usr/include/openssl
echo "/usr/local/ssl/lib">>/etc/ld.so.conf
#添加so庫的路徑,添加完成之後,運行ldconfig ,將新增的so 文件緩存到/etc/ld.so.cache中;
ldconfig -v
openssl version -a #確認版本是否爲1.0.1f
問題:安裝openssl ERROR:POD document had syntax errors at /usr/bin/pod2man line 71
installing man1/cms.1
cms.pod around line 457: Expected text after =item, not a number
cms.pod around line 461: Expected text after =item, not a number
cms.pod around line 465: Expected text after =item, not a number
cms.pod around line 470: Expected text after =item, not a number
cms.pod around line 474: Expected text after =item, not a number
POD document had syntax errors at /usr/bin/pod2man line 71.
make: *** [install_docs] 錯誤 255
__build_openssl finish......
__build_wpa_supplicant begin......
Building wpa_supplicant library
make -f Makefile_wpa_supplicant
解決方法:
------->
打開/usr/bin/pod2man 這個配置文件看一下 可以的話 註釋掉 第71行 在編譯 用#註釋
安裝python2.7.6
wget http://www.python.org/ftp/python/2.7.6/Python-2.7.6.tar.xz
xz -d Python-2.7.6.tar.xz
tar xvf Python-2.7.6.tar
cd Python-2.7.6
./configure --prefix=/usr/local
make && make install
rm -rf /usr/bin/python
ln -s /usr/local/bin/python /usr/bin/python
ln -s /usr/local/include/python2.7/ /usr/include/python2.7
echo "/usr/local/lib" >>/etc/ld.so.conf
ldconfig -v
python --version #版本號爲2.7.6
問題:File "build/temp.linux-aarch64-2.7/libffi/fficonfig.py", line 32, in <module>
ffi_sources += ffi_platforms['AARCH64']
KeyError: 'AARCH64'
Makefile:476: recipe for target 'sharedmods' failed
make: *** [sharedmods] Error 1
解決
修改:vi Makefile 77行添加:LDFLAGS= -L/usr/loca/ssll/lib
vi build/temp.linux-aarch64-2.7/libffi/fficonfig.py
添加 ffi_platforms = {
'AARCH64': ['src/aarch64/ffi.c', 'src/aarch64/sysv.S'], }
安裝setuptools
https://pypi.org/project/setuptools/0.6c11/#files
cd setuptools-0.6c11
python setup.py build
python setup.py install
安裝pip
https://pypi.org/project/pip/9.0.1/#files
cd pip-9.0.1
python setup.py install
pip -V