[wxPython-users] Problems installing 2.6.8.1
Robin Dunn
robin at alldunn.com
Sat Nov 17 14:26:14 PST 2007
Grant Edwards wrote:
> I'm trying to install 2.6.8.1 and the configure, make, make
> install steps are fine except for the files being installed in
> a location other than where I told it to. I configured a
> prefix of /usr/local, but it installed everything in
> /usr/local/wx-2.8. That's not what I asked for, but I can live
> with it temporarily.
I've never seen that. There is a wx-2.8 dir used in the install, but it
is ${prefix}/include/wx-2.8.
Try setting your prefix without the trailing / and see if that makes a
difference.
>
> However, when I do the "python setup.py install" step, it
> fails. There are a couple problems:
>
> 1) It's trying to build unicode versions of extensions, and I
> only built ansi versions of the libraries.
Add UNICODE=0 to the setup.py command-line, (not the environment, but as
a command-line parameter.)
>
> 2) It's trying to invoke a C compiler with a path that simply
> doesn't exist. If I set an environment variable CC=gcc,
> then the compile starts, but fails because the include
> files can't be found.
>
> wx-config -cc and wx-config --cflags both return the
> correct vlaues, but "python setup.py install" isn't using
> them
By default it will use whatever Python was built with. Setting the
environment vars is the proper way to work around this if your Python
was built with something else, however there could still be some
problems if the binaries generated by the two compilers are not compatible.
>
> There's only one wx-config on my path, but I set a variable
> pointing to it anyway. Didn't help.
>
> According to README.1st.txt
>
> For more details about building and installing wxWidgets and
> wxPython please see these files::
>
> wxPython/docs/BUILD.txt
> wxPython/docs/INSTALL.txt
>
> But those files don't exist in the 2.6.8.1 source tarball.
> Where can I find those files for 2.6.8.1?
They are in my copy of the source tarball. Are you sure they are not in
yours? (BTW, the wxPython dir should be in the same dir as the
README.1st.txt file, not at the top level of the file tree in the
tarball.) In either case the same content is on the website at
http://wxpython.org/builddoc.php
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wxpython-users
mailing list