由于我在 ubuntu 上安装了 matlab,当我运行 ssh 时,我得到了类似的信息
$ ssh
ssh: /usr/local/MATLAB/R2018a/bin/glnxa64/libcrypto.so.1.0.0: no version information available (required by ssh)
ssh: /usr/local/MATLAB/R2018a/bin/glnxa64/libcrypto.so.1.0.0: no version information available (required by ssh)
usage: ssh [-1246AaCfGgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec]
[-D [bind_address:]port] [-E log_file] [-e escape_char]
[-F configfile] [-I pkcs11] [-i identity_file] [-L address]
[-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
[-Q query_option] [-R address] [-S ctl_path] [-W host:port]
[-w local_tun[:remote_tun]] [user@]hostname [command]
$ type ssh
ssh is /usr/bin/ssh
发生了什么?我该如何解决?
答案1
根据steeldriver的建议,我查看了一下/etc/environment
,LD_LIBRARY_PATH
发现它被定义为
LD_LIBRARY_PATH="/usr/local/MATLAB/R2018a/runtime/glnxa64:/usr/local/MATLAB/R2018a/bin/glnxa64:/usr/local/MATLAB/R2018a/sys/os/glnxa64:/usr/local/MATLAB/R2018a/sys/opengl/lib/glnxa64"
我注释了这行,ssh 工作正常。Matlab 似乎可以运行,但我没有详细查看是否一切正常。
对于像我这样不知道它是什么的人LD_LIBRARY_PATH
来说一组以冒号分隔的目录,应首先在其中搜索库。