What exactly does ./configure --enable-shared do during python altinstall?

前端 未结 3 844
感动是毒
感动是毒 2021-01-31 11:24

When I altinstall python 2.7.12 with

./configure --prefix=/opt/python --enable-shared

it comes up as python 2.7.5 (system default python

3条回答
  •  情歌与酒
    2021-01-31 11:44

    I'm not sure why the version number is different, but Graham Dumpleton says at this website that "When running configure, you should be supplying the --enable-shared option to ensure that shared libraries are built for Python. By not doing this you are preventing any application which wants to use Python as an embedded environment from working."

提交回复
热议问题