Welcome to iraf.net Thursday, April 18 2024 @ 04:24 PM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 IRAF on Fedora 7
   
Anonymous: Guest
 06/04/2007 01:54PM (Read 12541 times)  



Dear Sir/Madam,Recently, I installed the newly released Fedora 7 and the latest version
of PC IRAF. Today I updated the Fedora on-line and found I was not able
to run IRAF. Each time I typed 'cl', I got 'Illegal variable name.' So
what's the problem? Thank you very much!Best regards,
Jianghua Wu

 
 Quote
fitz
 06/04/2007 01:54PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
Jianghua,Try starting the session as "csh -x /usr/local/bin/cl" to trace the script as it runs, it should point to the variable name causing the problem. Please post this result if the problem isn't obvious.Cheers,
-Mike

 
Profile Email
 Quote
wu_qso
 06/04/2007 01:54PM  
++---
Junior

Status: offline


Registered: 06/04/2007
Posts: 29
Thank you very much, Fitz! I tried "csh -x /usr/local/bin/cl" in an xgterm terminal, the system echoed the same "Illegal variable name." and no IRAF session was started. In fact, I was able to run IRAF just after a new installation of Fedora 7. But, after I upgraded the OS on-line, the problem came out. So the problem seems relate to the update of the Fedora system. Now each time I log in as user 'iraf', the same 'Illegal variable name.' come out as the first line in each terminal.Jianghua Wu

 
Profile Email
 Quote
fitz
 06/04/2007 01:54PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
Jianghua,Please post the output of the "csh -x" command so I can see where the script is failing ....Cheers,
-Mike

 
Profile Email
 Quote
wu_qso
 06/04/2007 01:54PM  
++---
Junior

Status: offline


Registered: 06/04/2007
Posts: 29
Mike, I just tried. The output is the same, 'Illegal variable name.' And then go back to the system prompt.BTW, I'm using IRAF 2.12.Best,
Jianghua

 
Profile Email
 Quote
fitz
 06/04/2007 01:54PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
If you get no output at all from the command other than the error, try temporarily moving your .cshrc file in case the error is in that file. You might also try "csh -f -x /usr/local/bin/cl" where the '-f' will explicitly suppress the reading of the .cshrc file. An 'env' command will dump your current environment and may also provide a clue.-Mike

 
Profile Email
 Quote
wu_qso
 06/04/2007 01:54PM  
++---
Junior

Status: offline


Registered: 06/04/2007
Posts: 29
Mike, This is the output of the command "csh -f -x /usr/local/bin/cl":csh -f -x /usr/local/bin/cl
set d_iraf = /iraf/iraf/
if ( 0 ) then
if ( 0 == 0 ) then
setenv iraf /iraf/iraf/
endif
if ( 0 ) then
if ( ! 0 ) then
if ( -f /etc/redhat-release ) then
if ( `uname -m` == ppc ) then
uname -m
setenv mach redhat
endif
else if ( -f /etc/SuSE-release ) then
if ( redhat == darwin ) then
if ( -e /iraf/iraf//bin.redhat/cl.e ) then
NOAO PC-IRAF Revision 2.12.2a-EXPORT Wed Jul 14 20:45:34 MST 2004
This is the EXPORT version of PC-IRAF V2.12 supporting most PC systems. Welcome to IRAF. To list the available commands, type ? or ??. To get
detailed information about a command, type `help command'. To run a
command or load a package, type its name. Type `bye' to exit a
package, or `logout' to get out of the CL. Type `news' to find out
what is new in the version of the system you are using. The following
commands or packages are currently defined: dataio. images. noao. proto. utilities.
dbms. language. obsolete. softools.
guiapps. lists. plot. system.
cl>Then I can run IRAF commands. So what's the problem?Cheers,
Jianghua

 
Profile Email
 Quote
fitz
 06/04/2007 01:54PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
It means there's a problem in your .cshrc file (or some file that it sources). If you post the file maybe I can spot something obvious, otherwise you'll need to sort through it. Start by commenting out any line using the 'source' command to read other files, then uncomment them one-by-one until you find the problem. -Mike

 
Profile Email
 Quote
wu_qso
 06/04/2007 01:54PM  
++---
Junior

Status: offline


Registered: 06/04/2007
Posts: 29
Here is the .cshrc file of user 'iraf':# .cshrc - csh resource script, read at beginning
# of execution by each shellumask 022
setenv iraf /iraf/iraf/
#setenv iraf /iraf/iraf-g77/iraf/
#source $iraf/unix/hlib/irafuser.csh
#alias xc $iraf/unix/bin.redhat/xc.eswitch (`uname`)
case FreeBSD:
set path = (. $HOME/bin /sbin /bin /usr/sbin /usr/bin /usr/games \
/usr/local/bin /usr/local/sbin \
/usr/X11R6/bin)
breaksw
case Linux:
set path = (. $HOME/bin /sbin /bin /usr/sbin /usr/bin /usr/games \
/usr/local/bin /usr/local/sbin \
/usr/X11R6/bin)
breaksw
case Darwin:
set path = (. $HOME/bin /sbin /bin /usr/sbin /usr/bin /usr/games \
/usr/local/bin /usr/local/sbin \
/usr/X11R6/bin)
breaksw
case SunOS:
set path = (. $HOME/bin /usr/local/bin \
/usr/openwin/bin /usr/bin /bin /sbin /usr/sbin \
/usr/ccs/bin /usr/dt/bin /usr/ucb \
/opt/SUNWjws/JWS/intel-S2/bin \
/opt/Summertime_98.i386/bin \
/opt/Summertime_98.i386/sbin \
/opt/Summertime_98.i386/TeX/bin \
/opt/Summertime_98.i386/Perl/bin \
/opt/Summertime_98.i386/Python/bin \
/opt/Summertime_97.i386/netpbm/bin)
breaksw
default:
set path = (. $HOME/bin /sbin /bin /usr/sbin /usr/bin /usr/games \
/usr/local/bin /usr/local/sbin \
/usr/X11R6/bin)
breaksw
endsw
if ($?prompt) then
# An interactive shell -- set some stuff up
set filec
set history = 100
set savehist = 100
set mail = (/var/mail/$USER) if (`uname` == SunOS) then
if ($?PS1) then
set prompt = "root@`hostname`% "
else
set prompt = "$user@`hostname`% "
endif
else
if ($HOME == "/root") then
set prompt = "root@`hostname`% "
else
set prompt = "$user@`hostname`% "
endif
endif
# make mail(1) happy:
setenv crt 24
endifalias new 'find . \! -type d -mtime -7 -print'
alias newt 'find . \! -type d -mtime -7 -print | grep -v '\''\.[aoe]$'\'
alias newt2 'find . \! -type d -mtime -14 -print | grep -v '\''\.[aoe]$'\'
alias newt3 'find . \! -type d -mtime -21 -print | grep -v '\''\.[aoe]$'\'
alias newt4 'find . \! -type d -mtime -31 -print | grep -v '\''\.[aoe]$'\'
So where is the problem?
BTW, as a normal user, I use bash rather than csh.I did not expect you stay so late in the night. I really in debt to you!Best,
Jianghua

 
Profile Email
 Quote
fitz
 06/04/2007 01:54PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
Try the same trick on the .cshrc file, i.e.[code:1:bf4ef79aea]csh -f -x .cshrc[/code:1:bf4ef79aea]I suspect it'll fall over on one of the lines using e.g. the '$?' syntax which may have changed in FC7.Note you don't need to be the iraf user to start the CL, you can do it under your account and the bash just as well. BTW, it's only 19:45 here, not even close to being "late" 8-)Cheers,
-Mike

 
Profile Email
 Quote
fitz
 06/04/2007 01:54PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
Actually, I bet it's the lines:[code:1:95ec50eff5]
alias newt 'find . \! -type d -mtime -7 -print | grep -v '\''\.[aoe]$'\'
alias newt2 'find . \! -type d -mtime -14 -print | grep -v '\''\.[aoe]$'\'
alias newt3 'find . \! -type d -mtime -21 -print | grep -v '\''\.[aoe]$'\'
alias newt4 'find . \! -type d -mtime -31 -print | grep -v '\''\.[aoe]$'\'
[/code:1:95ec50eff5]Try deleting these.....-Mike

 
Profile Email
 Quote
wu_qso
 06/04/2007 01:54PM  
++---
Junior

Status: offline


Registered: 06/04/2007
Posts: 29
I deleted the last 5 lines in the .cshrc and ran 'cl' or 'mkiraf', the same error occurred. I then ran 'csh -f -x .cshrc' as you suggested and had the output as:umask 022
setenv iraf /iraf/iraf/
switch ( `uname` )
uname
set path = ( . /iraf/iraf/local/bin /sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/bin /usr/local/sbin /usr/X11R6/bin )
breaksw
if ( 0 ) then
So where is the error?
Sorry to mis-identify the time of the post as your local time. Indeed, I generally use IRAF within bash as a normal user. Cheers,
Jianghua

 
Profile Email
 Quote
fitz
 06/04/2007 01:54PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
That all looks perfectly normal to me as well. The next file to check is the /etc/csh.cshrc file which is the system default, i.e.[code:1:955d6f18b2]csh -f -c /etc/csh.cshrc[/code:1:955d6f18b2]Also worth noting is whether renaming the ~iraf/.cshrc file so it just doesn't exist has any effect, i.e. if it then works it points to an error in that file, if is still fails it's something else.-MikeP.S. Posting times are UT

 
Profile Email
 Quote
wu_qso
 06/04/2007 01:54PM  
++---
Junior

Status: offline


Registered: 06/04/2007
Posts: 29
Even root does not have the right to execute 'csh -f -c /etc/csh.cshrc'. So I do not know what's the output of this command.I deleted the .cshrc in the iraf home directory but the problem remained.Jianghua

 
Profile Email
 Quote
fitz
 06/04/2007 01:54PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
Sorry, it's "csh -f -x" not "csh -f -c" .....From your bash shell, do you see the same error just typing "csh" to start a C-shell? If so, this is looking more like a problem in the system /etc/csh.cshrc file-Mike

 
Profile Email
 Quote
wu_qso
 06/04/2007 01:54PM  
++---
Junior

Status: offline


Registered: 06/04/2007
Posts: 29
These are the the output of the command you suggested:
umask 022
if ( 0 ) then
if ( 1 ) then
bindkey ^[[3~ delete-char
endif
setenv MAIL /var/spool/mail/jhwu
limit coredumpsize 0
if ( -d /etc/profile.d ) then
set nonomatch
foreach i ( /etc/profile.d/*.csh )
if ( -r /etc/profile.d/ccache.csh ) then
source /etc/profile.d/ccache.csh
if ( /opt/jre1.6.0_01/bin /usr/kerberos/bin /opt/jre1.6.0_01/bin /usr/lib/ccache /usr/local/bin /usr/bin /bin /usr/X11R6/bin /home/jhwu/bin /home/jhwu/blazar/bin !~ */usr/lib/ccache* ) then
endif
end
if ( -r /etc/profile.d/colorls.csh ) then
source /etc/profile.d/colorls.csh
alias ll ls -l
alias l. ls -d .*
set COLORS=/etc/DIR_COLORS
if ( 1 ) then
if ( -e /etc/DIR_COLORS.xterm ) set COLORS=/etc/DIR_COLORS.xterm
set COLORS=/etc/DIR_COLORS.xterm
endif
if ( -f ~/.dircolors ) set COLORS=~/.dircolors
if ( 1 ) then
if ( -f ~/.dircolors.xterm ) set COLORS=~/.dircolors.xterm
endif
if ( -f ~/.dir_colors ) set COLORS=~/.dir_colors
if ( 1 ) then
if ( -f ~/.dir_colors.xterm ) set COLORS=~/.dir_colors.xterm
endif
if ( ! -e /etc/DIR_COLORS.xterm ) exit
eval `dircolors -c $COLORS`
dircolors -c /etc/DIR_COLORS.xterm
setenv LS_COLORS no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01Surprised!r=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
if ( no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01Surprised!r=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35: == ) then
set color_none=`sed -n '/^COLOR.*none/Ip' < $COLORS`
sed -n /^COLOR.*none/Ip
if ( == ) then
alias ll ls -l --color=tty
alias l. ls -d .* --color=tty
alias ls ls --color=tty
endif
unset color_none
endif
end
if ( -r /etc/profile.d/cvs.csh ) then
source /etc/profile.d/cvs.csh
endif
end
if ( -r /etc/profile.d/fglrx.csh ) then
source /etc/profile.d/fglrx.csh
Although I do not know the details, I guess the problem relates to the ati card driver kmod-fglrx from rpm.livna.org. The driver is in fact still being tested. I need it to configure the display on my wide-screen monitor. So I downloaded and installed it. Then I uninstall the driver and everything goes right! Thank you very much, mike!Jianghua

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