2013-11-21 82 views
0

我在Redhat上安裝了Academic Enthought Cannopy。當我在導入錯誤:libjpeg.so.7:無法打開共享目標文件:沒有這樣的文件或目錄

import _imaging 

鍵入它打印出錯誤消息:

Traceback (most recent call last): 
File "<stdin>", line 1, in <module> 
ImportError: libjpeg.so.7: cannot open shared object file: No such file or directory 

但Enthough網站上,有人說,libjpeg的已被列入。

Canopy的版本是1.1.0。的env在終端的輸出是:

MANPATH=/opt/torque/man:/usr/NX/bin:/usr/kerberos/bin:/usr/java/latest/bin:/share/apps/anaconda/bin:/usr/local/bin:/bin:/usr/bin:/opt/bio/ncbi/bin:/opt/bio/mpiblast/bin/:/opt/bio/hmmer/bin:/opt/bio/EMBOSS/bin:/opt/bio/clustalw/bin:/opt/bio/tcoffee/bin:/opt/bio/phylip/exe:/opt/bio/mrbayes:/opt/bio/fasta:/opt/bio/glimmer/bin://opt/bio/glimmer/scripts:/opt/bio/gromacs/bin:/opt/bio/gmap/bin:/opt/bio/tigr/bin:/opt/bio/autodocksuite/bin:/opt/ganglia/bin:/opt/ganglia/sbin:/opt/openmpi/bin/:/opt/maui/bin:/opt/torque/bin:/opt/torque/sbin 
BIOROLL=/opt/bio 

TERM=xterm-256color 
SHELL=/bin/bash 
HISTSIZE=1000 

SSH_CLIENT=141.211.38.9 36340 22 
PHENIX_INSTALLER_DATE=300920111225 
ROCKSROOT=/opt/rocks/share/devel 
PHENIX_MVERSION=redhat-e5.4 
PHENIX=/share/apps/phenix-1.7.2-869 
SSH_TTY=/dev/pts/8 
ANT_HOME=/opt/rocks 
USER=xqding 
PHENIX_MTYPE=intel-linux-2.6-x86_64 
LS_COLORS= 
ROCKS_ROOT=/opt/rocks 
VIRTUAL_ENV=/home/xq/Enthought/Canopy_64bit/User 
MAIL=/var/spool/mail/xq 
PATH=/home/xqding/Enthought/Canopy_64bit/User/bin:/home/xq/Enthought/Canopy_64bit/User/bin:/home/xq/apps/bin:/share/apps/phenix-1.7.2-869/build/intel-linux-2.6-x86_64/bin:/library/yzhang/bin/HMMER:/usr/bin:/bin:/sbin:/usr/sbin:/mnt/sysimage/bin:/mnt/sysimage/usr/bin:/mnt/sysimage/usr/sbin:/mnt/sysimage/sbin:/mnt/sysimage/usr/X11R6/bin:/tmp/updates/rocks/bin:/tmp/updates/usr/sbin:/tmp/updates/sbin:/tmp/updates/usr/bin:/opt/rocks/bin:/opt/rocks/sbin:/opt/sun-ct/bin:/home/xq/apps/cd-hit-v4.6.1-2012-08-27:/home/xq/apps/samtools-0.1.19:/library/blast/bin:/home/xq/apps/cd-hit-v4.6-2012-04-25:/home/xq/apps/dssp-2.2.1:/home/xqding/apps/dssp-ver2hor:/home/xq/bin:/home/xq/apps/python/2.7/bin 
NXDIR=/usr/NX 
INPUTRC=/etc/inputrc 
PWD=/home/xqding/appsrc 
JAVA_HOME=/usr/java/latest 
EDITOR=emacsclient 
LANG=en_US.iso885915 
PHENIX_USE_MTYPE=intel-linux-2.6-x86_64 
PHENIX_ENVIRONMENT=1 
BLASTDB=/home/xqding/bio/ncbi/db 
PHENIX_VERSION=1.7.2 
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass 
PHENIX_RELEASE_TAG=869 
SHLVL=1 
HOME=/home/xq 
ROLLSROOT=/opt/rocks/share/devel/src/roll 
LOGNAME=xqding 
CVS_RSH=ssh 
LESSOPEN=|/usr/bin/lesspipe.sh %s 
BLASTMAT=/opt/bio/ncbi/data 
G_BROKEN_FILENAMES=1 
_=/usr/bin/env 

我下載的版本的libjpeg 7的源代碼和紅帽計算機上安裝它。然後將庫目錄添加到export LD_LIBRARY_PATH=directory of libjpeg。然後問題就解決了。我很感激我從這裏得到的幫助。所以我只是添加解決方案。

+0

你正在運行什麼版本的Canopy?自從Canopy 1.0.3在6月發佈以來,我們還沒有看到這個錯誤消息。你在終端的'env'的輸出是什麼? –

+0

我使用Canopy版本1.1.0。我在原始問題中粘貼了'env'。因爲它太長了。 – Negelis

+0

我也在Mac上安裝相同的版本。在mac上沒有這個問題。 – Negelis

回答

2

與您的RedHat一起安裝的libjpeg版本可能已過時(您是否在RedHat 5上?)。嘗試打開RedHat軟件包管理器並查找「jpeg」。安裝更高版本的庫可能會解決此問題。

+0

是的。我正在使用RedHat 5.我是否需要安裝該庫?因爲圖書館已根據Canopy的網站列入Canopy:[https://www.enthought.com/products/canopy/package-index/] – Negelis

+1

謝謝,peberkes。我安裝了libjepg的版本7,現在它可以工作。非常感謝。 – Negelis

+0

我很高興你設法解決你的問題。我會向Canopy團隊報告矛盾。 – pberkes

相關問題