How to manually install python-dev from source

不问归期 提交于 2021-02-07 12:46:34

问题


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) ?


回答1:


You need:

./configure --enable-shared

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

./configure --help


来源:https://stackoverflow.com/questions/35866369/how-to-manually-install-python-dev-from-source

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!