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 

Trouble starting cl
Goto page 1, 2  Next
 
Post new topic   Reply to topic    iraf.net Forum Index -> General IRAF
View previous topic :: View next topic  
Author Message
conorfarrell



Joined: 25 Jan 2007
Posts: 3

PostPosted: Tue Aug 05, 2008 6:54 pm    Post subject: Trouble starting cl Reply with quote

I have recently installed Cygwin and IRAF without any hitches, other than the following. When I try to start cl I get the following error:

$ cl
ERROR: task `the' not found
called as: `cl ()'
Error while reading login.cl file - may need to rebuild with mkiraf
Fatal startup error. CL dies.

Any ideas?
Back to top
View user's profile Send private message
fitz
Site Admin


Joined: 30 Sep 2005
Posts: 3257
Location: Tucson

PostPosted: Thu Aug 14, 2008 12:09 am    Post subject: Reply with quote

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.

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



Joined: 25 Jan 2007
Posts: 3

PostPosted: Thu Aug 14, 2008 4:20 pm    Post subject: Reply with quote

Mike,

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.

The installation guide I used to install IRAF is at http://www.iac.es/sieinvens/siepedia/pmwiki.php?n=HOWTOs.IrafCygwin

Thank you for your help and patience,
Conor
Back to top
View user's profile Send private message
fitz
Site Admin


Joined: 30 Sep 2005
Posts: 3257
Location: Tucson

PostPosted: Fri Aug 15, 2008 2:11 pm    Post subject: Reply with quote

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.

-Mike
Back to top
View user's profile Send private message
Gaba_p
Active IRAF User


Joined: 10 Oct 2008
Posts: 99
Location: Argentina

PostPosted: Sat Nov 08, 2008 10:56 pm    Post subject: Reply with quote

Hello,
I have exactly the same (last) problem:

$ 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.
Back to top
View user's profile Send private message Visit poster's website
fitz
Site Admin


Joined: 30 Sep 2005
Posts: 3257
Location: Tucson

PostPosted: Wed Nov 12, 2008 7:39 am    Post subject: Reply with quote

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).

-Mike
Back to top
View user's profile Send private message
Gaba_p
Active IRAF User


Joined: 10 Oct 2008
Posts: 99
Location: Argentina

PostPosted: Wed Nov 12, 2008 11:23 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
damasso



Joined: 13 Dec 2008
Posts: 2

PostPosted: Sat Dec 13, 2008 2:10 pm    Post subject: Reply with quote

Good morning!

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?

Many thanks,
Mario
Back to top
View user's profile Send private message
Gaba_p
Active IRAF User


Joined: 10 Oct 2008
Posts: 99
Location: Argentina

PostPosted: Sat Dec 13, 2008 3:30 pm    Post subject: Reply with quote

Hola Mario (with that name I'm guessing you speak spanish; I'm from Argentina Very Happy),

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)

Good luck!

Saludos,
Gabriel
Back to top
View user's profile Send private message Visit poster's website
fitz
Site Admin


Joined: 30 Sep 2005
Posts: 3257
Location: Tucson

PostPosted: Mon Dec 15, 2008 5:37 pm    Post subject: Reply with quote

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

Code:
% csh -x /usr/local/bin/cl


Post the results if this produces the same error.

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



Joined: 13 Dec 2008
Posts: 2

PostPosted: Tue Dec 16, 2008 5:40 pm    Post subject: Reply with quote

Dear Mike,

thank you very much for your reply.

I followed your instructions.

1) C-shell is installed on my system

2) I executed the command
Code:
% csh -x /usr/local/bin/cl


This produces the same error:

Code:
**:
     ^
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.

Thanks a lot

Mario
Back to top
View user's profile Send private message
fitz
Site Admin


Joined: 30 Sep 2005
Posts: 3257
Location: Tucson

PostPosted: Tue Dec 16, 2008 5:45 pm    Post subject: Reply with quote

Feel free to send me the jpg, if there is a lot of output from the command you can use 'tee' to save all the output, e.g.

Code:
csh -x /usr/local/bin/cl |& tee spool


Then just send/post the 'spool' file that is created.

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



Joined: 27 Dec 2009
Posts: 8

PostPosted: Sun Dec 27, 2009 9:37 pm    Post subject: Cygwin problem Reply with quote

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.

Helpme please.
Isaías Rojas
Back to top
View user's profile Send private message
irojas



Joined: 27 Dec 2009
Posts: 8

PostPosted: Sun Dec 27, 2009 10:14 pm    Post subject: Re: Cygwin problem Reply with quote

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.
Back to top
View user's profile Send private message
fitz
Site Admin


Joined: 30 Sep 2005
Posts: 3257
Location: Tucson

PostPosted: Mon Dec 28, 2009 6:45 am    Post subject: Reply with quote

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.

-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 -> General IRAF All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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 0.18 seconds