Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

lib-dynload installed in wrong location on a 64-bit system whenCONFIG_SITE is set #108819

Open
@tfpf

Description

@tfpf

Bug report

Checklist

  • I am confident this is a bug in CPython, not a bug in a third-party project
  • I have searched theCPython issue tracker,
    and am confident this bug has not been reported before

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Output from running 'python -VV' on the command line:

Python 3.13.0a0 (heads/main:d4e534cbb3, Sep 2 2023, 21:58:58) [GCC 13.2.1 20230803 [revision cc279d6c64562f05019e1d12d0d825f9391b5553]]

A clear and concise description of the bug:

On openSUSE Tumbleweed 20230823, when CPython is compiled from source,

  • lib-dynload is placed in/usr/local/lib64/python3.13.
  • everything else is placed in/usr/local/lib/python3.13.

As a result, the interpreter is unable to locate some modules likereadline (even thoughreadline-devel is installed) and_posixsubprocess.

Here are the exact commands I ran.

$CFLAGS='-march=native -mtune=native' ./configure--enable-optimizations--with-lto=yes$make-j4$sudomake-j4altinstall$python3.13Couldnotfindplatformdependentlibraries<exec_prefix>Python3.13.0a0 (heads/main:d4e534cbb3,Sep22023,21:58:58) [GCC13.2.120230803 [revisioncc279d6c64562f05019e1d12d0d825f9391b5553]]onlinuxType"help","copyright","credits"or"license"formoreinformation.Traceback (mostrecentcalllast):File"/etc/pythonstart",line7,in<module>importreadlineModuleNotFoundError:Nomodulenamed'readline'>>>

Symlinkinglib-dynload fixed the problem for me:

$sudoln-s/usr/local/lib64/python3.13/lib-dynload/usr/local/lib/python3.13$python3.13Python3.13.0a0 (heads/main:d4e534cbb3,Sep22023,21:58:58) [GCC13.2.120230803 [revisioncc279d6c64562f05019e1d12d0d825f9391b5553]]onlinuxType"help","copyright","credits"or"license"formoreinformation.>>>

but I believe everything should go in/usr/local/lib, as happens on other Linux distributions I have used.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp