From: Bruce S. <Bru...@nc...> - 2009-09-01 03:34:43
|
I don't understand enough about building on Linux to be sure that it would help, but it might be worth building according to the instructions in INSTALL.txt, since that's how I've built Visual and it works. Moreover, the configure stage will tell you if you're missing certain dependencies. On the other hand, it seems possible that there's some incompatibility between Visual and 64bit Ubuntu (I only have access to 32bit Ubuntu). You suspect that "whenever vpython raises an exception, python seg. faults", but in your Example 1 there's no reason why VPython would raise an exception. Bruce Sherwood Guenter Schneider wrote: > Thank you for the prompt answers and I am glad it's my setup because > that should be easy to fix. > > There is no typo in the examples. All is cut and paste out of ipython > sessions. > > I should have mentioned I use 64bit Ubuntu. > I use boost 1.35 (libboost1.35-dev) and python 2.6.2 > > I use this script to build and install vpython > > #!/bin/bash > > SOFTWARE=visual-5.12_release > ARCHIVE=$SOFTWARE.tar.bz2 > ARCHIVEDIR="$SOFTWARE" > BUILDDIR=$SOFTWARE-install > tar jxvf $ARCHIVE > mkdir -p $BUILDDIR > cd $BUILDDIR > aptitude -y install libboost1.35-dev > aptitude -y install libsigc++-2.0-dev libgtkmm-2.4-dev libgtkglext1-dev > libgtkglext1 libgtkglextmm-x11-1.2-0 libgtkglextmm-x11-1.2-dev > libglademm-2.4-1c2a libglademm-2.4-dev > ../$ARCHIVEDIR/configure --prefix /usr > make > > #as root > cd $BUILDDIR > make install > echo /usr/lib/python2.6/site-packages >> > /usr/lib/python2.6/dist-packages/site-packages.pth > > If necessary I will setup a clean system from scratch and install > vpython there, but I'd rather fix it without going this route. > > Guenter Schneider > |