Welcome to iraf.net Thursday, April 25 2024 @ 01:27 PM GMT


 Forum Index > Help Desk > Systems New Topic Post Reply
 Mkiraf: Command not found
   
bxm6574
 07/11/2016 08:24PM (Read 7668 times)  
+----
Newbie

Status: offline


Registered: 07/11/2016
Posts: 2
I have the run the installation process, according to http://vivaldi.ll.iac.es/sieinvens/siepedia/pmwiki.php?n=HOWTOs.IrafMacOSX. Then, while in the directory (I have also tried it outside) I type mkiraf, and I get command not found error. From what I could find, I may have to edit path, or type something into ./bash_profile or ./bashrc, and such. I can't find what I would need to type in or which file to actually do it to. I have never really used a mac, so just telling me exactly what to type would be very helpful.

Thank you.

 
Profile Email
 Quote
fitz
 07/12/2016 04:09AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040

The objective here is to modify your 'path' (if you use C-shell) or 'PATH' (if you use Bash) environment variable to include the directory where you just installed the IRAF commands. You can do this with the commands:

set path = (/usr/local/bin $path) # for C-shell

or

export PATH=/usr/local/bin:$PATH # for Bash

to prepend the /usr/local/bin directory (assuming that's your 'local iraf bin directory') to the existing PATH. You would add these to your .cshrc or .login file for C-shell, or to your .profile or .bashrc file for Bash shells. The change may not be picked up right away so you may need to source these files (e.g. "source ~/.cshrc") to pick up the new definition.

The command "which mkiraf" will tell you whether the command is now found. If all else fails, you can just use

% /usr/local/bin/mkiraf

to specify the full path for the command.

 
Profile Email
 Quote
bxm6574
 07/12/2016 02:15PM  
+----
Newbie

Status: offline


Registered: 07/11/2016
Posts: 2
Thank you so much!

For those with the same problem I had:

I ended up editing the ./profile (I use bash), with the command:
nano ~./profile

Then I added the line "export PATH=/usr/local/bin:$PATH" and saved.

I was then able to use the mkiraf command and then cl, as specified in the iraf documentation.

 
Profile Email
 Quote
   
Content generated in: 0.13 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content 
dog allergies remedies cialis 20 mg chilblain remedies


Privacy Policy
Terms of Use

User Functions

Login