Pythonのコンパイルに必要なパッケージ

Python 3.3.2

Package Debian CentOS
_bz2 libbz2-dev bzip2-devel
_curses(_curses_panel) libncurses5-dev bzip2-devel
_dbm(_gdbm) libgdbm-dev gdbm-devel
_lzma liblzma-dev xz-devel
_sqlite3 libsqlite3-dev sqlite-devel
_ssl libssl-dev openssl-devel
_tkinter tk-dev tk-devel
readline libreadline-dev readline-devel
zlib zlibc zlib-devel

#!/bin/bash
#For Debian
apt-get install libbz2-dev \
                     libncurses5-dev \
                     libgdbm-dev \
                     liblzma-dev \
                     libsqlite3-dev \
                     libssl-dev \
                     tk-dev \
                     libreadline-dev \
                     zlibc
#!/bin/bash
#For CentOS
yum install bzip2-devel \
                     ncurses-devel \
                     gdbm-devel \
                     xz-devel \
                     sqlite-devel \
                     openssl-devel \
                     tk-devel \
                     readline-devel \
                     zlib-devel

$./configure --prefix="/opt/python3/" --enable-shared
$make
$sudo make install

/etc/ld.so.conf.d/python3.conf
/opt/python3/lib

$sudo ldconfig

コメントを残す

メールアドレスが公開されることはありません。