LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 02-20-2010, 04:14 PM   #1
a13x06
Member
 
Registered: Feb 2010
Location: UK
Distribution: ubuntu
Posts: 60

Rep: Reputation: 15
Installing software


I am trying to install GMT (http://gmt.soest.hawaii.edu/) but this is the first thing I have ever tryed to install in Ubuntu (I only got it today). I have downloaded the 2 files that it requires (install_GMT and GMTparam.txt).

It says I can use GMTparam.txt as an argument, what does this meen?

Any help would be appreciated!!

Alex
 
Old 02-20-2010, 04:48 PM   #2
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
Hi Alex,
read twice the installation instructions in the INSTALL_FORM page: they should appear straightforward after a while. If you have already filled the form and downloaded the resulting parameter file, you have to open a terminal and launch the installer, passing the name of the parameter file as an argument:
Code:
sh install_gmt GMTparam.txt
as you can see, it simply means you have to launch a command (install_gmt) with an argument (GMTparam.txt). The installer will read the content of the parameter file, then it will configure the installation steps based on the specified requirements and will give instructions to complete the installation itself.

Good luck!
Alex
 
Old 02-20-2010, 04:54 PM   #3
a13x06
Member
 
Registered: Feb 2010
Location: UK
Distribution: ubuntu
Posts: 60

Original Poster
Rep: Reputation: 15
Thanks for you help but I must still be doing something wrong...

Code:
alex@ubuntu:~$ sh install_gmt GMTparam.txt
sh: Can't open install_gmt
Cheers,

Alex
 
Old 02-20-2010, 04:58 PM   #4
Refractor
Member
 
Registered: Oct 2008
Location: Rousse, Bulgaria
Distribution: Slackware
Posts: 89

Rep: Reputation: 22
You could try giving install_gmt executable permissions via the command chmod a+x install_gmt and then run it like this
Code:
 install_gmt GMTparam.txt
This assumes isnstall_gmt and GMTparam.txt are located in your current directory.
 
Old 02-20-2010, 05:02 PM   #5
a13x06
Member
 
Registered: Feb 2010
Location: UK
Distribution: ubuntu
Posts: 60

Original Poster
Rep: Reputation: 15
I'm very sorry but I'm not sure I understand your last post

Code:
alex@ubuntu:~$ chmod a+x install_gmt
chmod: cannot access `install_gmt': No such file or directory
Thats what I get, I'm guessing thats bad?

Cheers,

Alex
 
Old 02-20-2010, 05:14 PM   #6
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,516

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
Make sure you are in the same directory as the directory containing the file install_gmt
 
Old 02-20-2010, 05:19 PM   #7
a13x06
Member
 
Registered: Feb 2010
Location: UK
Distribution: ubuntu
Posts: 60

Original Poster
Rep: Reputation: 15
How do I know which directory I'm in?
 
Old 02-20-2010, 05:21 PM   #8
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,266

Rep: Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661
May be get familiar with the command 'pwd'.

'pwd' will show your location.
Typing 'chmod a+x install_gmt' without 'cd' to its
directory won't work.

When you open the terminal, your location is usually
/home/<username>/ .
So the the first command is always :
cd <path-to-required-location>/ ,
e.g. cd Desktop/<GMT>/
.....
 
Old 02-20-2010, 05:21 PM   #9
Refractor
Member
 
Registered: Oct 2008
Location: Rousse, Bulgaria
Distribution: Slackware
Posts: 89

Rep: Reputation: 22
In your terminal "alex@ubuntu:~$" means this:
alex - your username
ubuntu - the hostname ( your PC's name)
~ - this is your location. ~ means your home directory, or /home/<username>; in your case that would be /home/alex
The error you're getting means that the file is not in your home directory. It's not bad, it just means that you have to locate it.
The command pwd gives your current location, and the command ls gives the files and directories in your current location.
I presume you are using Firefox. In that case your downloaded files will be in ~/Downloads or in ~/Download.
You can check if one of those exists with ls. If you see Download/ or Downloads/ i guess the files will be there.
To change your current location, use the cd command.
Code:
 cd Download
or
Code:
 cd Downloads
. When you enter the directory type ls to view its contents. If you see install_gmt and GMTparam.txt somewhere on the lines then that is the directory you have to be in. Now try one of the solutions you were given and post back the results

EDIT:

You can search for the file with the command
Code:
find -name "install_gmt"
.

Last edited by Refractor; 02-20-2010 at 05:23 PM.
 
Old 02-20-2010, 05:50 PM   #10
a13x06
Member
 
Registered: Feb 2010
Location: UK
Distribution: ubuntu
Posts: 60

Original Poster
Rep: Reputation: 15
I seem to be getting close but not quite there yet...

Code:
alex@ubuntu:~$ pwd
/home/alex
alex@ubuntu:~$ cd Desktop
alex@ubuntu:~/Desktop$ chmod a+x install_gmt
alex@ubuntu:~/Desktop$ install_gmt GMTparam.txt
install_gmt: command not found
What am I doing wrong here? Both files are on the desktop.

Thanks,

Alex
 
Old 02-20-2010, 05:52 PM   #11
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,516

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
If you are in the same directory as the file you need to use
Code:
./install_gmt GMTparam.txt
Since install_gmt isn't in your path
 
Old 02-21-2010, 02:36 AM   #12
a13x06
Member
 
Registered: Feb 2010
Location: UK
Distribution: ubuntu
Posts: 60

Original Poster
Rep: Reputation: 15
No I get this

Code:
alex@ubuntu:~/Desktop$ ./install_gmt GMTparam.txt
+++ Will expand *.bz2 files made with bzip2 +++
install_gmt: No path for netcdf provided - abort
install_gmt: netcdf not in /usr/local, /usr/local/netcdf, or /sw
alex@ubuntu:~/Desktop$
What am I doing wrong? Is installing software always this hard?

Cheers,

Alex
 
Old 02-21-2010, 04:00 AM   #13
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
Alex, you are a step ahead. Now the set-up has started, but it complains about the missing NetCDF libraries. Maybe you selected the wrong option in the install form:
Code:
o netCDF 3.6.x is already installed
o Please get and install the latest netCDF 3.6.x
o I already have the netcdf.tar.Z archive, just install it for me
If you haven't got the NetCDF already installed, you have to select the second option. Anyway, instead of submit the form again, you can manually edit the parameter file and change the following lines to:
Code:
#---------------------------------------------
#	NETCDF SECTION
#---------------------------------------------
netcdf_ftp=y
netcdf_install=y
In this way the GMT installer will download and install the NetCDF libraries for you. In alternative you can previously install NetCDF using the Ubuntu package manager (e.g. synaptic), then run the installer again leaving the param file untouched. Just be sure to install NetCDF 3.6.3, not the version 4.0, that maybe is still not supported by GMT.
Quote:
What am I doing wrong? Is installing software always this hard?
Nope! Actually the GMT software has a very peculiar installation method. They try to help users with the automated installation, but users should have at least a little knowledge of the matter. Furthermore, take in mind that GMT is a command-line tool.

This is not to discourage you. On the contrary! I'd really appreciate if you don't give up and succeed in the installation. It's not so hard at the point you just arrived, trust me.
 
Old 02-21-2010, 06:32 AM   #14
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,266

Rep: Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661
*

sudo apt-get install libnetcdf-dev
.. will provide "netcdf".

( Or use the Package Manager = Synaptic.)
.....
 
Old 02-21-2010, 11:26 AM   #15
a13x06
Member
 
Registered: Feb 2010
Location: UK
Distribution: ubuntu
Posts: 60

Original Poster
Rep: Reputation: 15
Thanks for all the help guys I think it installed, it produced a load of .bzip2 files on my desktop...
This is what the end of a long piece of code said:

Code:
Completed all animations
GMT installation complete. Remember to set these:

-----------------------------------------------------------------------
For csh or tcsh users:
setenv NETCDFHOME /home/alex/Desktop/netcdf-3.6.3
set path=(/home/alex/Desktop/GMT4.5.2/bin $path)

For sh or bash users:
export NETCDFHOME=/home/alex/Desktop/netcdf-3.6.3
export PATH=/home/alex/Desktop/GMT4.5.2/bin:$PATH

Note: if you installed netCDF as a shared library you may have to add
the path to this library to LD_LIBRARY_PATH or place the library in a
standard system path [see information on shared library for your OS].
What is it I have to set?

What are these library things?

How do you actually launch programs like this when they are installed?

Sorry again for my relentless questions but I am totally new to this and it seems to be a very steep learning curve!!!

Thanks again,

Alex
 
  


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
Self-Installing Software wesireal Linux - General 2 01-08-2005 04:57 PM
Installing software K_smolka Linux - Software 4 03-11-2004 01:24 PM
I need help installing software. galant1991vr4 Linux - Newbie 4 02-02-2004 07:21 PM
Installing software in RH SirLostalot Linux - Newbie 2 11-09-2002 05:55 PM
Question on installing software and starting software rootlinux Linux - Newbie 5 01-19-2002 11:40 AM


All times are GMT -5. The time now is 05:52 AM.

Main Menu
Advertisement
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