IT/System & Network
CentOS 에서 파이썬 2.7/3.4 사용하기
Hotman
2016. 8. 16. 15:46
출처:
http://lunatine.net/python27-34-on-rhel-centos/
*** 가끔 python 을 소스로 추가 설치하면 아래와 같은 메시지가 나오는 경우가 있음
python2.7: error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No such file or directory
이 때는 아래와 같이 작업을 해줘야 함
# ln -s /usr/local/bin/python2.7 /usr/bin/python2.7
# echo "/usr/local/lib/python2.7" > /etc/ld.so.conf.d/python27.conf
# echo "/usr/local/lib" >> /etc/ld.so.conf.d/python27.conf
# ldconfig