installing in /home

Hi list,

This questions were already raised before, but we resolved by
installing some wxwidgets apt packages. This time I really need to
build wxwidgets and wxpython on a home folder, with no root
priviledges. Wxpython can install to the site-packages of my personal
python, that is ok, I just want it to use the builded wxwidgets found
on my home. I do not fully understand configure and make flags, I
used this ones:

(cd wxPython-src...
mkdir bld
cd bld)
../configure --prefix=/home/usuario/wxwid --with-gtk --enable-unicode

than run an makit.sh script that is:
#! /bin/bash
make $* \
    && make -C contrib/src/gizmos $* \
    && make -C contrib/src/stc $*

like this:
./makit.sh
./makit.sh install

and then:
....../python setup.py install

it starts with a:
ERROR: WX_CONFIG not specified and wx-config not found on the $PATH

and ends with a:
error: command 'gcc' failed with exit status 1
sage: Error running setup.py using Python

Can anyone tell me how to make this? the instal and build intructions
on the wxpython documentation took _me_ to this result.

best,
gk

Green Kobold wrote:

Hi list,

This questions were already raised before, but we resolved by
installing some wxwidgets apt packages. This time I really need to
build wxwidgets and wxpython on a home folder, with no root
priviledges. Wxpython can install to the site-packages of my personal
python, that is ok, I just want it to use the builded wxwidgets found
on my home. I do not fully understand configure and make flags, I
used this ones:

(cd wxPython-src...
mkdir bld
cd bld)
../configure --prefix=/home/usuario/wxwid --with-gtk --enable-unicode

than run an makit.sh script that is:
#! /bin/bash
make $* \
   && make -C contrib/src/gizmos $* \
   && make -C contrib/src/stc $*

like this:
./makit.sh
./makit.sh install

and then:
....../python setup.py install

it starts with a:
ERROR: WX_CONFIG not specified and wx-config not found on the $PATH

You either need to put /home/usuario/wxwid/bin on your PATH, or you can use WX_CONFIG=/home/usuario/wxwid/bin/wx-config on the setup.py command-line. The setup.py script uses the wx-config program to discover some info about the wxWidgets you are using for the build, so it needs to be able to find it.

BTW, once you get it built you'll need to set LD_LIBRARY_PATH to include /home/usuario/wxwid/lib in order for wxPython to be able to find the wxWidgets shared libraries.

···

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