Welcome to iraf.net Thursday, March 28 2024 @ 08:47 PM GMT


 Forum Index > Help Desk > Systems New Topic Post Reply
 2.16.1 installing and running
   
pmforlife
 02/27/2015 03:37PM (Read 5634 times)  
++---
Junior

Status: offline


Registered: 02/27/2015
Posts: 17
Hi,
I installed both IRAF version 2.16.1 and x11iraf with the help of this tutorial:
https://www.youtube.com/watch?v=BtTr_F08y7o

I followed this:

mkdir /home/Applications/iraf
mkdir /home/Applications/iraf/iraf
mv iraf.lnux.x86_64.tar.gz /home/Applications/iraf/iraf
cd /home/user/iraf/iraf
tar xzvf iraf.lnux.x86_64.tar.gz
./install

((install x11iraf))
sudo -s
mkdir /home/Applications/iraf/x11iraf
mv x11iraf-v2.0BETA-bin.linux.tar.gz /home/Applications/iraf/x11iraf
sudo apt-get install tcsh
./install

sudo apt-get install libXmu6:i386
sudo apt-get install libcurses5:i386
xgterm

until now, I do not have any problem but when I type: iraf in the opened xgterm terminal it says:
iraf : command not found

what is the problem?!

 
Profile Email
 Quote
fitz
 02/27/2015 06:12PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
IRAF v2.16.1 defines an 'iraf' alias that starts an XGterm window with IRAF already running (i.e. "xgterm -e cl"), but normally the startup command is 'cl'. Note the install script will add some definitions to your environment file to include the iraf path and aliases but need to be sourced first, e.g.

% source ~/.cshrc or % source ~/.bashrc

A "which cl" or "which iraf" command should then return the path to the command and the alias respectively.

 
Profile Email
 Quote
pmforlife
 02/27/2015 11:09PM  
++---
Junior

Status: offline


Registered: 02/27/2015
Posts: 17
Thanks for your answer
during installation when I was in the path: Applications/iraf/iraf/unix/hlib
I typed this:
source irafuser.csh

and now in xgterm terminal when I type:
cl
I see this massage:
cl-launch.sh 3.22.1 -- shell wrapper generator for Common Lisp software
For help, invoke script with help argument:
/usr/bin/cl -h

and when I type:
which cl
it says:
/usr/bin/cl

and for typing:
which iraf
nothing happen

what should I do?

(excuse me for my elementary questions, cause I am newbie to linux)

 
Profile Email
 Quote
fitz
 02/27/2015 11:19PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040

The hlib$irafuser.csh does a general setup, but nothing specific to your environment. Make sure that your $HOME/.cshrc (or $HOME/.bashrc if you use bash) contains something like the following near the end of the file:

PHP Formatted Code

# Add iraf setup commands
if ( -e /home/fitz/.iraf/setup.csh ) then
    source /home/fitz/.iraf/setup.csh
endif
 


This sources the 'setup.csh' file in your $HOME/.iraf directory and should set the path to pick up the IRAF 'cl' command instead of Lisp.

 
Profile Email
 Quote
pmforlife
 02/27/2015 11:37PM  
++---
Junior

Status: offline


Registered: 02/27/2015
Posts: 17
In home, the file: .cshrc contains only this lines:
# Add iraf setup commands
if ( -e /home/ashkan/.iraf/setup.csh ) then
source /home/ashkan/.iraf/setup.csh
endif

and again in home, the file: .bashrc contains in it's last lines:
# Add iraf setup commands
if [ -e /home/ashkan/.iraf/setup.sh ]; then
source /home/ashkan/.iraf/setup.sh
fi

both have it!
but in the location:
home/ashkan/.iraf I have only these folders and files:
bin *** cash *** imdir *** uparm
arch *** iraf.h

there is not a setup.csh or setup.sh file!
is that the case?!!

 
Profile Email
 Quote
fitz
 02/27/2015 11:56PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
Try re-running the $iraf/install script, both files should be created in the .iraf directory. If not, there are there any error messages?

 
Profile Email
 Quote
pmforlife
 02/28/2015 12:23AM  
++---
Junior

Status: offline


Registered: 02/27/2015
Posts: 17
I did it and in the final step, It said:
Initializing Login Files
------------------------
Creating global login.cl and uparm directory .... [ FAIL ]
Oops!

 
Profile Email
 Quote
fitz
 02/28/2015 12:26AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040

The command that failed is:

$iraf/unix/hlib/mkiraf.sh --default --init --term=xgterm

Try typing this in the commandline the see what error it produces.

 
Profile Email
 Quote
pmforlife
 02/28/2015 12:44AM  
++---
Junior

Status: offline


Registered: 02/27/2015
Posts: 17
in the terminal I typed:
mkiraf.sh --default --init --term=xgterm
and it said:
mkiraf.sh: command not found

(I have mkiraf.sh in that path)

 
Profile Email
 Quote
fitz
 02/28/2015 12:47AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
If you don't specify the full path as I did then you may need to invoke the command as "./mkiraf.sh", however the script won't let you execute it in the hlib directory itself. Try specifying the full path to the script from your home directory.

 
Profile Email
 Quote
pmforlife
 02/28/2015 01:01AM  
++---
Junior

Status: offline


Registered: 02/27/2015
Posts: 17
first I moved to the path:
/home/ashkan/Applications/iraf/iraf/unix/hlib
by typing:
$iraf/unix/hlib/mkiraf.sh --default --init --term=xgterm
it says:
bash: /unix/hlib/mkiraf.sh: No such file or directory

by typing:
./mkiraf.sh
It says:
Error: current directory is not an iraf user login directory

 
Profile Email
 Quote
pmforlife
 02/28/2015 01:04AM  
++---
Junior

Status: offline


Registered: 02/27/2015
Posts: 17
and also when I typed:
./mkiraf.sh --default --init --term=xgterm
It said:
Error: current directory is not an iraf user login directory

 
Profile Email
 Quote
fitz
 02/28/2015 01:04AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040

first I moved to the path:
/home/ashkan/Applications/iraf/iraf/unix/hlib


You cannot be in this directory to execute the command or you see the error message at the end of your message.


by typing:
$iraf/unix/hlib/mkiraf.sh --default --init --term=xgterm
it says:
bash: /unix/hlib/mkiraf.sh: No such file or directory


This means you don't have a $iraf environment variable defined, use the full path, i.e.

/home/ashkan/Applications/iraf/iraf/unix/hlib/mkiraf.sh --default --init --term=xgterm

 
Profile Email
 Quote
pmforlife
 02/28/2015 01:15AM  
++---
Junior

Status: offline


Registered: 02/27/2015
Posts: 17
when I am in home directory, by typing:
/home/ashkan/Applications/iraf/iraf/unix/hlib/mkiraf.sh --default --init --term=xgterm
It says:
cp: cannot stat ‘/iraf/iraf//unix/hlib/setup.*sh’: No such file or directory
/home/ashkan/Applications/iraf/iraf/unix/hlib/mkiraf.sh: line 182: /iraf/iraf//unix/hlib/login.cl: No such file or directory

 
Profile Email
 Quote
fitz
 02/28/2015 01:26AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
For some reason the iraf path wasn't modified by the install script and it is using the default /iraf/iraf path. Did you set a $iraf when you ran the install script? Does "echo $iraf" show any setting? Were there any other errors from the install script? Did it show the correct iraf path when you ran it?

 
Profile Email
 Quote
pmforlife
 02/28/2015 10:32AM  
++---
Junior

Status: offline


Registered: 02/27/2015
Posts: 17
I do not know what is the difference between these:
when I am in the path:
/home/ashkan/Applications/iraf/iraf
I have an "install" file.
I run it:
./install
and it asks me:
New iraf root directory (/home/ashkan/Applications/iraf/iraf):
(It is the correct path), I hit enter for this and left it default and so for next steps
everything is ok except last step:
Initializing Login Files
------------------------
Creating global login.cl and uparm directory .... [ FAIL ]


but when I move to this path:
/home/ashkan/Applications/iraf/iraf/unix/hlib
I have three install files:
install.csh *** install.old *** install.port
I run the first one:
./install.csh
and it asks:
New iraf root directory (/iraf/iraf):
the path is not correct and when I want to left it default and hit enter it says:
*** The definition of '/iraf/iraf' looks incorrect.
***
*** The iraf root directory is the place where the AS distribution
*** file was unpacked; it contains subdirectories such as 'dev',
*** 'local', 'noao', 'pkg', and the file IS.PORT.GEN.
***
***
*** Please verify your path and try again ...

 
Profile Email
 Quote
pmforlife
 03/01/2015 10:01PM  
++---
Junior

Status: offline


Registered: 02/27/2015
Posts: 17
any help?!! Frown

 
Profile Email
 Quote
fitz
 03/02/2015 03:33PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
The first install script you mention is the correct one to execute, but the problem remains that the paths are not being edited into the IRAF scripts properly for some reason. I'm assuming you own all of the files in /home/ashkan/Applications/iraf and didn't do a 'sudo' or anything to unpack them? Can you edit any of these files without seeing a 'read-only' file warning? A quick fix to make /iraf/iraf a valid path on your machine is to do

% sudo ln -s /home/ashkan/Applications/iraf /iraf

or else just create a /iraf directory (with 'sudo') and try unpacking the files again. Your original message contained various paths (e.g. /home/user/iraf/iraf and /home/Applications/iraf/iraf) but I assumed these were typos.

If you want to start over, all you should need to do to install is:

% mkdir /home/ashkan/iraf ; cd /home/ashkan/iraf # create an iraf directory
% tar zxf //iraf.lnux.x86_64.tar.gz # unpack it
% ./install # install it

The system already comes with an 'xgterm' binary and since you've installed the 32-bit libs should also be fine.

 
Profile Email
 Quote
pmforlife
 03/02/2015 08:56PM  
++---
Junior

Status: offline


Registered: 02/27/2015
Posts: 17
I did that and again unzipped and installed software.
It said:
[/b]Installation Completed With No Errors
Now, I have this:



Does it mean that it works correctly?!
(I hope it does! Geek )

and the warning message... is it ok?

 
Profile Email
 Quote
pmforlife
 03/03/2015 09:35AM  
++---
Junior

Status: offline


Registered: 02/27/2015
Posts: 17
I finally could install IRAF without errors and it woks nice!
(better than how I installed it in my previous post! )

Thanks a lot of your help...
wish you the best..

 
Profile Email
 Quote
   
Content generated in: 0.56 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