Re: trouble installing 18.9.0
Kyle Altendorf <[email protected]> Tue, 05 Feb 2019 16:57:56 -0500
| Newsgroups | gmane.comp.python.twisted |
|---|---|
| Message-ID | <[email protected]> |
On 2019-02-05 16:26, Joe Smongeski wrote: > I've been trying to install the latest Twisted 18.9.0 with pip install, > (using Oracle LInux 7.4), but I'm getting compilation errors. The > first one was: > > src/twisted/test/raiser.c:4:20: fatal error: Python.h: No such file or > directory > #include "Python.h" This is usually addressed by installing a python3-dev package, or similar. What did you do? > I was able to work around that, but now I"m getting this error: > > gcc -pthread -shared -Wl,-z,relro -g -L ./python3.6m > build/temp.linux-x86_64-3.6/src/twisted/test/raiser.o -L/usr/lib64 > -LPYTHON3.6M -o > build/lib.linux-x86_64-3.6/twisted/test/raiser.cpython-36m-x86_64-linux-gnu.so > /ETC/ALTERNATIVES/LD: CANNOT FIND -LPYTHON3.6M > collect2: error: ld returned 1 exit status > error: command 'gcc' failed with exit status 1 > > Since the compile is under the control of all the install scripts, I > can't determine where the linker is looking for "python36m". The all caps `PYTHON3.6M` and `/ETC/ALTERNATIVES/LD: CANNOT FIND -LPYTHON3.6M` seem pretty weird to me. It might be helpful to share a full transcript (prompts, commands, output) of the installation (including creating a virtualenv or venv, etc) Cheers, -kyle _______________________________________________ Twisted-Python mailing list [email protected] https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python