开发者

GNU Readline linked with default Python on FreeBSD, OpenBSD?

开发者 https://www.devze.com 2023-02-20 22:50 出处:网络
How easy is it to get a Python that isn\'t linked to GNU Readline on FreeBSD or OpenBSD? Is GNU Readline the default for Python readline-like support on these systems开发者_高级运维? If so, is it easy

How easy is it to get a Python that isn't linked to GNU Readline on FreeBSD or OpenBSD? Is GNU Readline the default for Python readline-like support on these systems开发者_高级运维? If so, is it easy to remove this dependency?


On FreeBSD, libreadline is part of the base system (unless you've rebuilt that without GNU). Python loads that dynamically;

ldd /usr/local/lib/python2.7/lib-dynload/readline.so
/usr/local/lib/python2.7/lib-dynload/readline.so:
    libreadline.so.8 => /lib/libreadline.so.8 (0x801206000)
    libthr.so.3 => /lib/libthr.so.3 (0x801445000)
    libc.so.7 => /lib/libc.so.7 (0x80084a000)
    libncurses.so.8 => /lib/libncurses.so.8 (0x801668000)

There is no configure option to remove it from the Python build.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号