samiam |
09/21/2010 01:24AM (Read 3256 times)
|
|
|
Status: offline
Registered: 02/20/2009
Posts: 5
|
Hello, I've installed mscred (I think successfully) on my Ubuntu 10.04 machine. But, it seems to be having trouble finding the mscdb files. I've tried everything I've found on old iraf.net posts with no luck. I downloaded and unpacked mscred.tar.Z, mscred-bin.redhat.tgz, and mscred-src.tar.Z into ~/iraf/extern/mscred. I edited /iraf/iraf/unix/hlib/extern.pkg and added the lines:
reset mscred = /iraf/extern/mscred/
task mscred.pkg = mscred$mscred.clI then downloaded and unpacked mscdb.tar.Z in ~/iraf/extern/mscdb, and added
reset mscdb = /iraf/extern/mscdb/
to my extern.pkg file. I also tried changing the file bin.redhat to bin.linux.I tried the command
mscred> path mscdb$
~/iraf/extern/mscdbAfter re-making IRAF after each of these changes, I still get the errors:mscred> setinst
Site (? for menu): ?
Site menu mscdb$noao/sites.men not foundandmscred> setinst
Site (? for menu or q to quit) (q): kpno
ERROR: Attempt to access undefined local variable `tel'. "print ("Site ", tel, " not found")"
line 38: mscsrc$setinstrument.cl
called as: `setinstrument ()'
So I haven't told some file the proper place to look for the mscdb files? Any ideas what else I need to do to get this to work? Thank you.
|
|
|
|
fitz |
09/21/2010 01:24AM
|
|
|
Status: offline
Registered: 09/30/2005
Posts: 4040
|
In your post you keep referring to "~/iraf/extern" however the paths in the commands you create don't have the '~' and are just /iraf/extern, is that a typo or a real difference in the path? Can you "cd mscdb$" and end up in the right directory? Were all of the changes to the extern.pkg file inserted before the final 'keep' statement?
|
|
|
|
samiam |
09/21/2010 01:24AM
|
|
|
Status: offline
Registered: 02/20/2009
Posts: 5
|
Sorry, I am still very new to this and don't really know what I'm talking about. By "~/iraf/extern" I mean "/home/me/iraf/extern" If I load mscred, then "cd mscdb$" I do end up in the right directory, so I don't think that is the problem. And sorry...what do you mean by "keep" statement? (I really don't know the jargon here). Thank you for replying so fast!
|
|
|
|
fitz |
09/21/2010 01:24AM
|
|
|
Status: offline
Registered: 09/30/2005
Posts: 4040
|
[quote:c83dfc4eb7]Sorry, I am still very new to this and don't really know what I'm talking about. By "~/iraf/extern" I mean "/home/me/iraf/extern"[/quote:c83dfc4eb7]Right, the '~' expands to your home directory. My point was that in some places you refer to /home/me/iraf/extern and in the snippets about what you put in the file it was just /iraf/extern. Are these actually the same directories or a typo?[quote:c83dfc4eb7]If I load mscred, then "cd mscdb$" I do end up in the right directory, so I don't think that is the problem.[/quote:c83dfc4eb7]So the path may be correct, but is there actually a 'noao/sites.men' file in that directory?[quote:c83dfc4eb7]And sorry...what do you mean by "keep" statement? (I really don't know the jargon here). [/quote:c83dfc4eb7]Quite literally, the last line of the extern.pkg file must be 'keep'. Definitions after the 'keep' are ignored.[/quote]
|
|
|
|
samiam |
09/21/2010 01:24AM
|
|
|
Status: offline
Registered: 02/20/2009
Posts: 5
|
Yes, that was a typo in the post. It's actually: reset mscred = /home/me/iraf/extern/mscred/
task mscred.pkg = mscred$mscred.cl
reset mscdb = /home/me/iraf/extern/mscdbin the extern.pkg file, before the last line that says "keep"
There is definitely a file "/home/me/iraf/extern/mscdb/noao/sites.men" that lists a couple of observatories, as it should. The permissions and ownership looks ok for all of these folders and files too.
|
|
|
|
fitz |
09/21/2010 01:24AM
|
|
|
Status: offline
Registered: 09/30/2005
Posts: 4040
|
[quote:5e83a8f630]reset mscdb = /home/me/iraf/extern/mscdb [/quote:5e83a8f630]All paths like this MUST end with a trailing '/', see if it is that simple. (Otherwise, the file path is /home/me/iraf/extern/mscdbnoao/sites.men)
|
|
|
|
samiam |
09/21/2010 01:24AM
|
|
|
Status: offline
Registered: 02/20/2009
Posts: 5
|
That was it! Thank you so much! Picky picky IRAF...
|
|
|
|
fitz |
09/21/2010 01:24AM
|
|
|
Status: offline
Registered: 09/30/2005
Posts: 4040
|
[quote:5e5668366f]Picky picky IRAF...[/quote:5e5668366f]The installation instructions do say: "Note that pathnames must end with '/'.", so......Silly, Silly user.IRAF logicals can be used for a number of reasons so automatically adding the '/' is not an option.
|
|
|
|