In the environment at my work, I usually have to compile newer versions of software for our clients to use. At the moment we have both CentOS 5 and CentOS 6 in production and I’d like to have to only compile a program only once and have it work in both.
Here’s what I did for octave/3.6.2:
1) Installed a bunch of dependencies on CentOS 5.8 box that I was missing:
sudo yum install ImageMagick-devel \ gd-devel \ glpk-devel \ suitesparse-devel \ qrupdate-devel \ fltk-devel \ qhull-devel \ GraphicsMagick-devel \ GraphicsMagick-c++-devel
2) Run the configure script and go! To get it to compile I had to remove the docs and curl section. I read somewhere on the mailing list that the versions of curl and zsh are too low and thus the issues. Last is the disabling of the hdf5, there’s a major version difference between CentOS 5 and 6 and causes octave not to work at all in 6.
tar -xvpf octave-3.6.2.tar.bz2 cd octave-3.6.2 ./configure --prefix=/pkg/octave/3.6.2 \ --without-curl \ --enable-docs=no \ --without-hdf5
3) Then the usual make and install:
make -j 2 make install