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