首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > perl python >

python运行异常

2012-08-26 
python运行错误?python安装过程,我通常都是使用下面的命令:?./configure --enable-shared && make && make

python运行错误

?python安装过程,我通常都是使用下面的命令:

?

./configure --enable-shared && make && make install

?

使用--enable-shared参数是为了一些依赖它的软件可以成功安装,比如ganglia。

?

今天成功安装了python2.7.2,但是运行报如下错误:

?

python: error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No such file or directory

?

解决方法如下:

?

vi /etc/ld.so.conf.d/python2.7.conf

敲入后面内容:/usr/local/lib

?

保存后,运行:

ldconfig

?

再次运行python命令,就OK了

?

?

热点排行