Sujet : Re: it's a shame... python error over error
De : torriem (at) *nospam* gmail.com (Michael Torrie)
Groupes : comp.lang.pythonDate : 14. Dec 2024, 16:27:29
Autres entêtes
Message-ID : <mailman.2.1734190054.2912.python-list@python.org>
References : 1 2 3 4 5
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1
On 12/13/24 1:56 PM, aotto1968 via Python-list wrote:
the problem is *not* to setup an environment variable, the problem is that python is *not*
able to setup the *python* environment by it self.
You're mistaken in this case. Nothing you've posted indicates the
problem is in Python itself. Something isn't quite right with your
linker and the linker search paths. LD_LIBRARY_PATH is one way to force
the linker to use the correct search path.
Python has no direct influence over the linker search paths, other than
to list what shared libraries it is linked against, or to manually add
paths to the linker in /etc/ld.so.conf.d/ during package installation.
The ld.so linker is responsible for finding the files and linking them
in, not Python. In your case it seems unable to do so, for whatever
reason. Since your custom version of python3 does seem to link to the so
properly, it seems as though something isn't right in the environment of
the mono build process. Again, nothing to do with Python. The linker
isn't even getting to the bit where it links in libpython3.