Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

bz2 issue when installing Python 2.6.6 on Cent OS 5.8

I installed bzip2, bzip2-devel & bzip2-libs using the following command:

yum install bzip2 bzip2-devel bzip2-libs

Installation proceeded with to warning or error.

After this step, I installed Python 2.6.6 using the following commands (note: I must install it this way and not using yum):

wget http://www.python.org/ftp/python/2.6.6/Python-2.6.6.tgz
tar -xzvf Python-2.6.6.tgz
cd Python-2.6.6
./configure
make
make install

But on "make" step, I got the following error:

Failed to build these modules: bz2

I tried installing Mercurial 2.0.2 afterward but got the following error:

Couldn't import standard bz2 (incomplete Python install).

Anyone knows what I'm doing wrong here?

Thx

like image 395
Bruno Avatar asked Mar 08 '26 00:03

Bruno


1 Answers

I managed to fix my problem by adding --enable-shared option when configuring Python.

./configure --enable-shared
like image 103
Bruno Avatar answered Mar 09 '26 13:03

Bruno



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!