Compile Python 2.7.3 from source on a system with Python 2.7 already

后端 未结 1 907
面向向阳花
面向向阳花 2021-02-08 12:02

I wish to compile Python 2.7.3 from source. The OS is OpenSUSE 11.4 x86_64, which already provides Python 2.7. I\'d like to use 2.7.3 for the latest security patches, but it\'s

相关标签:
1条回答
  • 2021-02-08 12:08

    To avoid having to specify the runtime library path using LD_LIBRARY_PATH each time Python is started, you can specify it at build time using the -rpath linker option:

    ./configure --enable-shared --prefix=/opt/python \
                LDFLAGS=-Wl,-rpath=/opt/python/lib
    
    0 讨论(0)
提交回复
热议问题