Welcome to iraf.net Tuesday, April 30 2024 @ 10:18 AM GMT


 Forum Index > Help Desk > Applications New Topic Post Reply
 help me installing stsdas
   
rocker_milan
 08/16/2009 02:26AM (Read 5350 times)  
++---
Junior

Status: offline


Registered: 08/15/2009
Posts: 15
hi everyone, i'm newbie for linux..
but, like or not i have to used linux for my course.
i'm using suse ver 10.2 and iraf ver 2.12, and unpacked the stsdas&tables ver 3.10 in home/iraf/iraf/local/tables and home/iraf/iraf/local/stsdasi have a problem with pre installing stsdas&tables..
i followed the installation guide until the part typing mkpkg, i received this message:[code:1:2cfb4b6cc4]mkpkg suse
Warning, hlib$mkpkg.inc line 5: macro `IRAFARCH' not found
hlib: Undefined variable.[/code:1:2cfb4b6cc4]and then, when i want to enter iraf, i type cl and get this message:[code:1:2cfb4b6cc4]ERROR: task `noao' not found
cl ()
cl ()
utilities ()
cl ()
cl ()
cl ()
tv ()
proto ()
cl ()
cl ()
dataio ()
cl ()
plot ()
cl ()
cl ()
imutil ()
cl ()
immatch ()
cl ()
imgeom ()
cl ()
imfit ()
cl ()
imfilter ()
cl ()
imcoords ()
images ()
cl ()
cl ()
Error while reading login.cl file - may need to rebuild with mkiraf
Fatal startup error. CL dies.
[/code:1:2cfb4b6cc4]what should i do then to install stsdas&tables and to fix iraf??
please help me..

 
Profile Email
 Quote
fitz
 08/16/2009 02:26AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
Firstly, if you're using SuSE then the IRAF architecture you need to remember is 'linux'.When resetting the package architecture or compiling, you also need to remember to use the '-p <pkgname>' flag to load the package environment. In this case, resetting the package architecture is done with:[code:1:855d46052c]mkpkg -p stsdas suse[/code:1:855d46052c]That said, compiling anything in IRAF requires that you define certain environment variables, e.g.[code:1:855d46052c]
setenv iraf /iraf/iraf/ <-- trailing '/' required
setenv IRAFARCH linux <-- for v2.14, earlier systems use 'suse'
source $iraf/unix/hlib/irafuser.csh <-- picks up other variables
[/code:1:855d46052c]These are for C-shell users and should be put in your .cshrc file, let me know if you need the equivalent Bash shell commands. For major packages like STSDAS/TABLES, it may be simplest to just download and unpack the pre-built binaries.As for the error when starting the CL: This looks like a problem in the hlib$extern.pkg file which you must edit to define the package, e.g. you forgot a closing quote char or didn't escape a newline in the 'helpdb' definition. Post this file if you aren't sure what went wrong, in any case please review the STSDAS/TABLES installation docs and be sure you've followed all the steps.-Mike

 
Profile Email
 Quote
rocker_milan
 08/16/2009 02:26AM  
++---
Junior

Status: offline


Registered: 08/15/2009
Posts: 15
thank you for your help..
but i still can not install it.. i've already type this code:
[code:1:9a04e40332]setenv iraf /iraf/iraf/
setenv IRAFARCH linux
source $iraf/unix/hlib/irafuser.csh [/code:1:9a04e40332]
but, it still don't wanna work. after i type [code:1:9a04e40332]mkpkg -p stsdas suse[/code:1:9a04e40332]
i get this message:
[code:1:9a04e40332]envinit: cannot open `/iraf/extern/stsdas/lib/zzsetenv.def'
Warning, mkpkg line 0: cannot open `stsdas$lib/mkpkg.inc'
Warning, mkpkg line 1: cannot open `mkpkg'[/code:1:9a04e40332]and for starting CL, i already type exactly what's in the installation guide, like this:[code:1:9a04e40332]
# External (non core-system) packages. To install a new package, add the
# two statements to define the package root directory and package task,
# then add the package helpdb to the `helpdb' list.reset noao = iraf$noao/
task noao.pkg = noao$noao.clreset tables = /iraf/extern/tables/
task tables.pkg = tables$tables.clreset stsdas = /iraf/extern/stsdas/
task stsdas.pkg = stsdas$stsdas.cl
task apropos = stsdas$apropos.clreset helpdb = "lib$helpdb.mip\
,noao$lib/helpdb.mip\
# ,tables$lib/helpdb.mip\
"stsdas$lib/helpdb.mip\keep
[/code:1:9a04e40332] is my hlib$extern.pkg file still not right?
coz it still not working..

 
Profile Email
 Quote
fitz
 08/16/2009 02:26AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
Your initial message says you unpacked tables/stsdas in the home/iraf/iraf/local directory, but you are declaring them as being in /iraf/extern The paths need to match where the files actually live.

 
Profile Email
 Quote
rocker_milan
 08/16/2009 02:26AM  
++---
Junior

Status: offline


Registered: 08/15/2009
Posts: 15
owh..okey, now i see the problem is..
thank you Big Grin another problem to be solve is, when i type [code:1:dc2a4514e9]mkpkg -p stsdas suse
[/code:1:dc2a4514e9], i get this: [code:1:dc2a4514e9]Warning, mkpkg line 1: cannot open `mkpkg'[/code:1:dc2a4514e9]
Confused: Confused: Confused:
can you help me again?? :wink:
(i'm sorry to bother you for all of this newbie question...)

 
Profile Email
 Quote
fitz
 08/16/2009 02:26AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
Are you actually *in* the stsdas source directory when you issue the command? The 'mkpkg' command reads a 'mkpkg' file in the current directory so you should be in /home/iraf/iraf/local/stsdas when you type he command.

 
Profile Email
 Quote
rocker_milan
 08/16/2009 02:26AM  
++---
Junior

Status: offline


Registered: 08/15/2009
Posts: 15
no actually.. i didn't know it has to be in the source directory.. Smile
okey, the system is already configure in suse.. but my cl is still error.. how to fix my cl? the message that i get is the same as at the up front..
(i already have define the package in the source directory just like you said earlier).

 
Profile Email
 Quote
fitz
 08/16/2009 02:26AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
[quote:814628d36d]
reset helpdb = "lib$helpdb.mip\
,noao$lib/helpdb.mip\
# ,tables$lib/helpdb.mip\
"stsdas$lib/helpdb.mip\keep [/quote:814628d36d]This is supposed to be a quoted string, where the '\' at the end escapes the newline. Your definition for stsdas follows the closing quote and is a syntax error, try instead[code:1:814628d36d]
reset helpdb = "lib$helpdb.mip\
,noao$lib/helpdb.mip\
,tables$lib/helpdb.mip\
,stsdas$lib/helpdb.mip\
"keep
[/code:1:814628d36d]

 
Profile Email
 Quote
rocker_milan
 08/16/2009 02:26AM  
++---
Junior

Status: offline


Registered: 08/15/2009
Posts: 15
i think i have finished the installation process, coz until the end of installation i haven't met a problem..
i will try to studying to use this package.. thank you for your guidance until now..
if i have a problem when analyze using this package, would you mind to help me again?? Big Grin
thank you very much..

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