linux安装chimera,遇到ImportError: libXss.so.1: cannot open shared object file,解决办法

在服务器上安装chimera,遇到ImportError: libXss.so.1: cannot open shared object file: No such file or directory,解决办法参考苏南大叔博文

[wks@localhost software]$ ./chimera-1.16-linux_x86_64.bin
UnZipSFX 5.41 of 16 April 2000, by Info-ZIP (Zip-Bugs@lists.wku.edu).
Original path: '/home/wks/software'
  inflating: chimera_install_U3td3o/installer
  inflating: chimera_install_U3td3o/chimera.bin

Enter install location: ~/.local/UCSF-Chimera64-1.16
Extracting files.  This may take a few minutes.
Executing command: './chimera.bin -q -d /home/wks/.local/UCSF-Chimera64-1.16'
UnZipSFX 5.52 of 28 February 2005, by Info-ZIP (http://www.info-zip.org).

Install desktop menu and icon? yes
Traceback (most recent call last):
  File "/home/wks/.local/UCSF-Chimera64-1.16/share/__main__.py", line 73, in <module>
    value = chimeraInit.init(sys.argv)
    from chimera import replyobj, selection, SessionPDBio, version
  File "/home/wks/.local/UCSF-Chimera64-1.16/share/chimera/replyobj.py", line 24, in <module>
    import Tkinter
  File "/home/wks/.local/UCSF-Chimera64-1.16/lib/python2.7/lib-tk/Tkinter.py", line 39, in <module>
    import _tkinter # If this fails your Python may not be configured for Tk
ImportError: libXss.so.1: cannot open shared object file: No such file or directory
ERROR in chimera_final_install: unable to install desktop icon:
result code from installer: 256
Installer returned unexpected return code '256'
Cleaning up extract dir, 'chimera_install_U3td3o'
Installation is done; press return.

运行命令:

[wks@localhost software]$ repoquery --nvr --whatprovides libXss.so.1
libXScrnSaver-1.2.2-6.1.el7
# 缺少libXScrnSaver-1.2.2-6.1.el7
# 安装libXScrnSaver-1.2.2-6.1.el7
[wks@localhost software]$ sudo yum install libXScrnSaver
# 安装好再次运行
[wks@localhost software]$ ./chimera-1.16-linux_x86_64.bin
UnZipSFX 5.41 of 16 April 2000, by Info-ZIP (Zip-Bugs@lists.wku.edu).
Original path: '/home/wks/software'
  inflating: chimera_install_n5WcGI/installer
  inflating: chimera_install_n5WcGI/chimera.bin

Enter install location: ~/.local/UCSF-Chimera64-1.16 # 输入回车
Extracting files.  This may take a few minutes.
Executing command: './chimera.bin -q -d /home/wks/.local/UCSF-Chimera64-1.16'
UnZipSFX 5.52 of 28 February 2005, by Info-ZIP (http://www.info-zip.org).

Install desktop menu and icon? yes # 输入回车

Install symbolic link to chimera executable for command line use in which directory?
    0 -- no link
    1 -- /usr/lib64/openmpi/bin/
    2 -- /home/wks/anaconda3/bin
	......  
    18 -- /home/wks/bin
[hit Enter for default (0)]: 2  # 默认是0,我选择2,在/home/wks/anaconda3/bin目录下就会出现chimera的链接

Create unversioned link to chimera executable in same directory? yes # 输入回车
......
......
Listing /home/wks/.local/UCSF-Chimera64-1.16/syslibs ...

-------------------------------------------------
To (re)install desktop menu and icon later, run:

    /home/wks/.local/UCSF-Chimera64-1.16/bin/xdg-setup install

If run as root, then it only installs the menu
(for all users).  Otherwise, it installs the icon
(and menu, if need be) for the current user.
-------------------------------------------------
result code from installer: 0
Install succeeded.
Cleaning up extract dir, 'chimera_install_n5WcGI'
Installation is done; press return.

# 到此就安装完成
# 运行chimera,弹出来chimera界面
[wks@localhost software]$ chimera

在这里插入图片描述

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值