Linux
Linux에 Python 3.4.2 설치하기
bluedevil77
2015. 1. 6. 19:20
1. Python 3.4.2 다운로드
2. 압축풀기
3. Make
4. Document Download 시 Root 권한으로
5. Configuringuring
[출처] http://www.linuxfromscratch.org/blfs/view/svn/general/python3.html
sudo apt-get install wget wget http://www.python.org/ftp/python/3.4.2/Python-3.4.2.tar.xz
2. 압축풀기
xz -d Python-3.4.2.tar.xz tar -xf Python-3.4.2.tar.xz
3. Make
CXX="/usr/bin/g++" \Root 권한으로
./configure --prefix=/usr \
--enable-shared \
--with-system-expat \
--with-system-ffi \
--without-ensurepip &&
make
make install &&
chmod -v 755 /usr/lib/libpython3.4m.so &&
chmod -v 755 /usr/lib/libpython3.so
4. Document Download 시 Root 권한으로
install -v -dm755 /usr/share/doc/python-3.4.2/html &&
tar --strip-components=1 \
--no-same-owner \
--no-same-permissions \
-C /usr/share/doc/python-3.4.2/html \
-xvf ../python-3.4.2-docs-html.tar.bz2
5. Configuringuring
export PYTHONDOCS=/usr/share/doc/python-3.4.2/html
[출처] http://www.linuxfromscratch.org/blfs/view/svn/general/python3.html