Problem resolved:
I didn't realize that if python is in /usr then I have to use the
configure --prefix=/usr
option in both the visual compilation AND the gtkglarea-1.2.3 compilation.
When I include this flag, visual works wonderfully.
A brief synopsis on what it takes to get visual-3.2.9 running on a
Scientific Linux 5.1 or 5.2 box follows:
Assuming you have root access:
Visual requires a number of libraries to run, by trial and error (reading
through compilation error logs) the following list seems to suffice:
yum install gtk+ gtk+-devel gtk2 gtk2-devel tk tk-devel tkinter
Then, download, open and configure gtkglarea-1.2.3 You could probably make
it know to visual with a "library/path" shell variable, but I found it
easiest to install it in the same tree as python, ie,
wget http://www.vpython.org/download/gtkglarea-1.2.3.tar.gz
tar zxf gtkglarea-1.2.3.tar.gz
cd gtkglarea-1.2.3
./configure --prefix=/usr * (assuming that pythion is /usr/bin/python)*
make
make install
After this, visual follows the same procedure,
wget http://www.vpython.org/download/visual-3.2.9.tar.bz2
tar jxf visual-3.2.9.tar.bz2
tar xf visual-3.2.9.tar.bz2
cd visual-3.2.9
./configure --prefix=/usr
make
make install
The idle interface is buried inside of /usr and I have trouble remembering
the whole path. Instead, I made a simple link inside of my .bashrc login
flie,
alias idle="/usr/bin/python /usr/lib/python2.4/idlelib/idle.pyw"
This took me a while to figure out - perhaps it could be posted on the
INSTALL/FAQ?
Nathan Moore
<nt...@gm...> wrote:
> I'm working to get a copy of visual 3.2.9 running on a Scientific Linux 5.2
> box (RHEL 5, compiled from source). The system built normally and I have a
> copy of visual installed (I think) but when I run a script which calls
> visual, it doesn't run. The error I get in the idle execution window
> complains about a missing libgtkgl,
>
> >>>
>
> Traceback (most recent call last):
> File
> "/home/nmoore/ibook_home_dir/nmoore/Desktop/learning_games/lightning/lightning.py",
> line 8, in -toplevel-
> from visual import *
> File "/usr/lib/python2.4/site-packages/visual/__init__.py", line 15, in
> -toplevel-
> import array_backend
> File "/usr/lib/python2.4/site-packages/visual/array_backend.py", line 1,
> in -toplevel-
> import cvisual
> ImportError: libgtkgl.so.5: cannot open shared object file: No such file or
> directory
>
> When I look for this library, it seems to be available,
>
> [nmoore@pilgrim ~]$ locate libgtkgl
> /usr/lib/libgtkglext-x11-1.0.a
> /usr/lib/libgtkglext-x11-1.0.so
> /usr/lib/libgtkglext-x11-1.0.so.0
> /usr/lib/libgtkglext-x11-1.0.so.0.2.4
> /usr/local/lib/libgtkgl.a
> /usr/local/lib/libgtkgl.la
> /usr/local/lib/libgtkgl.so
> /usr/local/lib/libgtkgl.so.5
> /usr/local/lib/libgtkgl.so.5.0.0
>
> Is this an easy thing to fix? When I configured/compiled visual, I used
> the config string,
> ../visual-3.2.9/configure --prefix=/usr
> Should I have specified something else in addition?
>
> regards,
>
> Nathan Moore
>
--
- - - - - - - - - - - - - - - - - - - - -
Nathan Moore
Assistant Professor, Physics
Winona State University
AIM: nmoorewsu
- - - - - - - - - - - - - - - - - - - - -
|