Difference: InstallwxPython (1 vs. 25)

Revision 2504 Mar 2015 - Main.DavidStokes

 
META TOPICPARENT name="CemIT"
Contents

Prerequisites

  1. python
  2. gtk and glib. If the FSU software has been installed already then the required libraries should already be present
  3. wxGTK (Not sure if this is absolutely required). (done for CEM03,CEM12)

Dowload packages

  1. login as root
  2. Download wxPython source from Sourceforge.
  3. Extract to /usr/local/

Setup environment for compile

  1. setenv LD_LIBRARY_PATH /usr/lib64
    • Andrea included /usr/local/lib64:/usr/X11R6/lib64
Changed:
<
<
  1. setenv PKG_CONFIG_PATH /usr/local/lib64/pkgconfig
>
>
  1. setenv PKG_CONFIG_PATH /usr/local/lib64/pkgconfig OR /usr/lib64/pkgconfig
 

Configure and compile and install wxWidgets libraries

  1. cd /usr/local/wxPython-src-2.8.7.1/
  2. ../configure --prefix=/usr --libdir=/usr/lib64 --enable-unicode
    • on cem02, this didn't work for 'root', had to do this as user 'stokes'
    • Andrea used -with-gtk --with-gnomeprint --with-opengl --enable-debug --enable-geometry --enable-mediactrl --enable-display --disable-debugreport
  3. make
Added:
>
>
    • had to apply this patch to src/gtk/gsockgtk.cpp when using glib2-devel-2.28.8-4.el6.x86_64
    • simply add the lines with indicated by a "+" (but don't include the "+")
      Index: 2.8/src/gtk/gsockgtk.cpp
      ===================================================================
      --- 2.8/src/gtk/gsockgtk.cpp (revision 60599)
      +++ 2.8/src/gtk/gsockgtk.cpp (working copy)
      @@ -15,8 +15,13 @@
       #include <stdlib.h>
       #include <stdio.h>
      
      +// newer versions of glib define its own GSocket but we unfortunately use this
      +// name in our own (semi-)public header and so can't change it -- rename glib
      +// one instead
      +#define GSocket GlibGSocket
       #include <gdk/gdk.h>
       #include <glib.h>
      +#undef GSocket
      
       #include "wx/gsocket.h"
       #include "wx/unix/gsockunx.h"
      
 
  1. make install

compile and install wxPython modules

  1. cd /usr/local/wxPython-src-2.8.7.1//wxPython
  2. edit config.py
    • set flags for BUILD_GLCANVAS, BUILD_STC, BUILD_GIZMOS to 0 (they gave errors during the build, but maybe you can try them)
  3. python setup.py build
  4. python setup.py install
  5. create file 'wx.pth' in site-packages directory: contents of file: wx-2.8-gtk2-unicode (or whatever the directory used for wx)
    • actually, it looks like you might be able to copy /usr/lib/python2.x/site-packages/wx.pth to /usr/lib64/python2.x/site-packages

Test installation

  1. To test: Type python then type import wx
  2. If no errors are returned, then it has been configured correctly.
  3. you can also install and run the demo: wxPython-demo-2.6.4.0.tar
    • untar this file - go to the demo subdirectory, start demo: python demo.py

CentOS5

  • CentOS5 comes with newer versions of pango and several other libraries, incompatible with Protomo
  • These are installed in /usr/local/lib64
  • The old libraries are incompatible with firefox and wxpython, and I am using them by default since I often run protomo
  • To use wxpython and firefox, need to have /usr/lib64 (and not /usr/local/lib64) in LD_LIBRARY_PATH variable
  • CEM03 and CEM12 are set up on centos5, so they have this issue
  • I put the following in my .cshrc file:
alias ff_env setenv LD_LIBRARY_PATH /usr/lib64:/usr/X11R6/lib:/cryoem/2dx/lib:/cryoem/fftw3/lib
  • type "ff_env" to let wx python work

Update Aug 20 2009

  • installed rpm versions of wxPython on cem02 and cem03 (yum install wxPython wxPython-devel)
  • emip works on both now, but with a warning about "release number mismatch" between wxPython and wxWidgets

  • Set ALLOWTOPICVIEW =

-- DavidStokes - 29 May 2008

META FILEATTACHMENT attr="" autoattached="1" comment="wxPython demo (2.6.4)" date="1257875093" name="wxPython-demo-2.6.4.0.tar" path="wxPython-demo-2.6.4.0.tar" size="6871040" user="Main.DavidStokes" version=""
META FILEATTACHMENT attr="" autoattached="1" comment="wxPython 2.8 source tarball" date="1212095674" name="wxPython-src-2.8.7.1.tar.bz2" path="wxPython-src-2.8.7.1.tar.bz2" size="26362160" user="Main.DavidStokes" version=""
META FILEATTACHMENT attr="" autoattached="1" comment="wx" date="1248723902" name="wxPython-src-2.8.8.1.tar.bz2" path="wxPython-src-2.8.8.1.tar.bz2" size="27712841" user="Main.DavidStokes" version=""
META TOPICMOVED by="DavidStokes" date="1214924233" from="Main.InstallgxPython" to="Main.InstallwxPython"

Revision 2410 Nov 2009 - Main.DavidStokes

 
META TOPICPARENT name="CemIT"
Contents

Prerequisites

  1. python
  2. gtk and glib. If the FSU software has been installed already then the required libraries should already be present
  3. wxGTK (Not sure if this is absolutely required). (done for CEM03,CEM12)

Dowload packages

  1. login as root
  2. Download wxPython source from Sourceforge.
  3. Extract to /usr/local/

Setup environment for compile

  1. setenv LD_LIBRARY_PATH /usr/lib64
    • Andrea included /usr/local/lib64:/usr/X11R6/lib64
  2. setenv PKG_CONFIG_PATH /usr/local/lib64/pkgconfig

Configure and compile and install wxWidgets libraries

  1. cd /usr/local/wxPython-src-2.8.7.1/
  2. ../configure --prefix=/usr --libdir=/usr/lib64 --enable-unicode
    • on cem02, this didn't work for 'root', had to do this as user 'stokes'
    • Andrea used -with-gtk --with-gnomeprint --with-opengl --enable-debug --enable-geometry --enable-mediactrl --enable-display --disable-debugreport
  3. make
  4. make install

compile and install wxPython modules

  1. cd /usr/local/wxPython-src-2.8.7.1//wxPython
  2. edit config.py
    • set flags for BUILD_GLCANVAS, BUILD_STC, BUILD_GIZMOS to 0 (they gave errors during the build, but maybe you can try them)
  3. python setup.py build
  4. python setup.py install
  5. create file 'wx.pth' in site-packages directory: contents of file: wx-2.8-gtk2-unicode (or whatever the directory used for wx)
    • actually, it looks like you might be able to copy /usr/lib/python2.x/site-packages/wx.pth to /usr/lib64/python2.x/site-packages

Test installation

  1. To test: Type python then type import wx
  2. If no errors are returned, then it has been configured correctly.
  3. you can also install and run the demo: wxPython-demo-2.6.4.0.tar
Added:
>
>
    • untar this file - go to the demo subdirectory, start demo: python demo.py
 

CentOS5

  • CentOS5 comes with newer versions of pango and several other libraries, incompatible with Protomo
  • These are installed in /usr/local/lib64
  • The old libraries are incompatible with firefox and wxpython, and I am using them by default since I often run protomo
  • To use wxpython and firefox, need to have /usr/lib64 (and not /usr/local/lib64) in LD_LIBRARY_PATH variable
  • CEM03 and CEM12 are set up on centos5, so they have this issue
  • I put the following in my .cshrc file:
alias ff_env setenv LD_LIBRARY_PATH /usr/lib64:/usr/X11R6/lib:/cryoem/2dx/lib:/cryoem/fftw3/lib
  • type "ff_env" to let wx python work

Update Aug 20 2009

  • installed rpm versions of wxPython on cem02 and cem03 (yum install wxPython wxPython-devel)
  • emip works on both now, but with a warning about "release number mismatch" between wxPython and wxWidgets

  • Set ALLOWTOPICVIEW =

-- DavidStokes - 29 May 2008

META FILEATTACHMENT attr="" autoattached="1" comment="wxPython demo (2.6.4)" date="1257875093" name="wxPython-demo-2.6.4.0.tar" path="wxPython-demo-2.6.4.0.tar" size="6871040" user="Main.DavidStokes" version=""
META FILEATTACHMENT attr="" autoattached="1" comment="wxPython 2.8 source tarball" date="1212095674" name="wxPython-src-2.8.7.1.tar.bz2" path="wxPython-src-2.8.7.1.tar.bz2" size="26362160" user="Main.DavidStokes" version=""
META FILEATTACHMENT attr="" autoattached="1" comment="wx" date="1248723902" name="wxPython-src-2.8.8.1.tar.bz2" path="wxPython-src-2.8.8.1.tar.bz2" size="27712841" user="Main.DavidStokes" version=""
META TOPICMOVED by="DavidStokes" date="1214924233" from="Main.InstallgxPython" to="Main.InstallwxPython"

Revision 2310 Nov 2009 - Main.DavidStokes

 
META TOPICPARENT name="CemIT"
Contents

Prerequisites

  1. python
  2. gtk and glib. If the FSU software has been installed already then the required libraries should already be present
  3. wxGTK (Not sure if this is absolutely required). (done for CEM03,CEM12)

Dowload packages

  1. login as root
  2. Download wxPython source from Sourceforge.
  3. Extract to /usr/local/

Setup environment for compile

  1. setenv LD_LIBRARY_PATH /usr/lib64
    • Andrea included /usr/local/lib64:/usr/X11R6/lib64
  2. setenv PKG_CONFIG_PATH /usr/local/lib64/pkgconfig

Configure and compile and install wxWidgets libraries

  1. cd /usr/local/wxPython-src-2.8.7.1/
  2. ../configure --prefix=/usr --libdir=/usr/lib64 --enable-unicode
    • on cem02, this didn't work for 'root', had to do this as user 'stokes'
    • Andrea used -with-gtk --with-gnomeprint --with-opengl --enable-debug --enable-geometry --enable-mediactrl --enable-display --disable-debugreport
  3. make
  4. make install

compile and install wxPython modules

  1. cd /usr/local/wxPython-src-2.8.7.1//wxPython
  2. edit config.py
    • set flags for BUILD_GLCANVAS, BUILD_STC, BUILD_GIZMOS to 0 (they gave errors during the build, but maybe you can try them)
  3. python setup.py build
  4. python setup.py install
  5. create file 'wx.pth' in site-packages directory: contents of file: wx-2.8-gtk2-unicode (or whatever the directory used for wx)
    • actually, it looks like you might be able to copy /usr/lib/python2.x/site-packages/wx.pth to /usr/lib64/python2.x/site-packages

Test installation

  1. To test: Type python then type import wx
  2. If no errors are returned, then it has been configured correctly.
Added:
>
>
  1. you can also install and run the demo: wxPython-demo-2.6.4.0.tar
 
Added:
>
>
 

CentOS5

  • CentOS5 comes with newer versions of pango and several other libraries, incompatible with Protomo
  • These are installed in /usr/local/lib64
  • The old libraries are incompatible with firefox and wxpython, and I am using them by default since I often run protomo
  • To use wxpython and firefox, need to have /usr/lib64 (and not /usr/local/lib64) in LD_LIBRARY_PATH variable
  • CEM03 and CEM12 are set up on centos5, so they have this issue
  • I put the following in my .cshrc file:
alias ff_env setenv LD_LIBRARY_PATH /usr/lib64:/usr/X11R6/lib:/cryoem/2dx/lib:/cryoem/fftw3/lib
  • type "ff_env" to let wx python work

Update Aug 20 2009

  • installed rpm versions of wxPython on cem02 and cem03 (yum install wxPython wxPython-devel)
  • emip works on both now, but with a warning about "release number mismatch" between wxPython and wxWidgets

  • Set ALLOWTOPICVIEW =

-- DavidStokes - 29 May 2008

Changed:
<
<
>
>
META FILEATTACHMENT attr="" autoattached="1" comment="wxPython demo (2.6.4)" date="1257875093" name="wxPython-demo-2.6.4.0.tar" path="wxPython-demo-2.6.4.0.tar" size="6871040" user="Main.DavidStokes" version=""
Deleted:
<
<
* wxPython-demo-2.6.4.0.tar: wxPython demo (2.6.4)
 
META FILEATTACHMENT attr="" autoattached="1" comment="wxPython 2.8 source tarball" date="1212095674" name="wxPython-src-2.8.7.1.tar.bz2" path="wxPython-src-2.8.7.1.tar.bz2" size="26362160" user="Main.DavidStokes" version=""
META FILEATTACHMENT attr="" autoattached="1" comment="wx" date="1248723902" name="wxPython-src-2.8.8.1.tar.bz2" path="wxPython-src-2.8.8.1.tar.bz2" size="27712841" user="Main.DavidStokes" version=""
Deleted:
<
<
META FILEATTACHMENT attachment="wxPython-demo-2.6.4.0.tar" attr="" comment="wxPython demo (2.6.4)" date="1257875093" name="wxPython-demo-2.6.4.0.tar" path="wxPython-demo-2.6.4.0.tar" size="6871040" stream="wxPython-demo-2.6.4.0.tar" user="Main.DavidStokes" version="0"
 
META TOPICMOVED by="DavidStokes" date="1214924233" from="Main.InstallgxPython" to="Main.InstallwxPython"

Revision 2210 Nov 2009 - Main.DavidStokes

 
META TOPICPARENT name="CemIT"
Contents

Prerequisites

  1. python
  2. gtk and glib. If the FSU software has been installed already then the required libraries should already be present
  3. wxGTK (Not sure if this is absolutely required). (done for CEM03,CEM12)

Dowload packages

  1. login as root
  2. Download wxPython source from Sourceforge.
  3. Extract to /usr/local/

Setup environment for compile

  1. setenv LD_LIBRARY_PATH /usr/lib64
    • Andrea included /usr/local/lib64:/usr/X11R6/lib64
  2. setenv PKG_CONFIG_PATH /usr/local/lib64/pkgconfig

Configure and compile and install wxWidgets libraries

  1. cd /usr/local/wxPython-src-2.8.7.1/
  2. ../configure --prefix=/usr --libdir=/usr/lib64 --enable-unicode
    • on cem02, this didn't work for 'root', had to do this as user 'stokes'
    • Andrea used -with-gtk --with-gnomeprint --with-opengl --enable-debug --enable-geometry --enable-mediactrl --enable-display --disable-debugreport
  3. make
  4. make install

compile and install wxPython modules

  1. cd /usr/local/wxPython-src-2.8.7.1//wxPython
  2. edit config.py
    • set flags for BUILD_GLCANVAS, BUILD_STC, BUILD_GIZMOS to 0 (they gave errors during the build, but maybe you can try them)
  3. python setup.py build
  4. python setup.py install
  5. create file 'wx.pth' in site-packages directory: contents of file: wx-2.8-gtk2-unicode (or whatever the directory used for wx)
    • actually, it looks like you might be able to copy /usr/lib/python2.x/site-packages/wx.pth to /usr/lib64/python2.x/site-packages

Test installation

  1. To test: Type python then type import wx
  2. If no errors are returned, then it has been configured correctly.

CentOS5

  • CentOS5 comes with newer versions of pango and several other libraries, incompatible with Protomo
  • These are installed in /usr/local/lib64
  • The old libraries are incompatible with firefox and wxpython, and I am using them by default since I often run protomo
  • To use wxpython and firefox, need to have /usr/lib64 (and not /usr/local/lib64) in LD_LIBRARY_PATH variable
  • CEM03 and CEM12 are set up on centos5, so they have this issue
  • I put the following in my .cshrc file:
alias ff_env setenv LD_LIBRARY_PATH /usr/lib64:/usr/X11R6/lib:/cryoem/2dx/lib:/cryoem/fftw3/lib
  • type "ff_env" to let wx python work

Update Aug 20 2009

  • installed rpm versions of wxPython on cem02 and cem03 (yum install wxPython wxPython-devel)
  • emip works on both now, but with a warning about "release number mismatch" between wxPython and wxWidgets

  • Set ALLOWTOPICVIEW =

-- DavidStokes - 29 May 2008

Added:
>
>
* wxPython-demo-2.6.4.0.tar: wxPython demo (2.6.4)
 
META FILEATTACHMENT attr="" autoattached="1" comment="wxPython 2.8 source tarball" date="1212095674" name="wxPython-src-2.8.7.1.tar.bz2" path="wxPython-src-2.8.7.1.tar.bz2" size="26362160" user="Main.DavidStokes" version=""
META FILEATTACHMENT attr="" autoattached="1" comment="wx" date="1248723902" name="wxPython-src-2.8.8.1.tar.bz2" path="wxPython-src-2.8.8.1.tar.bz2" size="27712841" user="Main.DavidStokes" version=""
Added:
>
>
META FILEATTACHMENT attachment="wxPython-demo-2.6.4.0.tar" attr="" comment="wxPython demo (2.6.4)" date="1257875093" name="wxPython-demo-2.6.4.0.tar" path="wxPython-demo-2.6.4.0.tar" size="6871040" stream="wxPython-demo-2.6.4.0.tar" user="Main.DavidStokes" version="0"
 
META TOPICMOVED by="DavidStokes" date="1214924233" from="Main.InstallgxPython" to="Main.InstallwxPython"

Revision 2120 Aug 2009 - Main.BillRice

 
META TOPICPARENT name="CemIT"
Contents

Prerequisites

  1. python
  2. gtk and glib. If the FSU software has been installed already then the required libraries should already be present
  3. wxGTK (Not sure if this is absolutely required). (done for CEM03,CEM12)

Dowload packages

  1. login as root
  2. Download wxPython source from Sourceforge.
  3. Extract to /usr/local/

Setup environment for compile

  1. setenv LD_LIBRARY_PATH /usr/lib64
    • Andrea included /usr/local/lib64:/usr/X11R6/lib64
  2. setenv PKG_CONFIG_PATH /usr/local/lib64/pkgconfig

Configure and compile and install wxWidgets libraries

  1. cd /usr/local/wxPython-src-2.8.7.1/
  2. ../configure --prefix=/usr --libdir=/usr/lib64 --enable-unicode
    • on cem02, this didn't work for 'root', had to do this as user 'stokes'
    • Andrea used -with-gtk --with-gnomeprint --with-opengl --enable-debug --enable-geometry --enable-mediactrl --enable-display --disable-debugreport
  3. make
  4. make install

compile and install wxPython modules

  1. cd /usr/local/wxPython-src-2.8.7.1//wxPython
  2. edit config.py
    • set flags for BUILD_GLCANVAS, BUILD_STC, BUILD_GIZMOS to 0 (they gave errors during the build, but maybe you can try them)
  3. python setup.py build
  4. python setup.py install
  5. create file 'wx.pth' in site-packages directory: contents of file: wx-2.8-gtk2-unicode (or whatever the directory used for wx)
    • actually, it looks like you might be able to copy /usr/lib/python2.x/site-packages/wx.pth to /usr/lib64/python2.x/site-packages

Test installation

  1. To test: Type python then type import wx
  2. If no errors are returned, then it has been configured correctly.

CentOS5

  • CentOS5 comes with newer versions of pango and several other libraries, incompatible with Protomo
  • These are installed in /usr/local/lib64
  • The old libraries are incompatible with firefox and wxpython, and I am using them by default since I often run protomo
  • To use wxpython and firefox, need to have /usr/lib64 (and not /usr/local/lib64) in LD_LIBRARY_PATH variable
  • CEM03 and CEM12 are set up on centos5, so they have this issue
  • I put the following in my .cshrc file:
alias ff_env setenv LD_LIBRARY_PATH /usr/lib64:/usr/X11R6/lib:/cryoem/2dx/lib:/cryoem/fftw3/lib
  • type "ff_env" to let wx python work
Added:
>
>

Update Aug 20 2009

  • installed rpm versions of wxPython on cem02 and cem03 (yum install wxPython wxPython-devel)
  • emip works on both now, but with a warning about "release number mismatch" between wxPython and wxWidgets
 
  • Set ALLOWTOPICVIEW =

-- DavidStokes - 29 May 2008

META FILEATTACHMENT attr="" autoattached="1" comment="wxPython 2.8 source tarball" date="1212095674" name="wxPython-src-2.8.7.1.tar.bz2" path="wxPython-src-2.8.7.1.tar.bz2" size="26362160" user="Main.DavidStokes" version=""
META FILEATTACHMENT attr="" autoattached="1" comment="wx" date="1248723902" name="wxPython-src-2.8.8.1.tar.bz2" path="wxPython-src-2.8.8.1.tar.bz2" size="27712841" user="Main.DavidStokes" version=""
META TOPICMOVED by="DavidStokes" date="1214924233" from="Main.InstallgxPython" to="Main.InstallwxPython"

Revision 2027 Jul 2009 - Main.DavidStokes

 
META TOPICPARENT name="CemIT"
Contents

Prerequisites

  1. python
  2. gtk and glib. If the FSU software has been installed already then the required libraries should already be present
  3. wxGTK (Not sure if this is absolutely required). (done for CEM03,CEM12)

Dowload packages

  1. login as root
  2. Download wxPython source from Sourceforge.
Changed:
<
<
    • cem03 and stokes50-54 used wxPython-src-2.8.7.1.tar.bz2
>
>
 
  1. Extract to /usr/local/

Setup environment for compile

  1. setenv LD_LIBRARY_PATH /usr/lib64
    • Andrea included /usr/local/lib64:/usr/X11R6/lib64
  2. setenv PKG_CONFIG_PATH /usr/local/lib64/pkgconfig

Configure and compile and install wxWidgets libraries

  1. cd /usr/local/wxPython-src-2.8.7.1/
  2. ../configure --prefix=/usr --libdir=/usr/lib64 --enable-unicode
    • on cem02, this didn't work for 'root', had to do this as user 'stokes'
    • Andrea used -with-gtk --with-gnomeprint --with-opengl --enable-debug --enable-geometry --enable-mediactrl --enable-display --disable-debugreport
  3. make
  4. make install

compile and install wxPython modules

  1. cd /usr/local/wxPython-src-2.8.7.1//wxPython
  2. edit config.py
    • set flags for BUILD_GLCANVAS, BUILD_STC, BUILD_GIZMOS to 0 (they gave errors during the build, but maybe you can try them)
  3. python setup.py build
  4. python setup.py install
  5. create file 'wx.pth' in site-packages directory: contents of file: wx-2.8-gtk2-unicode (or whatever the directory used for wx)
    • actually, it looks like you might be able to copy /usr/lib/python2.x/site-packages/wx.pth to /usr/lib64/python2.x/site-packages

Test installation

  1. To test: Type python then type import wx
  2. If no errors are returned, then it has been configured correctly.

CentOS5

  • CentOS5 comes with newer versions of pango and several other libraries, incompatible with Protomo
  • These are installed in /usr/local/lib64
  • The old libraries are incompatible with firefox and wxpython, and I am using them by default since I often run protomo
  • To use wxpython and firefox, need to have /usr/lib64 (and not /usr/local/lib64) in LD_LIBRARY_PATH variable
  • CEM03 and CEM12 are set up on centos5, so they have this issue
  • I put the following in my .cshrc file:
alias ff_env setenv LD_LIBRARY_PATH /usr/lib64:/usr/X11R6/lib:/cryoem/2dx/lib:/cryoem/fftw3/lib
  • type "ff_env" to let wx python work

  • Set ALLOWTOPICVIEW =

-- DavidStokes - 29 May 2008

Deleted:
<
<
* wxPython-src-2.8.8.1.tar.bz2: wx
 
Changed:
<
<
META FILEATTACHMENT attachment="wxPython-src-2.8.7.1.tar.bz2" attr="" comment="wxPython 2.8 source tarball" date="1212095673" name="wxPython-src-2.8.7.1.tar.bz2" path="wxPython-src-2.8.7.1.tar.bz2" size="26362160" stream="wxPython-src-2.8.7.1.tar.bz2" user="Main.DavidStokes" version="0"
META FILEATTACHMENT attachment="wxPython-src-2.8.8.1.tar.bz2" attr="" comment="wx" date="1248723901" name="wxPython-src-2.8.8.1.tar.bz2" path="wxPython-src-2.8.8.1.tar.bz2" size="27712841" stream="wxPython-src-2.8.8.1.tar.bz2" user="Main.DavidStokes" version="0"
>
>
META FILEATTACHMENT attr="" autoattached="1" comment="wxPython 2.8 source tarball" date="1212095674" name="wxPython-src-2.8.7.1.tar.bz2" path="wxPython-src-2.8.7.1.tar.bz2" size="26362160" user="Main.DavidStokes" version=""
Added:
>
>
META FILEATTACHMENT attr="" autoattached="1" comment="wx" date="1248723902" name="wxPython-src-2.8.8.1.tar.bz2" path="wxPython-src-2.8.8.1.tar.bz2" size="27712841" user="Main.DavidStokes" version=""
 
META TOPICMOVED by="DavidStokes" date="1214924233" from="Main.InstallgxPython" to="Main.InstallwxPython"

Revision 1927 Jul 2009 - Main.DavidStokes

 
META TOPICPARENT name="CemIT"
Contents

Prerequisites

  1. python
  2. gtk and glib. If the FSU software has been installed already then the required libraries should already be present
  3. wxGTK (Not sure if this is absolutely required). (done for CEM03,CEM12)

Dowload packages

  1. login as root
  2. Download wxPython source from Sourceforge.
  3. Extract to /usr/local/

Setup environment for compile

  1. setenv LD_LIBRARY_PATH /usr/lib64
    • Andrea included /usr/local/lib64:/usr/X11R6/lib64
  2. setenv PKG_CONFIG_PATH /usr/local/lib64/pkgconfig

Configure and compile and install wxWidgets libraries

  1. cd /usr/local/wxPython-src-2.8.7.1/
  2. ../configure --prefix=/usr --libdir=/usr/lib64 --enable-unicode
    • on cem02, this didn't work for 'root', had to do this as user 'stokes'
    • Andrea used -with-gtk --with-gnomeprint --with-opengl --enable-debug --enable-geometry --enable-mediactrl --enable-display --disable-debugreport
  3. make
  4. make install

compile and install wxPython modules

  1. cd /usr/local/wxPython-src-2.8.7.1//wxPython
  2. edit config.py
    • set flags for BUILD_GLCANVAS, BUILD_STC, BUILD_GIZMOS to 0 (they gave errors during the build, but maybe you can try them)
  3. python setup.py build
  4. python setup.py install
  5. create file 'wx.pth' in site-packages directory: contents of file: wx-2.8-gtk2-unicode (or whatever the directory used for wx)
    • actually, it looks like you might be able to copy /usr/lib/python2.x/site-packages/wx.pth to /usr/lib64/python2.x/site-packages

Test installation

  1. To test: Type python then type import wx
  2. If no errors are returned, then it has been configured correctly.

CentOS5

  • CentOS5 comes with newer versions of pango and several other libraries, incompatible with Protomo
  • These are installed in /usr/local/lib64
  • The old libraries are incompatible with firefox and wxpython, and I am using them by default since I often run protomo
  • To use wxpython and firefox, need to have /usr/lib64 (and not /usr/local/lib64) in LD_LIBRARY_PATH variable
  • CEM03 and CEM12 are set up on centos5, so they have this issue
  • I put the following in my .cshrc file:
alias ff_env setenv LD_LIBRARY_PATH /usr/lib64:/usr/X11R6/lib:/cryoem/2dx/lib:/cryoem/fftw3/lib
  • type "ff_env" to let wx python work

  • Set ALLOWTOPICVIEW =

-- DavidStokes - 29 May 2008

Added:
>
>
* wxPython-src-2.8.8.1.tar.bz2: wx
 
META FILEATTACHMENT attachment="wxPython-src-2.8.7.1.tar.bz2" attr="" comment="wxPython 2.8 source tarball" date="1212095673" name="wxPython-src-2.8.7.1.tar.bz2" path="wxPython-src-2.8.7.1.tar.bz2" size="26362160" stream="wxPython-src-2.8.7.1.tar.bz2" user="Main.DavidStokes" version="0"
Added:
>
>
META FILEATTACHMENT attachment="wxPython-src-2.8.8.1.tar.bz2" attr="" comment="wx" date="1248723901" name="wxPython-src-2.8.8.1.tar.bz2" path="wxPython-src-2.8.8.1.tar.bz2" size="27712841" stream="wxPython-src-2.8.8.1.tar.bz2" user="Main.DavidStokes" version="0"
 
META TOPICMOVED by="DavidStokes" date="1214924233" from="Main.InstallgxPython" to="Main.InstallwxPython"

Revision 1827 Jul 2009 - Main.DavidStokes

 
META TOPICPARENT name="CemIT"
Contents

Prerequisites

  1. python
  2. gtk and glib. If the FSU software has been installed already then the required libraries should already be present
  3. wxGTK (Not sure if this is absolutely required). (done for CEM03,CEM12)

Dowload packages

  1. login as root
  2. Download wxPython source from Sourceforge.
Added:
>
>
    • cem03 and stokes50-54 used wxPython-src-2.8.7.1.tar.bz2
 
  1. Extract to /usr/local/

Setup environment for compile

  1. setenv LD_LIBRARY_PATH /usr/lib64
    • Andrea included /usr/local/lib64:/usr/X11R6/lib64
  2. setenv PKG_CONFIG_PATH /usr/local/lib64/pkgconfig

Configure and compile and install wxWidgets libraries

  1. cd /usr/local/wxPython-src-2.8.7.1/
  2. ../configure --prefix=/usr --libdir=/usr/lib64 --enable-unicode
    • on cem02, this didn't work for 'root', had to do this as user 'stokes'
    • Andrea used -with-gtk --with-gnomeprint --with-opengl --enable-debug --enable-geometry --enable-mediactrl --enable-display --disable-debugreport
  3. make
  4. make install

compile and install wxPython modules

  1. cd /usr/local/wxPython-src-2.8.7.1//wxPython
  2. edit config.py
    • set flags for BUILD_GLCANVAS, BUILD_STC, BUILD_GIZMOS to 0 (they gave errors during the build, but maybe you can try them)
  3. python setup.py build
  4. python setup.py install
  5. create file 'wx.pth' in site-packages directory: contents of file: wx-2.8-gtk2-unicode (or whatever the directory used for wx)
    • actually, it looks like you might be able to copy /usr/lib/python2.x/site-packages/wx.pth to /usr/lib64/python2.x/site-packages

Test installation

  1. To test: Type python then type import wx
  2. If no errors are returned, then it has been configured correctly.

CentOS5

  • CentOS5 comes with newer versions of pango and several other libraries, incompatible with Protomo
  • These are installed in /usr/local/lib64
  • The old libraries are incompatible with firefox and wxpython, and I am using them by default since I often run protomo
  • To use wxpython and firefox, need to have /usr/lib64 (and not /usr/local/lib64) in LD_LIBRARY_PATH variable
  • CEM03 and CEM12 are set up on centos5, so they have this issue
  • I put the following in my .cshrc file:
alias ff_env setenv LD_LIBRARY_PATH /usr/lib64:/usr/X11R6/lib:/cryoem/2dx/lib:/cryoem/fftw3/lib
  • type "ff_env" to let wx python work

  • Set ALLOWTOPICVIEW =

-- DavidStokes - 29 May 2008

META FILEATTACHMENT attachment="wxPython-src-2.8.7.1.tar.bz2" attr="" comment="wxPython 2.8 source tarball" date="1212095673" name="wxPython-src-2.8.7.1.tar.bz2" path="wxPython-src-2.8.7.1.tar.bz2" size="26362160" stream="wxPython-src-2.8.7.1.tar.bz2" user="Main.DavidStokes" version="0"
META TOPICMOVED by="DavidStokes" date="1214924233" from="Main.InstallgxPython" to="Main.InstallwxPython"

Revision 1717 Dec 2008 - Main.BillRice

 
META TOPICPARENT name="CemIT"
Contents

Prerequisites

  1. python
  2. gtk and glib. If the FSU software has been installed already then the required libraries should already be present
  3. wxGTK (Not sure if this is absolutely required). (done for CEM03,CEM12)

Dowload packages

  1. login as root
  2. Download wxPython source from Sourceforge.
  3. Extract to /usr/local/

Setup environment for compile

  1. setenv LD_LIBRARY_PATH /usr/lib64
    • Andrea included /usr/local/lib64:/usr/X11R6/lib64
  2. setenv PKG_CONFIG_PATH /usr/local/lib64/pkgconfig

Configure and compile and install wxWidgets libraries

  1. cd /usr/local/wxPython-src-2.8.7.1/
  2. ../configure --prefix=/usr --libdir=/usr/lib64 --enable-unicode
    • on cem02, this didn't work for 'root', had to do this as user 'stokes'
    • Andrea used -with-gtk --with-gnomeprint --with-opengl --enable-debug --enable-geometry --enable-mediactrl --enable-display --disable-debugreport
  3. make
  4. make install

compile and install wxPython modules

  1. cd /usr/local/wxPython-src-2.8.7.1//wxPython
  2. edit config.py
    • set flags for BUILD_GLCANVAS, BUILD_STC, BUILD_GIZMOS to 0 (they gave errors during the build, but maybe you can try them)
  3. python setup.py build
  4. python setup.py install
  5. create file 'wx.pth' in site-packages directory: contents of file: wx-2.8-gtk2-unicode (or whatever the directory used for wx)
    • actually, it looks like you might be able to copy /usr/lib/python2.x/site-packages/wx.pth to /usr/lib64/python2.x/site-packages

Test installation

  1. To test: Type python then type import wx
  2. If no errors are returned, then it has been configured correctly.

CentOS5

  • CentOS5 comes with newer versions of pango and several other libraries, incompatible with Protomo
  • These are installed in /usr/local/lib64
Changed:
<
<
  • The old libraries are incompatible with firefox and wxpython
>
>
  • The old libraries are incompatible with firefox and wxpython, and I am using them by default since I often run protomo
 
  • To use wxpython and firefox, need to have /usr/lib64 (and not /usr/local/lib64) in LD_LIBRARY_PATH variable
  • CEM03 and CEM12 are set up on centos5, so they have this issue
  • I put the following in my .cshrc file:
alias ff_env setenv LD_LIBRARY_PATH /usr/lib64:/usr/X11R6/lib:/cryoem/2dx/lib:/cryoem/fftw3/lib
  • type "ff_env" to let wx python work

  • Set ALLOWTOPICVIEW =

-- DavidStokes - 29 May 2008

META FILEATTACHMENT attachment="wxPython-src-2.8.7.1.tar.bz2" attr="" comment="wxPython 2.8 source tarball" date="1212095673" name="wxPython-src-2.8.7.1.tar.bz2" path="wxPython-src-2.8.7.1.tar.bz2" size="26362160" stream="wxPython-src-2.8.7.1.tar.bz2" user="Main.DavidStokes" version="0"
META TOPICMOVED by="DavidStokes" date="1214924233" from="Main.InstallgxPython" to="Main.InstallwxPython"

Revision 1617 Dec 2008 - Main.BillRice

 
META TOPICPARENT name="CemIT"
Contents

Prerequisites

  1. python
  2. gtk and glib. If the FSU software has been installed already then the required libraries should already be present
  3. wxGTK (Not sure if this is absolutely required). (done for CEM03,CEM12)

Dowload packages

  1. login as root
  2. Download wxPython source from Sourceforge.
  3. Extract to /usr/local/

Setup environment for compile

  1. setenv LD_LIBRARY_PATH /usr/lib64
    • Andrea included /usr/local/lib64:/usr/X11R6/lib64
  2. setenv PKG_CONFIG_PATH /usr/local/lib64/pkgconfig

Configure and compile and install wxWidgets libraries

  1. cd /usr/local/wxPython-src-2.8.7.1/
  2. ../configure --prefix=/usr --libdir=/usr/lib64 --enable-unicode
    • on cem02, this didn't work for 'root', had to do this as user 'stokes'
    • Andrea used -with-gtk --with-gnomeprint --with-opengl --enable-debug --enable-geometry --enable-mediactrl --enable-display --disable-debugreport
  3. make
  4. make install

compile and install wxPython modules

  1. cd /usr/local/wxPython-src-2.8.7.1//wxPython
  2. edit config.py
    • set flags for BUILD_GLCANVAS, BUILD_STC, BUILD_GIZMOS to 0 (they gave errors during the build, but maybe you can try them)
  3. python setup.py build
  4. python setup.py install
  5. create file 'wx.pth' in site-packages directory: contents of file: wx-2.8-gtk2-unicode (or whatever the directory used for wx)
    • actually, it looks like you might be able to copy /usr/lib/python2.x/site-packages/wx.pth to /usr/lib64/python2.x/site-packages

Test installation

  1. To test: Type python then type import wx
  2. If no errors are returned, then it has been configured correctly.
Changed:
<
<

Centos5

  • Centos5 comes with newer versions of pango and several other libraries, incompatible with Protomo
>
>

CentOS5

  • CentOS5 comes with newer versions of pango and several other libraries, incompatible with Protomo
 
  • These are installed in /usr/local/lib64
  • The old libraries are incompatible with firefox and wxpython
  • To use wxpython and firefox, need to have /usr/lib64 (and not /usr/local/lib64) in LD_LIBRARY_PATH variable
Changed:
<
<
  • Cem03 and Cem12 are set up on centos5, so they have this issue
>
>
  • CEM03 and CEM12 are set up on centos5, so they have this issue
Added:
>
>
  • I put the following in my .cshrc file:
alias ff_env setenv LD_LIBRARY_PATH /usr/lib64:/usr/X11R6/lib:/cryoem/2dx/lib:/cryoem/fftw3/lib
  • type "ff_env" to let wx python work
 
  • Set ALLOWTOPICVIEW =

-- DavidStokes - 29 May 2008

META FILEATTACHMENT attachment="wxPython-src-2.8.7.1.tar.bz2" attr="" comment="wxPython 2.8 source tarball" date="1212095673" name="wxPython-src-2.8.7.1.tar.bz2" path="wxPython-src-2.8.7.1.tar.bz2" size="26362160" stream="wxPython-src-2.8.7.1.tar.bz2" user="Main.DavidStokes" version="0"
META TOPICMOVED by="DavidStokes" date="1214924233" from="Main.InstallgxPython" to="Main.InstallwxPython"

Revision 1517 Dec 2008 - Main.BillRice

 
META TOPICPARENT name="CemIT"
Contents

Prerequisites

  1. python
  2. gtk and glib. If the FSU software has been installed already then the required libraries should already be present
Changed:
<
<
  1. wxGTK (Not sure if this is absolutely required).
>
>
  1. wxGTK (Not sure if this is absolutely required). (done for CEM03,CEM12)
 

Dowload packages

  1. login as root
  2. Download wxPython source from Sourceforge.
  3. Extract to /usr/local/

Setup environment for compile

  1. setenv LD_LIBRARY_PATH /usr/lib64
    • Andrea included /usr/local/lib64:/usr/X11R6/lib64
  2. setenv PKG_CONFIG_PATH /usr/local/lib64/pkgconfig

Configure and compile and install wxWidgets libraries

  1. cd /usr/local/wxPython-src-2.8.7.1/
  2. ../configure --prefix=/usr --libdir=/usr/lib64 --enable-unicode
    • on cem02, this didn't work for 'root', had to do this as user 'stokes'
    • Andrea used -with-gtk --with-gnomeprint --with-opengl --enable-debug --enable-geometry --enable-mediactrl --enable-display --disable-debugreport
  3. make
  4. make install
Changed:
<
<

compile anda install wxPython modules

>
>

compile and install wxPython modules

 
  1. cd /usr/local/wxPython-src-2.8.7.1//wxPython
  2. edit config.py
    • set flags for BUILD_GLCANVAS, BUILD_STC, BUILD_GIZMOS to 0 (they gave errors during the build, but maybe you can try them)
  3. python setup.py build
  4. python setup.py install
  5. create file 'wx.pth' in site-packages directory: contents of file: wx-2.8-gtk2-unicode (or whatever the directory used for wx)
    • actually, it looks like you might be able to copy /usr/lib/python2.x/site-packages/wx.pth to /usr/lib64/python2.x/site-packages

Test installation

  1. To test: Type python then type import wx
  2. If no errors are returned, then it has been configured correctly.
Added:
>
>

Centos5

  • Centos5 comes with newer versions of pango and several other libraries, incompatible with Protomo
  • These are installed in /usr/local/lib64
  • The old libraries are incompatible with firefox and wxpython
  • To use wxpython and firefox, need to have /usr/lib64 (and not /usr/local/lib64) in LD_LIBRARY_PATH variable
  • Cem03 and Cem12 are set up on centos5, so they have this issue
 
  • Set ALLOWTOPICVIEW =

-- DavidStokes - 29 May 2008

META FILEATTACHMENT attachment="wxPython-src-2.8.7.1.tar.bz2" attr="" comment="wxPython 2.8 source tarball" date="1212095673" name="wxPython-src-2.8.7.1.tar.bz2" path="wxPython-src-2.8.7.1.tar.bz2" size="26362160" stream="wxPython-src-2.8.7.1.tar.bz2" user="Main.DavidStokes" version="0"
META TOPICMOVED by="DavidStokes" date="1214924233" from="Main.InstallgxPython" to="Main.InstallwxPython"

Revision 1403 Dec 2008 - Main.DavidStokes

 
META TOPICPARENT name="CemIT"
Contents

Prerequisites

  1. python
  2. gtk and glib. If the FSU software has been installed already then the required libraries should already be present
  3. wxGTK (Not sure if this is absolutely required).

Dowload packages

  1. login as root
  2. Download wxPython source from Sourceforge.
  3. Extract to /usr/local/

Setup environment for compile

  1. setenv LD_LIBRARY_PATH /usr/lib64
    • Andrea included /usr/local/lib64:/usr/X11R6/lib64
  2. setenv PKG_CONFIG_PATH /usr/local/lib64/pkgconfig

Configure and compile and install wxWidgets libraries

  1. cd /usr/local/wxPython-src-2.8.7.1/
  2. ../configure --prefix=/usr --libdir=/usr/lib64 --enable-unicode
Added:
>
>
    • on cem02, this didn't work for 'root', had to do this as user 'stokes'
 
    • Andrea used -with-gtk --with-gnomeprint --with-opengl --enable-debug --enable-geometry --enable-mediactrl --enable-display --disable-debugreport
  1. make
  2. make install

compile anda install wxPython modules

  1. cd /usr/local/wxPython-src-2.8.7.1//wxPython
  2. edit config.py
    • set flags for BUILD_GLCANVAS, BUILD_STC, BUILD_GIZMOS to 0 (they gave errors during the build, but maybe you can try them)
  3. python setup.py build
  4. python setup.py install
  5. create file 'wx.pth' in site-packages directory: contents of file: wx-2.8-gtk2-unicode (or whatever the directory used for wx)
    • actually, it looks like you might be able to copy /usr/lib/python2.x/site-packages/wx.pth to /usr/lib64/python2.x/site-packages

Test installation

  1. To test: Type python then type import wx
  2. If no errors are returned, then it has been configured correctly.

  • Set ALLOWTOPICVIEW =

-- DavidStokes - 29 May 2008

META FILEATTACHMENT attachment="wxPython-src-2.8.7.1.tar.bz2" attr="" comment="wxPython 2.8 source tarball" date="1212095673" name="wxPython-src-2.8.7.1.tar.bz2" path="wxPython-src-2.8.7.1.tar.bz2" size="26362160" stream="wxPython-src-2.8.7.1.tar.bz2" user="Main.DavidStokes" version="0"
META TOPICMOVED by="DavidStokes" date="1214924233" from="Main.InstallgxPython" to="Main.InstallwxPython"

Revision 1301 Jul 2008 - Main.DavidStokes

 
META TOPICPARENT name="CemIT"
Contents

Prerequisites

  1. python
  2. gtk and glib. If the FSU software has been installed already then the required libraries should already be present
  3. wxGTK (Not sure if this is absolutely required).

Dowload packages

  1. login as root
  2. Download wxPython source from Sourceforge.
  3. Extract to /usr/local/

Setup environment for compile

  1. setenv LD_LIBRARY_PATH /usr/lib64
    • Andrea included /usr/local/lib64:/usr/X11R6/lib64
  2. setenv PKG_CONFIG_PATH /usr/local/lib64/pkgconfig

Configure and compile and install wxWidgets libraries

  1. cd /usr/local/wxPython-src-2.8.7.1/
  2. ../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
  3. make
  4. make install

compile anda install wxPython modules

  1. cd /usr/local/wxPython-src-2.8.7.1//wxPython
  2. edit config.py
    • set flags for BUILD_GLCANVAS, BUILD_STC, BUILD_GIZMOS to 0 (they gave errors during the build, but maybe you can try them)
  3. python setup.py build
  4. python setup.py install
  5. create file 'wx.pth' in site-packages directory: contents of file: wx-2.8-gtk2-unicode (or whatever the directory used for wx)
    • actually, it looks like you might be able to copy /usr/lib/python2.x/site-packages/wx.pth to /usr/lib64/python2.x/site-packages

Test installation

  1. To test: Type python then type import wx
  2. If no errors are returned, then it has been configured correctly.

  • Set ALLOWTOPICVIEW =

-- DavidStokes - 29 May 2008

META FILEATTACHMENT attachment="wxPython-src-2.8.7.1.tar.bz2" attr="" comment="wxPython 2.8 source tarball" date="1212095673" name="wxPython-src-2.8.7.1.tar.bz2" path="wxPython-src-2.8.7.1.tar.bz2" size="26362160" stream="wxPython-src-2.8.7.1.tar.bz2" user="Main.DavidStokes" version="0"
Added:
>
>
META TOPICMOVED by="DavidStokes" date="1214924233" from="Main.InstallgxPython" to="Main.InstallwxPython"
 

Revision 1229 May 2008 - Main.DavidStokes

 
META TOPICPARENT name="CemIT"
Contents

Prerequisites

  1. python
Changed:
<
<
  1. gtk and glib. If the FSU software has been installed already then the
>
>
  1. gtk and glib. If the FSU software has been installed already then the required libraries should already be present
 
  1. wxGTK (Not sure if this is absolutely required).

Dowload packages

  1. login as root
  2. Download wxPython source from Sourceforge.
  3. Extract to /usr/local/

Setup environment for compile

  1. setenv LD_LIBRARY_PATH /usr/lib64
    • Andrea included /usr/local/lib64:/usr/X11R6/lib64
  2. setenv PKG_CONFIG_PATH /usr/local/lib64/pkgconfig

Configure and compile and install wxWidgets libraries

  1. cd /usr/local/wxPython-src-2.8.7.1/
  2. ../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
  3. make
  4. make install

compile anda install wxPython modules

  1. cd /usr/local/wxPython-src-2.8.7.1//wxPython
  2. edit config.py
    • set flags for BUILD_GLCANVAS, BUILD_STC, BUILD_GIZMOS to 0 (they gave errors during the build, but maybe you can try them)
  3. python setup.py build
  4. python setup.py install
  5. create file 'wx.pth' in site-packages directory: contents of file: wx-2.8-gtk2-unicode (or whatever the directory used for wx)
    • actually, it looks like you might be able to copy /usr/lib/python2.x/site-packages/wx.pth to /usr/lib64/python2.x/site-packages

Test installation

  1. To test: Type python then type import wx
  2. If no errors are returned, then it has been configured correctly.

  • Set ALLOWTOPICVIEW =

-- DavidStokes - 29 May 2008

META FILEATTACHMENT attachment="wxPython-src-2.8.7.1.tar.bz2" attr="" comment="wxPython 2.8 source tarball" date="1212095673" name="wxPython-src-2.8.7.1.tar.bz2" path="wxPython-src-2.8.7.1.tar.bz2" size="26362160" stream="wxPython-src-2.8.7.1.tar.bz2" user="Main.DavidStokes" version="0"

Revision 1129 May 2008 - Main.DavidStokes

 
META TOPICPARENT name="CemIT"
Contents

Prerequisites

  1. python
Changed:
<
<
  1. gtk and glib. If the FSU software has been installed
>
>
  1. gtk and glib. If the FSU software has been installed already then the
Deleted:
<
<
already then the
 
  1. wxGTK (Not sure if this is absolutely required).

Dowload packages

  1. login as root
  2. Download wxPython source from Sourceforge.
  3. Extract to /usr/local/

Setup environment for compile

  1. setenv LD_LIBRARY_PATH /usr/lib64
    • Andrea included /usr/local/lib64:/usr/X11R6/lib64
  2. setenv PKG_CONFIG_PATH /usr/local/lib64/pkgconfig

Configure and compile and install wxWidgets libraries

  1. cd /usr/local/wxPython-src-2.8.7.1/
  2. ../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
  3. make
  4. make install

compile anda install wxPython modules

  1. cd /usr/local/wxPython-src-2.8.7.1//wxPython
  2. edit config.py
    • set flags for BUILD_GLCANVAS, BUILD_STC, BUILD_GIZMOS to 0 (they gave errors during the build, but maybe you can try them)
  3. python setup.py build
  4. python setup.py install
  5. create file 'wx.pth' in site-packages directory: contents of file: wx-2.8-gtk2-unicode (or whatever the directory used for wx)
    • actually, it looks like you might be able to copy /usr/lib/python2.x/site-packages/wx.pth to /usr/lib64/python2.x/site-packages

Test installation

  1. To test: Type python then type import wx
  2. If no errors are returned, then it has been configured correctly.

  • Set ALLOWTOPICVIEW =

-- DavidStokes - 29 May 2008

META FILEATTACHMENT attachment="wxPython-src-2.8.7.1.tar.bz2" attr="" comment="wxPython 2.8 source tarball" date="1212095673" name="wxPython-src-2.8.7.1.tar.bz2" path="wxPython-src-2.8.7.1.tar.bz2" size="26362160" stream="wxPython-src-2.8.7.1.tar.bz2" user="Main.DavidStokes" version="0"

Revision 1029 May 2008 - Main.DavidStokes

 
META TOPICPARENT name="CemIT"
Contents

Prerequisites

Changed:
<
<
  • python
  • gtk and glib. If the FSU software has been installed
already then the required libraries are present
>
>
  1. python
  2. gtk and glib. If the FSU software has been installed
already then the
Added:
>
>
  1. wxGTK (Not sure if this is absolutely required).
 

Dowload packages

  1. login as root
Deleted:
<
<
  1. 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
 
  1. Download wxPython source from Sourceforge.
  2. Extract to /usr/local/

Setup environment for compile

  1. setenv LD_LIBRARY_PATH /usr/lib64
    • Andrea included /usr/local/lib64:/usr/X11R6/lib64
  2. setenv PKG_CONFIG_PATH /usr/local/lib64/pkgconfig

Configure and compile and install wxWidgets libraries

  1. cd /usr/local/wxPython-src-2.8.7.1/
  2. ../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
  3. make
  4. make install

compile anda install wxPython modules

  1. cd /usr/local/wxPython-src-2.8.7.1//wxPython
  2. edit config.py
    • set flags for BUILD_GLCANVAS, BUILD_STC, BUILD_GIZMOS to 0 (they gave errors during the build, but maybe you can try them)
  3. python setup.py build
  4. python setup.py install
  5. create file 'wx.pth' in site-packages directory: contents of file: wx-2.8-gtk2-unicode (or whatever the directory used for wx)
    • actually, it looks like you might be able to copy /usr/lib/python2.x/site-packages/wx.pth to /usr/lib64/python2.x/site-packages

Test installation

  1. To test: Type python then type import wx
  2. If no errors are returned, then it has been configured correctly.

  • Set ALLOWTOPICVIEW =

-- DavidStokes - 29 May 2008

META FILEATTACHMENT attachment="wxPython-src-2.8.7.1.tar.bz2" attr="" comment="wxPython 2.8 source tarball" date="1212095673" name="wxPython-src-2.8.7.1.tar.bz2" path="wxPython-src-2.8.7.1.tar.bz2" size="26362160" stream="wxPython-src-2.8.7.1.tar.bz2" user="Main.DavidStokes" version="0"

Revision 929 May 2008 - Main.DavidStokes

 
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

  1. login as root
  2. 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
  3. Download wxPython source from Sourceforge.
  4. Extract to /usr/local/

Setup environment for compile

  1. setenv LD_LIBRARY_PATH /usr/lib64
    • Andrea included /usr/local/lib64:/usr/X11R6/lib64
  2. setenv PKG_CONFIG_PATH /usr/local/lib64/pkgconfig

Configure and compile and install wxWidgets libraries

  1. cd /usr/local/wxPython-src-2.8.7.1/
  2. ../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
  3. make
  4. make install

compile anda install wxPython modules

  1. cd /usr/local/wxPython-src-2.8.7.1//wxPython
  2. edit config.py
    • set flags for BUILD_GLCANVAS, BUILD_STC, BUILD_GIZMOS to 0 (they gave errors during the build, but maybe you can try them)
  3. python setup.py build
  4. python setup.py install
  5. create file 'wx.pth' in site-packages directory: contents of file: wx-2.8-gtk2-unicode (or whatever the directory used for wx)
Added:
>
>
    • actually, it looks like you might be able to copy /usr/lib/python2.x/site-packages/wx.pth to /usr/lib64/python2.x/site-packages
 

Test installation

  1. To test: Type python then type import wx
  2. If no errors are returned, then it has been configured correctly.

  • Set ALLOWTOPICVIEW =

-- DavidStokes - 29 May 2008

META FILEATTACHMENT attachment="wxPython-src-2.8.7.1.tar.bz2" attr="" comment="wxPython 2.8 source tarball" date="1212095673" name="wxPython-src-2.8.7.1.tar.bz2" path="wxPython-src-2.8.7.1.tar.bz2" size="26362160" stream="wxPython-src-2.8.7.1.tar.bz2" user="Main.DavidStokes" version="0"

Revision 829 May 2008 - Main.DavidStokes

 
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

  1. login as root
  2. 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
  3. Download wxPython source from Sourceforge.
  4. Extract to /usr/local/

Setup environment for compile

  1. setenv LD_LIBRARY_PATH /usr/lib64
    • Andrea included /usr/local/lib64:/usr/X11R6/lib64
  2. setenv PKG_CONFIG_PATH /usr/local/lib64/pkgconfig

Configure and compile and install wxWidgets libraries

  1. cd /usr/local/wxPython-src-2.8.7.1/
  2. ../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
  3. make
  4. make install

compile anda install wxPython modules

  1. cd /usr/local/wxPython-src-2.8.7.1//wxPython
  2. edit config.py
Changed:
<
<
    • set flags for BUILD_GLCANVAS, BUILD_STC, BUILD_GIZMOS to 0 (but maybe you can try this)
>
>
    • set flags for BUILD_GLCANVAS, BUILD_STC, BUILD_GIZMOS to 0 (they gave errors during the build, but maybe you can try them)
 
  1. python setup.py build
  2. python setup.py install
  3. create file 'wx.pth' in site-packages directory: contents of file: wx-2.8-gtk2-unicode (or whatever the directory used for wx)

Test installation

  1. To test: Type python then type import wx
  2. If no errors are returned, then it has been configured correctly.

  • Set ALLOWTOPICVIEW =

-- DavidStokes - 29 May 2008

META FILEATTACHMENT attachment="wxPython-src-2.8.7.1.tar.bz2" attr="" comment="wxPython 2.8 source tarball" date="1212095673" name="wxPython-src-2.8.7.1.tar.bz2" path="wxPython-src-2.8.7.1.tar.bz2" size="26362160" stream="wxPython-src-2.8.7.1.tar.bz2" user="Main.DavidStokes" version="0"

Revision 729 May 2008 - Main.DavidStokes

 
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

  1. login as root
  2. 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
  3. Download wxPython source from Sourceforge.
Changed:
<
<
    • wxPython-src-2.8.7.1.tar.bz2
>
>
 
    • Andrea used wxPython-src-2.6.3.0.tar.gz
  1. Extract to /usr/local/

Setup environment for compile

  1. setenv LD_LIBRARY_PATH /usr/lib64
    • Andrea included /usr/local/lib64:/usr/X11R6/lib64
  2. setenv PKG_CONFIG_PATH /usr/local/lib64/pkgconfig

Configure and compile and install wxWidgets libraries

  1. cd /usr/local/wxPython-src-2.8.7.1/
  2. ../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
  3. make
  4. make install

compile anda install wxPython modules

  1. cd /usr/local/wxPython-src-2.8.7.1//wxPython
  2. edit config.py
    • set flags for BUILD_GLCANVAS, BUILD_STC, BUILD_GIZMOS to 0 (but maybe you can try this)
  3. python setup.py build
  4. python setup.py install
  5. create file 'wx.pth' in site-packages directory: contents of file: wx-2.8-gtk2-unicode (or whatever the directory used for wx)

Test installation

  1. To test: Type python then type import wx
  2. If no errors are returned, then it has been configured correctly.

  • Set ALLOWTOPICVIEW =

-- DavidStokes - 29 May 2008

Changed:
<
<
* wxPython-src-2.8.7.1.tar.bz2: wxPython 2.8 source tarball
>
>
 
META FILEATTACHMENT attachment="wxPython-src-2.8.7.1.tar.bz2" attr="" comment="wxPython 2.8 source tarball" date="1212095673" name="wxPython-src-2.8.7.1.tar.bz2" path="wxPython-src-2.8.7.1.tar.bz2" size="26362160" stream="wxPython-src-2.8.7.1.tar.bz2" user="Main.DavidStokes" version="0"

Revision 629 May 2008 - Main.DavidStokes

 
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

  1. login as root
  2. 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
  3. Download wxPython source from Sourceforge.
  4. Extract to /usr/local/

Setup environment for compile

  1. setenv LD_LIBRARY_PATH /usr/lib64
    • Andrea included /usr/local/lib64:/usr/X11R6/lib64
  2. setenv PKG_CONFIG_PATH /usr/local/lib64/pkgconfig

Configure and compile and install wxWidgets libraries

  1. cd /usr/local/wxPython-src-2.8.7.1/
  2. ../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
  3. make
  4. make install

compile anda install wxPython modules

  1. cd /usr/local/wxPython-src-2.8.7.1//wxPython
  2. edit config.py
    • set flags for BUILD_GLCANVAS, BUILD_STC, BUILD_GIZMOS to 0 (but maybe you can try this)
  3. python setup.py build
  4. python setup.py install
  5. create file 'wx.pth' in site-packages directory: contents of file: wx-2.8-gtk2-unicode (or whatever the directory used for wx)

Test installation

  1. To test: Type python then type import wx
  2. If no errors are returned, then it has been configured correctly.

  • Set ALLOWTOPICVIEW =

-- DavidStokes - 29 May 2008

Added:
>
>
* wxPython-src-2.8.7.1.tar.bz2: wxPython 2.8 source tarball

META FILEATTACHMENT attachment="wxPython-src-2.8.7.1.tar.bz2" attr="" comment="wxPython 2.8 source tarball" date="1212095673" name="wxPython-src-2.8.7.1.tar.bz2" path="wxPython-src-2.8.7.1.tar.bz2" size="26362160" stream="wxPython-src-2.8.7.1.tar.bz2" user="Main.DavidStokes" version="0"
 

Revision 529 May 2008 - Main.DavidStokes

 
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

Added:
>
>
  1. login as root
 
  1. 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
Changed:
<
<
  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)
  2. 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)
  3. Change permissions of entire directory (chmod -R 777 /home/Stokes/nans/wxPython-src-2.6.3.0)
>
>
  1. Download wxPython source from Sourceforge.
Added:
>
>
    • Andrea used wxPython-src-2.6.3.0.tar.gz
  1. Extract to /usr/local/
 

Setup environment for compile

Changed:
<
<
  1. setenv LD_LIBRARY_PATH /usr/local/lib64:/usr/X11R6/lib64:/usr/lib64
>
>
  1. setenv LD_LIBRARY_PATH /usr/lib64
Added:
>
>
    • Andrea included /usr/local/lib64:/usr/X11R6/lib64
 
  1. setenv PKG_CONFIG_PATH /usr/local/lib64/pkgconfig
Deleted:
<
<
  1. mkdir /home/Stokes/nans/wxPython-src-2.6.3.0/wxPythonbuild
  2. mkdir /home/Stokes/nans/wxPythoninstall
 
Changed:
<
<

Configure and compile and install

>
>

Configure and compile and install wxWidgets libraries

 
Changed:
<
<
  1. cd /home/Stokes/nans/wxPython-src-2.6.3.0/wxPythonbuild
  2. ../configure --prefix=/home/Stokes/nans/wxPythoninstall --with-gtk --with-gnomeprint --with-opengl --enable-debug --enable-geometry --enable-mediactrl --enable-display --disable-debugreport
  3. Download the special .make file and place into /home/Stokes/nans/wxPython-src-2.6.3.0/ (I've attached this)
  4. ../.make (you should still be in /home/Stokes/nans/wxPython-src-2.6.3.0/wxPythonbuild)
>
>
  1. cd /usr/local/wxPython-src-2.8.7.1/
  2. ../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
  3. make
  4. make install
Deleted:
<
<
  1. ../.make install
 
Changed:
<
<

Setup environment to finish installation

>
>

compile anda install wxPython modules

 
Changed:
<
<
  1. Add /home/Stokes/nans/wxPythoninstall/bin to PATH in .cshrc
  2. Add /home/Stokes/nans/wxPythoninstall/lib to LD_LIBRARY_PATH in .cshrc
  3. source .cshrc
  4. setenv LD_LIBRARY_PATH /usr/local/lib64:/usr/X11R6/lib64:/usr/lib64
  5. setenv PKG_CONFIG_PATH /usr/local/lib64/pkgconfig
>
>
  1. cd /usr/local/wxPython-src-2.8.7.1//wxPython
  2. edit config.py
    • set flags for BUILD_GLCANVAS, BUILD_STC, BUILD_GIZMOS to 0 (but maybe you can try this)
  3. python setup.py build
  4. python setup.py install
  5. create file 'wx.pth' in site-packages directory: contents of file: wx-2.8-gtk2-unicode (or whatever the directory used for wx)
Deleted:
<
<

Finish installation

  1. cd /home/Stokes/nans/wxPython-src-2.6.3.0/wxPython
  2. python2.3 setup.py build_ext --inplace --debug
  3. as root: python2.3 setup.py install
  4. 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
  5. The directories wxPythoninstall and wxPython-src-2.6.3.0 can both be moved into /usr/local/wxPython
  6. cd /usr/local/wxPython/wxPythoninstall/bin
  7. remove broken wt-config link
  8. Create new softlink: ln -s /usr/local/wxPython/wxPythoninstall/lib/wx/config/gtk2-ansi-debug-2.6wx-config
  9. 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
  10. Source .cshrc
 

Test installation

  1. To test: Type python then type import wx
  2. If no errors are returned, then it has been configured correctly.

  • Set ALLOWTOPICVIEW =

-- DavidStokes - 29 May 2008

Revision 429 May 2008 - Main.DavidStokes

 
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

  1. 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
  2. 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)
  3. 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)
  4. Change permissions of entire directory (chmod -R 777 /home/Stokes/nans/wxPython-src-2.6.3.0)

Setup environment for compile

  1. setenv LD_LIBRARY_PATH /usr/local/lib64:/usr/X11R6/lib64:/usr/lib64
  2. setenv PKG_CONFIG_PATH /usr/local/lib64/pkgconfig
  3. mkdir /home/Stokes/nans/wxPython-src-2.6.3.0/wxPythonbuild
  4. mkdir /home/Stokes/nans/wxPythoninstall

Configure and compile and install

  1. cd /home/Stokes/nans/wxPython-src-2.6.3.0/wxPythonbuild
  2. ../configure --prefix=/home/Stokes/nans/wxPythoninstall --with-gtk --with-gnomeprint --with-opengl --enable-debug --enable-geometry --enable-mediactrl --enable-display --disable-debugreport
  3. Download the special .make file and place into /home/Stokes/nans/wxPython-src-2.6.3.0/ (I've attached this)
  4. ../.make (you should still be in /home/Stokes/nans/wxPython-src-2.6.3.0/wxPythonbuild)
  5. ../.make install

Setup environment to finish installation

  1. Add /home/Stokes/nans/wxPythoninstall/bin to PATH in .cshrc
  2. Add /home/Stokes/nans/wxPythoninstall/lib to LD_LIBRARY_PATH in .cshrc
  3. source .cshrc
  4. setenv LD_LIBRARY_PATH /usr/local/lib64:/usr/X11R6/lib64:/usr/lib64
  5. setenv PKG_CONFIG_PATH /usr/local/lib64/pkgconfig

Finish installation

  1. cd /home/Stokes/nans/wxPython-src-2.6.3.0/wxPython
  2. python2.3 setup.py build_ext --inplace --debug
  3. as root: python2.3 setup.py install
  4. add setenv PYTHONPATH /usr/lib64/python2.3/site-packages/wx-2.6-gtk2-ansi to .cshrc
Added:
>
>
    • OR - create file 'wx.pth' in site-packages directory: contents of file: wx-2.6-gtk2-ansi
 
  1. The directories wxPythoninstall and wxPython-src-2.6.3.0 can both be moved into /usr/local/wxPython
  2. cd /usr/local/wxPython/wxPythoninstall/bin
  3. remove broken wt-config link
  4. Create new softlink: ln -s /usr/local/wxPython/wxPythoninstall/lib/wx/config/gtk2-ansi-debug-2.6wx-config
  5. 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
Added:
>
>
      • OR - copy these files to /usr/local/lib64
 
  1. Source .cshrc

Test installation

  1. To test: Type python then type import wx
  2. If no errors are returned, then it has been configured correctly.

  • Set ALLOWTOPICVIEW =

-- DavidStokes - 29 May 2008

Revision 329 May 2008 - Main.DavidStokes

 
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

  1. 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
  2. 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)
  3. 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)
  4. Change permissions of entire directory (chmod -R 777 /home/Stokes/nans/wxPython-src-2.6.3.0)

Setup environment for compile

  1. setenv LD_LIBRARY_PATH /usr/local/lib64:/usr/X11R6/lib64:/usr/lib64
  2. setenv PKG_CONFIG_PATH /usr/local/lib64/pkgconfig
  3. mkdir /home/Stokes/nans/wxPython-src-2.6.3.0/wxPythonbuild
  4. mkdir /home/Stokes/nans/wxPythoninstall

Configure and compile and install

  1. cd /home/Stokes/nans/wxPython-src-2.6.3.0/wxPythonbuild
  2. ../configure --prefix=/home/Stokes/nans/wxPythoninstall --with-gtk --with-gnomeprint --with-opengl --enable-debug --enable-geometry --enable-mediactrl --enable-display --disable-debugreport
  3. Download the special .make file and place into /home/Stokes/nans/wxPython-src-2.6.3.0/ (I've attached this)
Added:
>
>
 
  1. ../.make (you should still be in /home/Stokes/nans/wxPython-src-2.6.3.0/wxPythonbuild)
  2. ../.make install

Setup environment to finish installation

  1. Add /home/Stokes/nans/wxPythoninstall/bin to PATH in .cshrc
  2. Add /home/Stokes/nans/wxPythoninstall/lib to LD_LIBRARY_PATH in .cshrc
  3. source .cshrc
  4. setenv LD_LIBRARY_PATH /usr/local/lib64:/usr/X11R6/lib64:/usr/lib64
  5. setenv PKG_CONFIG_PATH /usr/local/lib64/pkgconfig

Finish installation

  1. cd /home/Stokes/nans/wxPython-src-2.6.3.0/wxPython
  2. python2.3 setup.py build_ext --inplace --debug
  3. as root: python2.3 setup.py install
  4. add setenv PYTHONPATH /usr/lib64/python2.3/site-packages/wx-2.6-gtk2-ansi to .cshrc
  5. The directories wxPythoninstall and wxPython-src-2.6.3.0 can both be moved into /usr/local/wxPython
  6. cd /usr/local/wxPython/wxPythoninstall/bin
  7. remove broken wt-config link
  8. Create new softlink: ln -s /usr/local/wxPython/wxPythoninstall/lib/wx/config/gtk2-ansi-debug-2.6wx-config
  9. 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
  10. Source .cshrc

Test installation

  1. To test: Type python then type import wx
  2. If no errors are returned, then it has been configured correctly.

  • Set ALLOWTOPICVIEW =

-- DavidStokes - 29 May 2008

Deleted:
<
<
* .make: .make

META FILEATTACHMENT attachment=".make" attr="" comment=".make" date="1212075256" name=".make" path=".make" size="147" stream=".make" user="Main.DavidStokes" version="0"
 

Revision 229 May 2008 - Main.DavidStokes

 
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

  1. 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
  2. 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)
  3. 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)
  4. Change permissions of entire directory (chmod -R 777 /home/Stokes/nans/wxPython-src-2.6.3.0)

Setup environment for compile

  1. setenv LD_LIBRARY_PATH /usr/local/lib64:/usr/X11R6/lib64:/usr/lib64
  2. setenv PKG_CONFIG_PATH /usr/local/lib64/pkgconfig
  3. mkdir /home/Stokes/nans/wxPython-src-2.6.3.0/wxPythonbuild
  4. mkdir /home/Stokes/nans/wxPythoninstall

Configure and compile and install

  1. cd /home/Stokes/nans/wxPython-src-2.6.3.0/wxPythonbuild
  2. ../configure --prefix=/home/Stokes/nans/wxPythoninstall --with-gtk --with-gnomeprint --with-opengl --enable-debug --enable-geometry --enable-mediactrl --enable-display --disable-debugreport
  3. Download the special .make file and place into /home/Stokes/nans/wxPython-src-2.6.3.0/ (I've attached this)
  4. ../.make (you should still be in /home/Stokes/nans/wxPython-src-2.6.3.0/wxPythonbuild)
  5. ../.make install

Setup environment to finish installation

  1. Add /home/Stokes/nans/wxPythoninstall/bin to PATH in .cshrc
  2. Add /home/Stokes/nans/wxPythoninstall/lib to LD_LIBRARY_PATH in .cshrc
  3. source .cshrc
  4. setenv LD_LIBRARY_PATH /usr/local/lib64:/usr/X11R6/lib64:/usr/lib64
  5. setenv PKG_CONFIG_PATH /usr/local/lib64/pkgconfig

Finish installation

  1. cd /home/Stokes/nans/wxPython-src-2.6.3.0/wxPython
  2. python2.3 setup.py build_ext --inplace --debug
  3. as root: python2.3 setup.py install
  4. add setenv PYTHONPATH /usr/lib64/python2.3/site-packages/wx-2.6-gtk2-ansi to .cshrc
  5. The directories wxPythoninstall and wxPython-src-2.6.3.0 can both be moved into /usr/local/wxPython
  6. cd /usr/local/wxPython/wxPythoninstall/bin
  7. remove broken wt-config link
  8. Create new softlink: ln -s /usr/local/wxPython/wxPythoninstall/lib/wx/config/gtk2-ansi-debug-2.6wx-config
  9. 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
  10. Source .cshrc

Test installation

  1. To test: Type python then type import wx
  2. If no errors are returned, then it has been configured correctly.

  • Set ALLOWTOPICVIEW =

-- DavidStokes - 29 May 2008

Added:
>
>
* .make: .make

META FILEATTACHMENT attachment=".make" attr="" comment=".make" date="1212075256" name=".make" path=".make" size="147" stream=".make" user="Main.DavidStokes" version="0"
 

Revision 129 May 2008 - Main.DavidStokes

 
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

  1. 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
  2. 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)
  3. 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)
  4. Change permissions of entire directory (chmod -R 777 /home/Stokes/nans/wxPython-src-2.6.3.0)

Setup environment for compile

  1. setenv LD_LIBRARY_PATH /usr/local/lib64:/usr/X11R6/lib64:/usr/lib64
  2. setenv PKG_CONFIG_PATH /usr/local/lib64/pkgconfig
  3. mkdir /home/Stokes/nans/wxPython-src-2.6.3.0/wxPythonbuild
  4. mkdir /home/Stokes/nans/wxPythoninstall

Configure and compile and install

  1. cd /home/Stokes/nans/wxPython-src-2.6.3.0/wxPythonbuild
  2. ../configure --prefix=/home/Stokes/nans/wxPythoninstall --with-gtk --with-gnomeprint --with-opengl --enable-debug --enable-geometry --enable-mediactrl --enable-display --disable-debugreport
  3. Download the special .make file and place into /home/Stokes/nans/wxPython-src-2.6.3.0/ (I've attached this)
  4. ../.make (you should still be in /home/Stokes/nans/wxPython-src-2.6.3.0/wxPythonbuild)
  5. ../.make install

Setup environment to finish installation

  1. Add /home/Stokes/nans/wxPythoninstall/bin to PATH in .cshrc
  2. Add /home/Stokes/nans/wxPythoninstall/lib to LD_LIBRARY_PATH in .cshrc
  3. source .cshrc
  4. setenv LD_LIBRARY_PATH /usr/local/lib64:/usr/X11R6/lib64:/usr/lib64
  5. setenv PKG_CONFIG_PATH /usr/local/lib64/pkgconfig

Finish installation

  1. cd /home/Stokes/nans/wxPython-src-2.6.3.0/wxPython
  2. python2.3 setup.py build_ext --inplace --debug
  3. as root: python2.3 setup.py install
  4. add setenv PYTHONPATH /usr/lib64/python2.3/site-packages/wx-2.6-gtk2-ansi to .cshrc
  5. The directories wxPythoninstall and wxPython-src-2.6.3.0 can both be moved into /usr/local/wxPython
  6. cd /usr/local/wxPython/wxPythoninstall/bin
  7. remove broken wt-config link
  8. Create new softlink: ln -s /usr/local/wxPython/wxPythoninstall/lib/wx/config/gtk2-ansi-debug-2.6wx-config
  9. 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
  10. Source .cshrc

Test installation

  1. To test: Type python then type import wx
  2. If no errors are returned, then it has been configured correctly.

  • Set ALLOWTOPICVIEW =

-- DavidStokes - 29 May 2008

 
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding this intranet, Send feedback