Hi,
I’ve been trying to install wxPython on a Centos 6.9 machine this week. The first hurdle I had to jump was getting Python 2.7 installed on the system in a virtual environment as 2.7 was a requirement for this project. That was straightforward and installed with the instructions here: https://danieleriksson.net/2017/02/08/how-to-install-latest-python-on-centos/
Using virtualenv, I was able to installed other dependencies on my current project using pip just fine. But, when I went to install wxPython it failed. Since then I was able to track down several packages that I didn’t have, but I think I’ve probably got most at this point.
I’ve downloaded the wxPython-4.0.0b2 tar ball, and when I execute build.py with the build_py option I get a configuration fail error. Specifically,
#I enter virtualenv inside the wxPython-4.0.0b2 directory
source ~/my27project/bin/activate
#Execute build.py command virtual environments python
/local/data/fritz2/gmosby/my27project/bin/python build.py build_py
``
The output to the screen is:
Setting top to : /local/data/fritz2/gmosby/Downloads/wxPython-4.0.0b2
Setting out to : /local/data/fritz2/gmosby/Downloads/wxPython-4.0.0b2/build/waf/2.7/gtk3
Checking for ‘gcc’ (c compiler) : /usr/bin/gcc
Checking for ‘g++’ (c++ compiler) : /usr/bin/g++
Checking for program python : /local/data/fritz2/gmosby/my27project/bin/python
Checking for python version : (2, 7, 14, ‘final’, 0)
Checking for library python2.7 in LIBDIR : not found
Checking for library python2.7 in python_LIBPL : not found
Checking for library python2.7 in $prefix/libs : not found
Checking for library python2.7m in LIBDIR : not found
Checking for library python2.7m in python_LIBPL : not found
Checking for library python2.7m in $prefix/libs : not found
Checking for library python27 in LIBDIR : not found
Checking for library python27 in python_LIBPL : not found
Checking for library python27 in $prefix/libs : not found
Checking for program /local/data/fritz2/gmosby/my27project/bin/python-config,python2.7-config,python-config-2.7,python2.7m-config : /local/data/fritz2/gmosby/my27project/bin/python-config
Checking for header Python.h :
Asking python-config for pyembed --cflags flags : yes
Asking python-config for pyembed --libs flags : yes
Asking python-config for pyembed --ldflags flags : yes
Getting pyembed flags from python-config : Could not build a python embedded interpreter
The configuration failed
(complete log in /local/data/fritz2/gmosby/Downloads/wxPython-4.0.0b2/build/waf/2.7/gtk3/config.log)
Will build using: “/local/data/fritz2/gmosby/my27project/bin/python”
2.7.14 (default, Jan 17 2018, 11:29:22)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-11)]
Python’s architecture is 64bit
cfg.VERSION: 4.0.0b2
Running command: build_py
Checking for /local/data/fritz2/gmosby/Downloads/wxPython-4.0.0b2/bin/waf-1.7.15-p1…
“/local/data/fritz2/gmosby/my27project/bin/python” /local/data/fritz2/gmosby/Downloads/wxPython-4.0.0b2/bin/waf-1.7.15-p1 --wx_config=/local/data/fritz2/gmosby/Downloads/wxPython-4.0.0b2/build/wxbld/gtk3/wx-config --gtk3 --python="/local/data/fritz2/gmosby/my27project/bin/python" --out=build/waf/2.7/gtk3 configure build
Command '"/local/data/fritz2/gmosby/my27project/bin/python" /local/data/fritz2/gmosby/Downloads/wxPython-4.0.0b2/bin/waf-1.7.15-p1 --wx_config=/local/data/fritz2/gmosby/Downloads/wxPython-4.0.0b2/build/wxbld/gtk3/wx-config --gtk3 --python="/local/data/fritz2/gmosby/my27project/bin/python" --out=build/waf/2.7/gtk3 configure build ’ failed with exit code 1.
Finished command: build_py (1.197s)
When I examine the config.log (attached) I notice it’s failing when it is doing some linking for a test.cpp.1.o (line 90 in config.log). What stands out to me is that the -Wl,-rpath option is not followed by a directory name. I noticed in a previous post with a similar configuration error that the -Wl,-rpath options were not used in this test linking step, but that was a different OS.
Can anyone offer any leads?
Thanks,
G
config.log (30.7 KB)