CentOS 7 | python3: error while loading shared libraries: libpython3.5m.so.1.0
7
votes
1
answer
17405
views
I am deploying a django server.
I've already installed python 3.5 without errors, but for some problems when I tried to compile mod_wsgi (so I could share the
django
app in an intranet environment with apache):
./configure --with-python=/usr/local/bin/python3.5
it told me that Failed to locate the Python library /usr/local/lib/libpython3.3m.so.
Searching for the solution on Google, I found this solution explaining that I needed to recompile python3 with --enable-shared flag.
so, I proceeded to remove python3 and python3.5 from /usr/local/bin
and recompiled python3. Everything was fine, until I tried to check the python version with *python3 --version* and I got the following:
[rortega@Production Python-3.5.2]$ python3 --version
python3: error while loading shared libraries: libpython3.5m.so.1.0: cannot open shared object file: No such file or directory
I can't find any solution to this.
Asked by Rafael Ortega
(173 rep)
Oct 27, 2016, 06:27 PM
Last activity: Jul 12, 2019, 09:20 AM
Last activity: Jul 12, 2019, 09:20 AM