Cdat 5.2 installation steps for ubuntu
Ubuntu packages needed
If you have only the minimal Ubuntu install, there is a good chance that you won’t be able to do a successful install of CDAT, since additional packages are needed. Here’s the list of what I added (you can add them using Synaptic, Ubuntu’s GUI-based package manager):
- gfortran (for contrib packages)
tcsh (just highly recomended)
xorg-dev (also called xserver-xorg-dev)
If you will install cdat in freshly installed ubuntu , then finally it will return “Error” like , can not install “matplotlib”.
So for that , we need to install
libpng (1.1 or later ) and freetype (1.4 or later)
from synaptic package manager.
Explicitly set the default compiler
If you don’t explicitly set the environment variables specifying which compilers to use, you may end up compiling different libraries with different compilers. Thus, in csh or tcsh, make sure you execute:
export CC=gcc export FC=gfortran export CXX=g++
svn export http://www-pcmdi.llnl.gov/svn/repository/cdat/tags/5.2 cdat-5.2-src
Once you got the sources you can install CDAT as follow:./configure --prefix=/usr/local/cdat5.2/ --with-externals=/usr/local/cdat5.2/cdat_ext
NOTE : To copy the above code highlight the mouse over the code and select the "view source" option.A popup window will display the code.you can copy the code$ sudo make # You can now start CDAT with the command $ cd /usr/local/cdat5.2/bin $ ./cdat