Sorry for the delayed reply. The error message "task 'the' not found" makes me think that some sort of comment string is being interpreted as a command (e.g. a line beginning with the word 'the' in your login.cl or loginuser.cl file). You should check your login.cl file or perhaps do a new MKIRAF to recreate the file. If you use a loginuser.cl file check it to make sure all comment lines begin with a '#' character. There are additional files read during the startup process but these wouldn't normally have changed as part of the installation, with the exception perhaps of the hlib$extern.pkg file you might have edited to install a new package. If you still have problems, post back.
It was in fact extern.pkg that was the problem (a comment spilled over onto a new line, possibly due to wrapping). But it seems I have another now:
Code:
$ cl
**:
^
ERROR: syntax error
called as: `cl ()'
called as: `cl ()'
Error while reading login.cl file - may need to rebuild with mkiraf
Fatal startup error. CL dies.
I took another look at both login.cl and extern.pkg but I didn't notice anything straight off that might be problematic.
Hopefully you've found the problem by now, but I suspect it is something similar. The only place a ':' is used is in the 'imextn' setting of the login.cl file (which is normally commented out). A new MKIRAF command may clear things up.
$ cl
**:
^
ERROR: syntax error
called as: `cl ()'
called as: `cl ()'
Error while reading login.cl file - may need to rebuild with mkiraf
Fatal startup error. CL dies.
I have followed the same installation file. The only strange thing I can remember during installation was a lot of " tput: command not found" during installation. I tried rebuilding through mkiraf but nothing, still the same error.
Any help will be very much appreciated.
My first question is whether you have the 'tcsh' installed as part of your Cygwin setup? If not, the syntax error might be because you're using the default Bash shell to run the C-shell iraf scripts. The 'tput' commands in the install script are used to highlight text, complaints about them being missing might mean a problem with the tcsh.
Otherwise, you can add the command "d_trace" at the top your login.cl file to trace startup execution from that point: If the error occurs before you see any debug output there is probably an error in the extern.pkg file, otherwise it may be in the login.cl file (either because of an edit you made or something done during the install when the template was made).
Hi Mike,
finally I un-installed Cygwin and re-installed IRAF in FEDORA 9 (I've found a great script for installing IRAF automatically here: http://www.mail-archive.com/fedora-astronomy-list@redhat.com/msg00096.html).
Anyway I did had tcsh installed and in no way had I messed with the login.cl file. I tried the mkiraf command a few times but didn't help.
I'm sorry I didn't wait for your response but I needed to work! I'm sure this thread will help someone though.
Cheers!
Gabriel
I am a beginner user of IRAF, and I am using it on Gygwin on the base of the indications reported on the on-line guide mentioned both by Conor and Gabriel users.
I am very close to use IRAF finally, but...I have exactly the same problem reported by Gabriel while I am launching ECL: the same "sintax error" message related to the login.cl file.
I even tried to rebuild the login file several times through "mkiraf", but no way.
Gabriel solved the problem installing IRAF elsewhere, so my problem on Cygwin seems not to have a solution yet: could anyone help me, suggesting what to do? I even didn't understand the possible solution provided to Conor by Mike: what to do exactly?
Hola Mario (with that name I'm guessing you speak spanish; I'm from Argentina ),
I can't help you with the Cygwin problem, because I finally never used it, but if you want to try something else I refer you to this post on a blog I created to help you run IRAF inside FEDORA 9 installed inside VirtualBox, so you can interact with Windows (which it's what you use if you are trying to install Cygwin) I use it and it works like a charm: http://gabriel-ip.blogspot.com/ (it's in english and in spanish)
I'm not sure what else I can add to earlier comments in the thread. Use the command 'which csh' to see whether or not you have a C-shell installed on your system, a 'command not found' means you need to go back to the Cygwin setup and install 'tcsh' and the error is caused by executing the Bash shell on the (C-shell) startup script.
If you do have a C-shell installed, you can trace exactly where the error comes from using the command
**:
^
ERROR: syntax error
called as: `cl ()'
called as: `cl ()'
Error while reading login.cl file - may need to rebuild with mkiraf
Fatal startup error. CL dies.
You must excuse me, but I don't know how to show you here what i see on my screen after the execution of that command, because I don't know how to redirect to a txt file all the content I read in the shell (and not only the output result of the command, i.e. in this case the 'syntax error' written above) . I made a 'print screen' and saved it as a jpg. May I send you that? Or, please, give me any help.
Posted: Sun Dec 27, 2009 9:37 pm Post subject: Cygwin problem
Hello
I have the same problem, I installed iraf in cygwin and it worked, but for some unknown reason, now it do not work, try reinstalling did not work.
My starx is functional, as well as the xgterm. I tried mkiraf do not solve the problem, and tried the /iraf/iraf/bin.cygwin/x_system.e and
>
was displayed.
He tells me the following error:
$ cl
**:
^
ERROR: syntax error
called as: `cl`
called as: `cl`
Error while reading login.cl file - may be to rebuild whit mkiraf
Fatal startup error. CL dies.
Posted: Sun Dec 27, 2009 10:14 pm Post subject: Re: Cygwin problem
I executed the command
Code:
% csh -x /usr/local/bin/cl
This produces the following:
set cl_binary = ecl.e
if ( 'echo $0 |egrep vo' != ) then
echo /usr/local/bin/cl
if ( 'echo $0 |egrep ecl' != ) then
echo /usr/local/bin/cl
egrep vo
if ( 0 > 0) then
set d_iraf = /iraf/iraf/
if ( 0 ) then
if ( 0 == 0 ) then
setenv iraf /iraf/iraf/
endif
if ( 0 > 0) then
if ( 0 ) then
if ( ! 0 ) then
set os_mash = 'uname -s | tr '[a-z]' | cut -c1-6'
uname -s
tr [A-Z] [a-z]
cut -c1-6
if ( - f /etc/redhad-release ) then
set mash = 'uname -s | tr ' [A-Z]' '[a-z]'
uname -s
tr [A-Z] [a-z]
endif
if ( cygwin_nt-5.1 == darwin ) then
if ( cygwin == cygwin ) then
setenv mash cygwin
endif
if ( -e /iraf/iraf//bin.cygwin_nt-5.1/ecl.e ) then
if ( -e /iraf/iraf//bin.freebsd/ecl.e ) then
if ( -e /iraf/iraf//bin.macosx/ecl.e ) then
if ( -e /iraf/iraf//bin.macintel/ecl.e ) then
if ( -e /iraf/iraf//bin.cygwin/ecl.e ) then
set MACH = cygwin
else if ( -e /iraf/iraf//bin.linux/ecl.e ) then
endif
if ( 0 && ! ( 0 ) ) then
if ( 0 ) then
if ( cygwin == freebsd ) then
if ( cygwin == linux ) then
if ( cygwin == redhad ) then
if ( cygwin == linuxppc ) then
if ( cygwin == macosx ) then
if ( cygwin == macintel ) then
if ( cygwin == cygwin ) then
setenv IRAFARCH cygwin
else if ( cygwin == sunos ) then
if ( cygwin == redhad || cygwin == linux || cygwin == linuxppc ) then
setenv arch.cygwin
setenv IRAFBIN /iraf/iraf//bin.cygwin/
set file = /iraf/iraf//bin.cygwin/ecl.e
exc /iraf/iraf//bin.cygwin/ecl.e
/iraf/iraf//bin.cygwin/ecl.e
$
**:
^
ERROR: syntax error
called as: `cl ()'
called as: `cl ()'
Error while reading login.cl file - may need to rebuild with mkiraf
Fatal startup error. CL dies.
The syntax error appears to happen when the hlib$extern.pkg file uses the 'dos' formatted newlines, i.e. the CR-NL and not the unix NL. You can convert this using the command 'dos2unix' if it is available, or more directly with
Code:
> cd $iraf/unix/hlib
> tr -d '\15\32' < extern.pkg > e ; mv e extern.pkg
If you haven't installed any external packages then simply deleting all of the lines in the extern.pkg file should let you log into the CL.
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