一、下载SecureCRT for linux版本
链接:https://pan.baidu.com/s/1QgtfLtIkFtqpmK9_Jic_AA
提取码:xv1y
根据压缩包内txt文档进行操作,需要一步步导入注册信息,不要直接复制粘贴
二、缺失libssl1.0.0修复
在点击SecureCRT无效果时,采用Shell方式进行执行,会提示当前运行程序缺失文件,如缺失libssl1.0.0此文件,可在终端输入sudo apt install libssl1.0.0,即可修复
三、下载Python2.7
不要使用系统自带的Python包,在执行过程中会提示缺失libpython2.7.so.1.0,通过shell命令行将python下载至本地,当前在哪个路径下打开终端,python便会下载到哪里
[root@gyx-VMware-Virtual-Platform]/home/gyx# wget https://www.python.org/ftp/python/2.7.5/Python-2.7.5.tgz
然后将python进行解压
[gyx@gyx-VMware-Virtual-Platform]~/桌面/py$ tar -zvxf Python-2.7.5.tgz
[gyx@gyx-VMware-Virtual-Platform]~/桌面/py$ cd Python-2.7.5/sudo su
[root@gyx-VMware-Virtual-Platform]/home/gyx/桌面/py/Python-2.7.5# ./configure --prefix=/usr/local/python2.7 --with-threads --enable-shared
[root@gyx-VMware-Virtual-Platform]/home/gyx/桌面/py/Python-2.7.5# make && make altinstall
安装完毕后将python包中库文件转移到/usr/lib/下
[root@gyx-VMware-Virtual-Platform]/home/gyx/桌面/py/Python-2.7.5# ln -s /usr/local/python2.7/lib/libpython2.7.so /usr/lib
[root@gyx-VMware-Virtual-Platform]/home/gyx/桌面/py/Python-2.7.5# ln -s /usr/local/python2.7/lib/libpython2.7.so.1.0 /usr/lib
[root@gyx-VMware-Virtual-Platform]/home/gyx/桌面/py/Python-2.7.5# ln -s /usr/local/python2.7/bin/python2.7 /usr/bin/python
[root@gyx-VMware-Virtual-Platform]/home/gyx/桌面/py/Python-2.7.5# ln -s /usr/local/python2.7/lib/libpython2.7.so /usr/lib64
[root@gyx-VMware-Virtual-Platform]/home/gyx/桌面/py/Python-2.7.5# ln -s /usr/local/python2.7/lib/libpython2.7.so.1.0 /usr/lib64
查看python是否安装成功
[root@gyx-VMware-Virtual-Platform]/home/gyx/桌面/py/Python-2.7.5# python --version
四、解决ubuntu中的bug
此时运行SecureCRT若出现此问题,证明当前版本存在bug
Traceback (most recent call last):
File "/usr/lib/python2.7/site.py", line 563, in <module>
main()
File "/usr/lib/python2.7/site.py", line 545, in main
known_paths = addusersitepackages(known_paths)
File "/usr/lib/python2.7/site.py", line 272, in addusersitepackages
user_site = getusersitepackages()
File "/usr/lib/python2.7/site.py", line 247, in getusersitepackages
user_base = getuserbase() # this will also set USER_BASE
File "/usr/lib/python2.7/site.py", line 237, in getuserbase
USER_BASE = get_config_var('userbase')
File "/usr/lib/python2.7/sysconfig.py", line 578, in get_config_var
return get_config_vars().get(name)
File "/usr/lib/python2.7/sysconfig.py", line 524, in get_config_vars
_init_posix(_CONFIG_VARS)
File "/usr/lib/python2.7/sysconfig.py", line 408, in _init_posix
from _sysconfigdata import build_time_vars
File "/usr/lib/python2.7/_sysconfigdata.py", line 6, in <module>
from _sysconfigdata_nd import *
ImportError: No module named _sysconfigdata_nd
需要执行下列命令
[root@gyx-VMware-Virtual-Platform]/home/gyx/桌面/py/Python-2.7.5# sudo ln -s /usr/lib/python2.7/plat-*/_sysconfigdata_nd.py /usr/lib/python2.7/
此时在执行SecureCRT可以成功运行。