PIL-libjpeg.so.8:无法打开共享库文件:无此文件或目录
编译了libjpeg v8,PIL 1.1.7,并为_imaging导入了在系统Python上的作品,但是在virtualenv内喷出了此错误:
libjpeg.so.8: cannot open shared object file: No such file or directory
这是在virtualenv中使用python -v解释器运行的错误
>>> import _imagingdlopen("/home/ygamretuta/dev/py/django/lib/python2.6/site-packages/PIL/_imaging.so", 2);
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: libjpeg.so.8: cannot open shared object file: No such file or directory
这是路径:
/home/ygamretuta/dev/py/django/lib/python2.6/site-packages/distribute-0.6.14-py2.6.egg/home/ygamretuta/dev/py/django/lib/python2.6/site-packages/pip-0.8.1-py2.6.egg
/home/ygamretuta/dev/py/django/lib/python2.6
/home/ygamretuta/dev/py/django/lib/python2.6/plat-linux2
/home/ygamretuta/dev/py/django/lib/python2.6/lib-tk
/home/ygamretuta/dev/py/django/lib/python2.6/lib-old
/home/ygamretuta/dev/py/django/lib/python2.6/lib-dynload
/usr/lib/python2.6
/usr/lib/python2.6/plat-linux2
/usr/lib/python2.6/lib-tk
/home/ygamretuta/dev/py/django/lib/python2.6/site-packages
/home/ygamretuta/dev/py/django/lib/python2.6/site-packages/PIL
我正在使用Ubuntu 10.10,这是uname-a输出:
Linux ygam-desktop 2.6.35-28-generic #49-Ubuntu SMP Tue Mar 1 14:40:58 UTC 2011 i686 GNU/Linux
我正在使用Python 2.6
我已经遵循以下指南:
http://appelfreelance.com/2010/06/libjpeg-pil-snow-leopard-
python2-6-_jpeg_resync_to_restart/
http://www.jooncode.com/2010/12/02/python-pil-jpeg-resync-restart-error-
imaging-module-solve/
http://djangodays.com/2008/09/03/django-imagefield-validation-error-caused-
by-incorrect-pil-installation-on-
mac/
回答:
一个快速修复是将包含该目录的目录添加libjpeg.so.8
到您的/etc/ld.so.conf
文件中,然后运行ldconfig
以上是 PIL-libjpeg.so.8:无法打开共享库文件:无此文件或目录 的全部内容, 来源链接: utcz.com/qa/400910.html