LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 09-25-2009, 03:51 AM   #1
bybuntu
LQ Newbie
 
Registered: Sep 2009
Location: Trondheim, Norway
Posts: 3

Rep: Reputation: 0
Question installing CDAT (Climate Data Analysis Tools) on ubuntu (9.04)


I was installing CDAT 5.2 (Climate Data Analysis Tools) on ubuntu (9.04) but I keep getting an error with python:

bin/sh: /home/...../cdat-5.2-src/pysrc: Permission denied
make: *** [install] Error 126
]


I know that CDAT is supposed to run with Python 2.5.2 but I have python 2.6 used by R. CDAT refuses to use either python 2.5 or 2.5, giving the above error. I dont know how to go round this problem. Please, if anyone has tried or now how I can do this I will be glad to hear from you.

Please do help if you can

Waiting.............

Bybuntu
 
Old 09-25-2009, 12:54 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,157

Rep: Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643
http://www2-pcmdi.llnl.gov/cdat/download/download/
svn export http://www-pcmdi.llnl.gov/svn/repository/cdat/tags/5.2 cdat-5.2-src
( Exported revision 8071.)

Code:
sudo apt-get install zlib1g-dev tcl8.5-dev tk8.5-dev libreadline5-dev uuid-dev libfontconfig1-dev libfreetype6-dev pkg-config cmake libpng12-dev libxt-dev libxml2-dev
( And may be 'sudo apt-get install liblapack-dev libblas-dev' ).

cd cdat-5.2-src/
./configure --prefix=/home/knudfl/cdat-build/
.
.
" python >= 2.5 with tcl/tk support not found... building 2.5.2 "
.
* So an internal python will be build to cdat-build/lib/python2.5/
→ → do not worry for python2.6 : will not be used.
* But if you are building to a 'system location' like /usr/local/,
* using e.g. './configure --prefix=/usr/local/something' ,
* this will be required : ' sudo make '
.....

Fixing "14" other errors in 14 internal applications :
cd /usr/lib/pkgconfig/
sudo ln -s libxml-2.0.pc xml2.pc
.....
Good luck ... and welcome to LQ.
.....

Last edited by knudfl; 09-26-2009 at 03:36 AM.
 
Old 09-26-2009, 06:37 PM   #3
bybuntu
LQ Newbie
 
Registered: Sep 2009
Location: Trondheim, Norway
Posts: 3

Original Poster
Rep: Reputation: 0
Question

Many thanks, knudfl


The installation is successful thanks but.....

******************************************************
Success! CDAT has been installed in /home/byman/cdat-build .
Make sure all Packages built successfully
******************************************************

To Test CDAT, please run:
/home/byman/cdat-build/bin/python test_cdat.py -v3 -P
and then
/home/byman/cdat-build/bin/python test_cdat.py -v3 -C --skip
You can add the option "--full" at the end of these lines for FULL testing
For more info on test_cdat.py functionalities run:
/home/byman/cdat-build/bin/python test_cdat.py --help

******************************************************

Done building CDAT
byman@byman-HMB:~/cdat-5.2-src$


but.....

byman@byman-HMB:~$ /home/byman/cdat-build/bin/python test_cdat.py -v3 -P
/home/byman/cdat-build/bin/python: can't open file 'test_cdat.py': [Errno 2] No such file or directory


I was excited but when I run the above I was taken a back. Do you why I get such an error? Or may the question is did I miss any step?

Thanks for the help

Bybuntu
 
Old 10-04-2009, 11:10 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,157

Rep: Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643
... Been away traveling for a week, so this is a late answer ..

I got the same error concerning the non existing
' test_cdat.py '.
There is a test file with a similar name, renaming
it to 'test_cdat.py' will make a test possible,
... may be ... I got "all errors".
.....

So please just try to use the application, it should work
without the tests, I guess.
.....

Last edited by knudfl; 10-04-2009 at 11:14 AM.
 
Old 10-06-2009, 03:37 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,157

Rep: Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643
.. And, I forgot ... an already compiled "package" is available,
I guess the tests have been run on this.

" In addition 5.2 comes a few UNSUPPORTED binary tarball,
these (and a tarball of the sources) can be found at : "

http://sourceforge.net/projects/cdat/files/Releases/5.2
http://sourceforge.net/projects/cdat...r.bz2/download
> > cdat-5.2-Linux-Ubuntu-32bit.tar.bz2
.....
 
Old 10-07-2009, 03:46 AM   #6
bybuntu
LQ Newbie
 
Registered: Sep 2009
Location: Trondheim, Norway
Posts: 3

Original Poster
Rep: Reputation: 0
knudfl

Thanks a lot. I tried the compiled package before you sent the detailed steps. Compilation went ok but I could not run (start) it. Your steps worked but I added a few more lines (see the steps below). However I had intended to use the OpenDap option for easy downloading but each time I compile with OpenDap option compilation fails. I wonder why. Secondly I have not been able to set the path so that I can start cdat in any directory... despite my doing export. But I hope other cdat would be users can use the steps below. It takes time to get it working though without support. Many thanks to you.

The steps below should work, or at least it worked for me!! Step 1 takes some time(>40 mins)

1. svn export http://www-pcmdi.llnl.gov/svn/repository/cdat/tags/5.2 cdat-5.2-src

2. sudo apt-get install zlib1g-dev tcl8.5-dev tk8.5-dev libreadline5-dev uuid-dev libfontconfig1-dev libfreetype6-dev pkg-config cmake libpng12-dev libxt-dev libxml2-dev

3. sudo apt-get install bison byacc flex gawk g++ gfortran libxt-dev libx11-dev tcsh xorg-dev

4. export CC=gcc

5. export FC=gfortran

6. export CXX=g++

7. cd cdat-5.2-src/

8. sudo ./configure --prefix=/home/username/cdat-build/

9. sudo make

10. set the paths

Last edited by bybuntu; 10-07-2009 at 03:57 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
real time analysis tools? avimal Linux - Kernel 2 12-13-2007 02:11 AM
tcp/ip capture analysis tools acid_kewpie Linux - Networking 13 09-02-2007 01:43 PM
spam Reporting and Analysis Tools justanothergeek Linux - Software 0 10-12-2004 10:22 AM
C code analysis tools Dark_Helmet Programming 8 07-12-2004 12:27 AM
Server Log Analysis Tools DtC Linux - Software 3 04-22-2003 11:25 PM


All times are GMT -5. The time now is 08:44 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration