cdat 5.2 installation guide for ubuntu

Cdat 5.2 installation steps for ubuntu

Ref : http://www2-pcmdi.llnl.gov/

Ref : http://www2-pcmdi.llnl.gov/cdat

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):

  • bison *
  • byacc *
  • flex *
  • gawk *
  • g++
  • gfortran (for contrib packages)
  • libxt-dev
  • libx11-dev
  • 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++

source :

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
About these ads

6 responses to this post.

  1. Posted by Simon Peatman on January 21, 2011 at 7:25 am

    Very clear instructions, many thanks :-)

    Reply

    • Thank you :-)

      Reply

      • Posted by Angshuman on October 15, 2012 at 11:39 am

        really the instructions are clear.
        but i have a problem. it is showing the follwing error:
        Processing libcdms, log = /home/Documents/cdat-5.2-src/logs/libcdms.LOG
        Install failed in directory /home/Documents/cdat-5.2-src/libcdms
        Log= /home/Documents/cdat-5.2-src/logs/libcdms.LOG
        make: *** [install] Error 1

  2. Posted by Angshuman on October 15, 2012 at 11:51 am

    i am using ubuntu 12.0x

    Reply

  3. Posted by alagu on October 30, 2012 at 10:40 am

    i am installing cdat5.2 in ubuntu os as per ur procedure ,once i typed this code
    ./configure --prefix=/usr/local/cdat5.2/ --with-externals=/usr/local/cdat5.2/cdat_ext it is displaying following error,
    syntax error near unexpected token `<'
    please help me.

    Reply

  4. Posted by alagu on October 30, 2012 at 10:41 am

    i am using ubuntu 12.0x

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: