Submit a Story  :  IRAF Links  :  Past Polls  :  Calendar  :  Advanced Search  
     iraf.net
FAQ
 Forum FAQForum FAQ   Forum SearchForum Search   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Finishing installation on Mac OSX

 
Post new topic   Reply to topic    iraf.net Forum Index -> Systems
View previous topic :: View next topic  
Author Message
qroper224



Joined: 11 Jun 2009
Posts: 2

PostPosted: Thu Jun 11, 2009 4:20 pm    Post subject: Finishing installation on Mac OSX Reply with quote

Hello,

I'm installing IRAF on MacOS-X and followed the cookbook supplied in
pciraf.ps all the way through the ./install phase and IRAF was
"installed successfully". However, I'm not sure what to do next. The
pciraf.ps document says that when logged in as iraf that I should be
able to run iraf simply by typing cl since iraf should be able to run
given the login files included with the system. However, an error of
-bash: cl: command not found
which appears that I'm missing some aliasing perhaps. Furthermore, when
logged in as another user the mkiraf command does not initiate the
initialization of their iraf profile but instead returns a similar error
-bash: cl: command not found
which again looks like there's something amiss in my .bash_profile
file. Could you please advise on how to finish this install?

Thanks,
Quentin
Back to top
View user's profile Send private message
fitz
Site Admin


Joined: 30 Sep 2005
Posts: 3256
Location: Tucson

PostPosted: Thu Jun 11, 2009 5:07 pm    Post subject: Reply with quote

'Command not found' usually indicates a path problem. By default, the iraf commands are created as links in the /usr/local/bin directory, this directory must be in the PATH variable you specify in your .bash_profile. Less often, the path is correct but the links are bad because the 'iraf root directory' was specified incorrectly (or is overridden in your environment). The install script should have caught this last case, so check your path first.

-Mike
Back to top
View user's profile Send private message
qroper224



Joined: 11 Jun 2009
Posts: 2

PostPosted: Thu Jun 11, 2009 6:45 pm    Post subject: Reply with quote

I figured the problem was something to that effect, but I'm not sure where the command mkiraf is to alias to in my bash profile. Where is the mkiraf command installed?

I did end up finding the cl.e file in the usr/local/iraf/irafbin/bin.macintel folder-- should I copy this to usr/local/bin for simplicity? When I run it, it gives me a half-dozen error messages of the tune "cannot open "/usr/include/iraf.h". What does this mean?

Thanks again.
Back to top
View user's profile Send private message
fitz
Site Admin


Joined: 30 Sep 2005
Posts: 3256
Location: Tucson

PostPosted: Thu Jun 11, 2009 6:50 pm    Post subject: Reply with quote

Sounds like the install script wasn't actually run, did you by chance run it as "install -n" (where -n is the no-op flag) or without a 'sudo' ?? The key is the missing /usr/include/iraf.h. Otherwise, all commands like 'mkiraf' and 'cl' are put in the same directory (normally, /usr/local/bin but you can specify someplace else). The 'cl' command has to do some environment setup, copying the cl.e binary directly is not recommended.

Try re-running the install script as

Code:
% cd $iraf/unix/hlib
% sudo ./install


-Mike
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    iraf.net Forum Index -> Systems All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2009 phpBB Group
 Copyright © 2005-2011 iraf.net
 All trademarks and copyrights on this page are owned by their respective owners.
Powered By Geeklog 
Created this page in 1.61 seconds