Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to manually install python-dev from source

I compiled python 2.7.11 as follow steps:

tar -xf python.tar.xz
./configure
make

after compiling, I found that there is no libpython2.7.so in the results, which means that this is not a 'dev' version.

So, how could I make the .so file and install them properly (Do not override the default python of system) ?

like image 536
Douglas Su Avatar asked Mar 08 '16 11:03

Douglas Su


1 Answers

You need:

./configure --enable-shared

Check out all that ./configure has to offer with:

./configure --help
like image 183
Jonathon Reinhart Avatar answered Oct 24 '22 01:10

Jonathon Reinhart