Welcome to iraf.net Tuesday, May 07 2024 @ 07:50 PM GMT


 Forum Index > Help Desk > Systems New Topic Post Reply
 CL dies on new 64bit OSX 10.6.7 installation
   
mcintoshdh
 06/26/2011 12:22AM (Read 3356 times)  
+----
Newbie

Status: offline


Registered: 06/25/2011
Posts: 4
Hello,I successfully installed v2.15.1a on my new MacBookPro running 64bit
uname -m ==> x86_64
using iraf.macx.x86_64.tar.gz; installation was smooth (from iraf admin user)but after doing a clean mkiraf (from my user account) when I start cl I get:ERROR: Cannot change directory to `danmcintosh'
called as: `chdir (danmcintosh)'
called as: `cl ()'
called as: `cl ()'
Error while reading login.cl file - may need to rebuild with mkiraf
Fatal startup error. CL dies.I don't understand, as all danmcintosh directories in login.cl are good:set home = "/Users/danmcintosh/"
set imdir = "/iraf/imdirs/danmcintosh/"
set uparm = "home$uparm/"
set userid = "danmcintosh"What did I do wrong??
Thanks

 
Profile Email
 Quote
fitz
 06/26/2011 12:22AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
The chdir() is being done in the hlib$extpkg.cl script that dynamically loads the external packages. Because this script is executed before the normal system commands are available to the CL, it uses host commands (e.g. '!pwd' instead of "path") for certain operations. Is it possible your use directory contains a space in the name (e.g. "/Users/dan mcintosh")? If not, the are you logging in from /Users/danmcintosh or some other directory? If you do a MKIRAF in the /tmp directory and type 'cl' from there, do things work (indicating a problem in your iraf login directory and not the iraf installation directory).

 
Profile Email
 Quote
mcintoshdh
 06/26/2011 12:22AM  
+----
Newbie

Status: offline


Registered: 06/25/2011
Posts: 4
Hi,I login to /Users/danmcintosh, which is where I ran mkiraf.
I installed iraf as an admin user = iraf. I installed external packages from the same. When I ran cl from /Users/iraf it worked fine.I have sudo privileges, is it still necessary to install iraf from an iraf user account?Thanks

 
Profile Email
 Quote
fitz
 06/26/2011 12:22AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
Strictly speaking, it was never actually [b:5813554b7c]necessary[/b:5813554b7c] to create an iraf user account (it was a convenience to have an environment defined with things an iraf site-admin would need), although the install script still needs to be run as root (for now, that will change for the next release) the iraf tree itself can be owned by anyone.That said, be sure the /Users/iraf directory has read permissions for other users. You can put the command 'd_trace' at the top of the hlib$extpkg.cl script to have it print what it's actually doing, that might offer some sort of clue.

 
Profile Email
 Quote
mcintoshdh
 06/26/2011 12:22AM  
+----
Newbie

Status: offline


Registered: 06/25/2011
Posts: 4
Problem solved, thanks for the tip. Very weird problem discovered by adding d_trace to top of hlib$extpkg.cl -- I have an old .alias file with the following defunct command to end a ssh connection:
alias end 'ps aux |grep nova1'
This was the culprit, who knows why .. who cares. Iraf works now!Note for those interested, even though I set up iraf admin user, everything was loaded using sudo in the correct /iraf/iraf/ directory structure.

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