Command prompt program HELP!

Joined
Oct 3, 2012
Messages
15
Reaction score
0
Hi,

I am beginning a study on the evolutionary divergence amongst 4 different populations of brook trout and need to use a program named IMa2. This program is command prompt based and I am very new to this. On the website from which I download the program the instructions are as follows:


To install the linux/unix/mac arhive:

save the archive to a suitable directory:
to decompress, type at the command prompt: tar zxf ima2-8.26.11.tar.gz
move to the ima2-8.26.11 directory
type at the command prompt: ./configure
then: make
the execuable (called 'IMa2') will be in the src directory


The command prompt is not working in the terminal. What is a suitable archive in this case? Simply unzipping the file by clicking on it does not help either...

Any suggestions would be most appreciated!

T
 
Joined
Nov 26, 2010
Messages
3,558
Reaction score
52
The command prompt is not working in the terminal.
What do you mean? You open Terminal and you are at the command prompt.
You can test this by typing
ls -alt
don't forget to press return after entering the ls command.
 
Joined
Oct 3, 2012
Messages
15
Reaction score
0
Let me clarify. I want to unzip that file using the "tar zxf ima2-8.26.11.tar.gz" command and I keep getting an Error message. When I unzip by clicking on the zip file it doesn't work. Seems to me that I need to use the terminal to unzip it and run the program. I have checked obsessively the spaces and the name of the file to be sure it's the same. Don't see what the problem could be...
 
Joined
Nov 26, 2010
Messages
3,558
Reaction score
52
an Error message? I'm driving blind here...

tar is the command
zxf are the Flags that tell tar what to do

ima2-8.26.11.tar.gz is the File that Tar is going to act on.

can you see the file ima2-8.26.11.tar.gz in Finder?
what message do you get is you just type
tar
( don't forget to press return after entering commands)
 
Joined
Oct 3, 2012
Messages
15
Reaction score
0
yes, that file is present in Finder and I type in the file name as it is shown in my finder.
Here is the error message that appears:

tar: Error opening archive: Failed to open 'ima2-8.27.11.tar.gz'

When I enter tar alone:

tar: Must specify one of -c, -r, -t, -u, -x

Yes, I am aware about pressing return after commands.Not sure what else there is to do.

Thanks!

T
 
Joined
Nov 26, 2010
Messages
3,558
Reaction score
52
good!

type

tar -x <then drag and drop the ima2-8.26.11.tar.gz file from Finder into Terminal press return>
 
Joined
Oct 3, 2012
Messages
15
Reaction score
0
Did that gave me instructions as follows:
List: tar -tf <archive-filename>
Extract: tar -xf <archive-filename>
Create: tar -cf <archive-filename> [filenames...]
Help: tar --help

Then I attempted to extract with tar -xf <drag drop ima2..>

Then it gave me:
Th...-MacBook-Air:~ tho.....on$
 
Joined
Nov 26, 2010
Messages
3,558
Reaction score
52
great!

now look around for the extracted Folder it should be in the same Folder as the ima2..
 
Joined
Nov 26, 2010
Messages
3,558
Reaction score
52
do you have a link where I can download the File and see whats the problem?
 
Joined
Oct 3, 2012
Messages
15
Reaction score
0
Joined
Nov 26, 2010
Messages
3,558
Reaction score
52
This is crazy, why can't they just build the 2 versions and post them as downloads.
 
Joined
Oct 3, 2012
Messages
15
Reaction score
0
Yup. I find the the folder with all the gibberish files, but have no idea as to where I need to type the commands as found on the site:


  • type at the command prompt: ./configure
  • then: make
 
Joined
Nov 26, 2010
Messages
3,558
Reaction score
52
Mine Fails on configure as my Dev System doesn't have gcc (I think)

See the File named configure, just drag and drop that into Terminal and press return, see what it says...
 
Joined
Oct 3, 2012
Messages
15
Reaction score
0
the GCC compiler I downloaded had to be deleted because it froze my terminal. Any other equivalent tools for the Xcode ??
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top