I had a similiar problem and I think that Your doinstall.sh fails because
your machine cannot start the octave executable. Just try to run the binary
manually and you'll probably see that the linker complains about some
undefined symbols. So you just have the wrong libraries installed: Have a
look at 'ldd ./octave'. But be aware of that upgrading your compiler/libraries
need not be a solution, some symbols are no longer part of the latest libs.
So the best way to get octave up and running is to compile it yourself.
Institut fuer Halbleiterphysik
Johannes Kepler Universitaet Linz