Installation problems on Linux

Whoops! Sorry for the double-post. I forgot to put in a subject.
I'm currently having problems installing wxPython from the source code. I'm
using version 2.4.0.7.
I first ran './configure' from the root directory of the unzipped source
files, and then 'make' followed by 'make install'. It seemed to install all
the files and I found the '.py' wxPython files in the
directory 'usr/lib/python2.3/site-packages/', but python still couldn't't
find
the module, so I set the 'PYTHONPATH' environment variable to point to that
directory, but still to no avail.
Then I found out that I was supposed to use 'setup.py' in the source
directory, so I followed the instructions in the readme file, but ended up
with the following output:

···

-----------------------------------------------------
sh: line 1: /bin/wx-config: No such file or directory
sh: line 1: /bin/wx-config: No such file or directory
Preparing CORE...
Preparing GLCANVAS...
sh: line 1: /bin/wx-config: No such file or directory
Preparing OGL...
Preparing STC...
Preparing XRC...
Preparing GIZMOS...
Preparing DLLWIDGET...
running build
running build_py
copying wxPython/__version__.py -> build/lib.linux-i686-2.2/wxPython
running build_ext
error: invalid Python installation: unable to
open /usr/lib/python2.2/config/Makefile (No such file or directory)
----------------------------------------------------

The version of Python that I'm using is 2.3. The 2.2 directory still exists,
but there is no 'config' directory in it. I only started using Linux a short
while ago so I'm not sure if what I'm doing is wrong or if it's just a stupid
mistake I've made. I'm also sure that I have wxGTK installed. Any help would
be greatly appreciated.

Daniel Pryde wrote:

-----------------------------------------------------
sh: line 1: /bin/wx-config: No such file or directory

You need to figure out where wxGTK was installed (/usr/local if you didn't configure it with --prefix) and then add that {prefix}/bin dir to your PATH.

Preparing CORE...
Preparing GLCANVAS...
sh: line 1: /bin/wx-config: No such file or directory
Preparing OGL...
Preparing STC...
Preparing XRC...
Preparing GIZMOS...
Preparing DLLWIDGET...
running build
running build_py
copying wxPython/__version__.py -> build/lib.linux-i686-2.2/wxPython
running build_ext
error: invalid Python installation: unable to open /usr/lib/python2.2/config/Makefile (No such file or directory)
----------------------------------------------------

The version of Python that I'm using is 2.3. The 2.2 directory still exists, but there is no 'config' directory in it.

You need to run setup.py with the version of python that you want to build for. From the error above it looks like you are running python 2.2, and it doesn't have the python-devel (or similar) RPM installed.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!