Welcome to iraf.net Friday, March 29 2024 @ 04:36 AM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 IRAF 2.16.1: "make latest" problem
   
rjvo
 11/15/2013 11:10AM (Read 2957 times)  
+++++
Active Member

Status: offline


Registered: 04/21/2007
Posts: 134
When I try
PHP Formatted Code
make latest

I get lot of errors:
PHP Formatted Code
Updating IRAF v2.16 to latest release.

Fri Nov 15 12:04:32 CET 2013

(util/self_update)
Updating utility scripts ....Done
(util/iraf_update -all 2>&1 | egrep -v "unexpected end of file")
/opt/iraf//unix/hlib/setup.sh: line 10: /iraf/iraf//unix/hlib/irafarch.sh: No such file or directory
/opt/iraf//unix/hlib/setup.sh: line 12: /iraf/iraf//unix/hlib/irafuser.sh: No such file or directory
util/iraf_update: line 79: /iraf/iraf//unix/hlib/irafuser.sh: No such file or directory
util/iraf_update: line 83: /iraf/iraf//util/pkgrepo: No such file or directory
util/iraf_update: line 87: /iraf/iraf//unix/hlib/irafarch.sh: No such file or directory
Updating IRAF system  ....
util/iraf_latest: line 24: /iraf/iraf//unix/hlib/setup.sh: No such file or directory
$iraf is /iraf/iraf/
util/iraf_latest: line 36: /iraf/iraf//util/pkgrepo: No such file or directory
util/iraf_latest: line 40: /iraf/iraf//unix/hlib/irafarch.sh: No such file or directory
Updating binaries:   linux
util/iraf_latest: line 75: /iraf/iraf//util/pkgrepo: No such file or directory
Downloading: patch-src.tar.gzutil/iraf_latest: line 78: /iraf/iraf//util/fget: No such file or directory

Error: file /patch-src.tar.gz not found, quitting

Fri Nov 15 12:04:34 CET 2013
 

I think something does not work well.

 
Profile Email
 Quote
fitz
 11/15/2013 03:54PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040

The update script doesn't appear to be re-editing the default iraf path with the local iraf path once it updates the utility scripts, at least in the case of the setup scripts. Try explicityly setting a $iraf before the 'make latest' to avoid using the default iraf path, e.g.

setenv iraf /opt/iraf/ (for C-shell)
export iraf=/opt/iraf/

Note the trailing '/' is required.

 
Profile Email
 Quote
rjvo
 11/15/2013 04:23PM  
+++++
Active Member

Status: offline


Registered: 04/21/2007
Posts: 134
This does not work. The script is not able to recognize the actual iraf path.

 
Profile Email
 Quote
fitz
 11/15/2013 04:43PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040

I'm working on a fix. Unfortunately I'm also travelling at the moment. Are you trying to update a v2.16 to v2.16.1 or get the latest v2.16.1? Manually you should be able to do this as

% cd $iraf
% make self_update
% ./install

but I'll admit I haven't tried it.

 
Profile Email
 Quote
rjvo
 11/15/2013 05:42PM  
+++++
Active Member

Status: offline


Registered: 04/21/2007
Posts: 134
No progress.


 
Profile Email
 Quote
fitz
 11/15/2013 06:05PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
Since your first 'make latest' overwrote the utility scripts, the setup.sh probably now contains the /iraf/iraf path. If you run the install script again it should change the path back.

I've deployed a fixed script, however there still seems to be some funny interaction in how the Bash shell handles the script overwriting itself. I'd also suggest you edit your .bashrc* and .profile files to remove the iraf setup at the end before doing any of this. That might allow the shell to not reset the $iraf during the update.

 
Profile Email
 Quote
rjvo
 11/15/2013 08:32PM  
+++++
Active Member

Status: offline


Registered: 04/21/2007
Posts: 134
No, the $iraf is correct. The "make latest" did never happen (look at my 1st post). The problem is the "make latest" does not work at all.

 
Profile Email
 Quote
rjvo
 11/16/2013 05:42PM  
+++++
Active Member

Status: offline


Registered: 04/21/2007
Posts: 134
I downloaded today the binaries and installed successfully. Then (as a check) I did "make latest" and the system started to download the binaries and did the upgrade. Congratulations. Anyway, I tried to install some externals and (after "cd extern") the "./configure" brings the errors:
PHP Formatted Code
/opt/iraf/extern$ ./configure
Initializing repository data ....
/opt/iraf//unix/hlib/setup.sh: line 10: /iraf/iraf//unix/hlib/irafarch.sh: No such file or directory
/opt/iraf//unix/hlib/setup.sh: line 12: /iraf/iraf//unix/hlib/irafuser.sh: No such file or directory
/opt/iraf/extern/../unix/hlib/irafarch.sh: line 45: /iraf/iraf//unix/hlib/util.sh: No such file or directory
/opt/iraf/extern/../unix/hlib/irafarch.sh: line 236: ECHO: command not found
/opt/iraf/extern/../util/pkgget: line 29: /iraf/iraf//unix/hlib/setup.sh: No such file or directory
/opt/iraf/extern/../util/pkgget: line 34: /iraf/iraf//unix/hlib/util.sh: No such file or directory
/opt/iraf/extern/../util/pkgget: line 29: /iraf/iraf//unix/hlib/setup.sh: No such file or directory
/opt/iraf/extern/../util/pkgget: line 34: /iraf/iraf//unix/hlib/util.sh: No such file or directory
Creating system makefile ....
Setup Complete.
 

 
Profile Email
 Quote
ncaon
 03/17/2014 04:27PM  
++---
Junior

Status: offline


Registered: 10/30/2005
Posts: 29
I'm trying to install IRAF 2.16.1 and am experiencing the same problem reported by the OP. This happens to me when installing the external packages (I did not run the general install script though, as we have a multi-version installation here and we create symlinks, change paths etc. by hand to be safe).

I think the problem originates from the file setup.sh, in particular the lines shown below.
PHP Formatted Code

# Allow a previously defined $iraf to be used.
if [ -n $iraf ]; then
    export iraf=/iraf/iraf/
fi
 


Since "-n" means true if the length of the string is non-zero, the test will overwrite any previous definition of iraf. Shouldn't the test be negated, that is:

PHP Formatted Code

# Allow a previously defined $iraf to be used.
if [ ! -n $iraf ]; then
    export iraf=/iraf/iraf/
fi
 


I'll try to do this small change in the script and check whether installing external packages works out.

Thanks

Nicola


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