Linux distributions susch as Redhat, Ubuntu, Centos and probably many more have a machanism to download missing packages form the internet. The program yum implements this mechanism. You must run it as root and you are required to have an internet connection. You need yum to install packages required for compiling molden if they are by default not installed. This includes the gcc, g77 and gfortran compilers, the Xwindows and OpenGL include files and run time libraries.
yum install kernel-headers.i386 glibc-headers.i386 gcc.1386 gcc-gfortran.i386 or gcc-g77.i386 libX11.i386 mesa-libGL.i386 mesa-libGLU.i386 mesa-libGLU-devel.i386 libXmu.i386 libXmu-devel.i386The last package installs a version of libXmu library but forgets to create a link with libXmu.so. To remedy this go to the directory /usr/lib and type: ln -s libXmu.so.6.2.0 libXmu.so Now you are ready to compile molden. Untar the source code: tar -zxvf molden5.4.tar.gz cd molden5.4 edit the makefile and choose the g77 or gfortran compiler. make >& make.log
Ubuntu: Using apt-get instead of yum sudo apt-get install gfortran sudo apt-get install libX11-6 sudo apt-get install libX11-dev sudo apt-get install libgl1-mesa-glx sudo apt-get install libgl1-mesa-dev sudo apt-get install build-essential sudo apt-get install mesa-common-dev sudo apt-get install libglu1-mesa-dev sudo apt-get install libxmu-dev sudo apt-get install makedepend or xutils-dev sudo apt-get install wget