| |
| META TOPICPARENT | name="CemIT" |
Contents
Prerequisites
- python
- gtk and glib. If the FSU software has been installed
already then the required libraries are present
Dowload packages |
|
> > |
- login as root
|
| |
- Download and install the latest version of wxGTK (via yum). (Not sure if this is absolutely required). The latest version for RHEL4 and Centos4 is 2.6.3-1
|
|
< < |
- Download wxPython source from Sourceforge. Match the version # with wxGTK package (Downloaded wxPython-src-2.6.3.0.tar.gz from https://sourceforge.net/project/showfiles.php?group_id=10718&package_id=10559)
- Extract to a directory that the user has control over (ie not a root directory). (Extracted to /home/Stokes/nans/wxPython-src-2.6.3.0)
- Change permissions of entire directory (chmod -R 777 /home/Stokes/nans/wxPython-src-2.6.3.0)
|
> > |
- Download wxPython source from Sourceforge.
|
|
> > |
-
- Andrea used wxPython-src-2.6.3.0.tar.gz
- Extract to /usr/local/
|
| | Setup environment for compile |
|
< < |
- setenv LD_LIBRARY_PATH /usr/local/lib64:/usr/X11R6/lib64:/usr/lib64
|
> > |
- setenv LD_LIBRARY_PATH /usr/lib64
|
|
> > |
-
- Andrea included /usr/local/lib64:/usr/X11R6/lib64
|
| |
- setenv PKG_CONFIG_PATH /usr/local/lib64/pkgconfig
|
|
< < |
- mkdir /home/Stokes/nans/wxPython-src-2.6.3.0/wxPythonbuild
- mkdir /home/Stokes/nans/wxPythoninstall
|
| | |
|
< < | Configure and compile and install |
> > | Configure and compile and install wxWidgets libraries |
| | |
|
< < |
- cd /home/Stokes/nans/wxPython-src-2.6.3.0/wxPythonbuild
- ../configure --prefix=/home/Stokes/nans/wxPythoninstall --with-gtk --with-gnomeprint --with-opengl --enable-debug --enable-geometry --enable-mediactrl --enable-display --disable-debugreport
- Download the special .make file and place into /home/Stokes/nans/wxPython-src-2.6.3.0/ (I've attached this)
- ../.make (you should still be in /home/Stokes/nans/wxPython-src-2.6.3.0/wxPythonbuild)
|
> > |
- cd /usr/local/wxPython-src-2.8.7.1/
- ../configure --prefix=/usr --libdir=/usr/lib64 --enable-unicode
- Andrea used -with-gtk --with-gnomeprint --with-opengl --enable-debug --enable-geometry --enable-mediactrl --enable-display --disable-debugreport
- make
- make install
|
|
< < |
- ../.make install
|
| | |
|
< < | Setup environment to finish installation |
> > | compile anda install wxPython modules |
| | |
|
< < |
- Add /home/Stokes/nans/wxPythoninstall/bin to PATH in .cshrc
- Add /home/Stokes/nans/wxPythoninstall/lib to LD_LIBRARY_PATH in .cshrc
- source .cshrc
- setenv LD_LIBRARY_PATH /usr/local/lib64:/usr/X11R6/lib64:/usr/lib64
- setenv PKG_CONFIG_PATH /usr/local/lib64/pkgconfig
|
> > |
- cd /usr/local/wxPython-src-2.8.7.1//wxPython
- edit config.py
- set flags for BUILD_GLCANVAS, BUILD_STC, BUILD_GIZMOS to 0 (but maybe you can try this)
- python setup.py build
- python setup.py install
- create file 'wx.pth' in site-packages directory: contents of file: wx-2.8-gtk2-unicode (or whatever the directory used for wx)
|
|
< < | Finish installation
- cd /home/Stokes/nans/wxPython-src-2.6.3.0/wxPython
- python2.3 setup.py build_ext --inplace --debug
- as root: python2.3 setup.py install
- add setenv PYTHONPATH /usr/lib64/python2.3/site-packages/wx-2.6-gtk2-ansi to .cshrc
- OR - create file 'wx.pth' in site-packages directory: contents of file: wx-2.6-gtk2-ansi
- The directories wxPythoninstall and wxPython-src-2.6.3.0 can both be moved into /usr/local/wxPython
- cd /usr/local/wxPython/wxPythoninstall/bin
- remove broken wt-config link
- Create new softlink: ln -s /usr/local/wxPython/wxPythoninstall/lib/wx/config/gtk2-ansi-debug-2.6wx-config
- Change the old entries in .cshrc to reflect the new location:
- in PATH: /usr/local/wxPython/wxPythoninstall/bin
- in LD_LIBRARY_PATH: /usr/local/wxPython/wxPythoninstall/lib
- OR - copy these files to /usr/local/lib64
- Source .cshrc
|
| | Test installation
- To test: Type python then type import wx
- If no errors are returned, then it has been configured correctly.
-- DavidStokes - 29 May 2008 |