Welcome to iraf.net Friday, May 03 2024 @ 06:00 PM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 WANTED someone in the Tucson area to install Cywin IRAF
   
Tom Kaye
 04/06/2008 12:46AM (Read 4797 times)  
+----
Newbie

Status: offline


Registered: 04/03/2008
Posts: 9
Hello All,I am willing to pay 100 dollars an hour with a 150 minimum for someone to install Cygwin IRAF on my Windows XP system. I can bring the computer to you. Please email me at tomattomkayedotcomThanks,Tom Kaye

 
Profile Email
 Quote
fitz
 04/06/2008 12:46AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
Hi Tom,Well, if *I* can't make it work then I shouldn't be running this site. Drop me a note (fitz@iraf.net) when would be a good time for you, I could meet you somewhere or you can drop by my office. You can tell me more about spectrashift while we watch the disk spin.Cheers,
-Mike

 
Profile Email
 Quote
fitz
 04/06/2008 12:46AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
Before you part with any cash or make the drive up to Tucson, however, let's see if we can't sort this out over email/postings first. If it were anything other than Windows I'd ask to login remotely. One thins that may help: If you can locate the 'sysinfo' script in the $iraf/unix/hlib directory, try running that and posting the output. It should point out some of the problems that need to be fixed.Cheers,
-Mike

 
Profile Email
 Quote
Tom Kaye
 04/06/2008 12:46AM  
+----
Newbie

Status: offline


Registered: 04/03/2008
Posts: 9
Mike,Thanks for the concern. I have been fighting with this continuously for two days. I was able to get to the point where I could run ./install and it looked like everything installed ok with just one file error. When I try to do mkiraf it cant find the file. If I go directly to the /hlib subdir and try and run mkiraf.csh it still can't find it. If i try and run sysinfo when in the same subdir I get "command not found". I have tried this in the first window, startx, csh and xgterm. Its probably something really simple, but its the simple questions that are hard to find an answer for if you are not familiar with the environment.Thanks,Tom

 
Profile Email
 Quote
fitz
 04/06/2008 12:46AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
[quote:428bc6400b] ....I was able to get to the point where I could run ./install and it looked like everything installed ok with just one file error.[/quote:428bc6400b]This may be harmless, but what was the error?[quote:428bc6400b]When I try to do mkiraf it cant find the file. If I go directly to the /hlib subdir and try and run mkiraf.csh it still can't find it. If i try and run sysinfo when in the same subdir I get "command not found". I have tried this in the first window, startx, csh and xgterm. Its probably something really simple, but its the simple questions that are hard to find an answer for if you are not familiar with the environment.[/quote:428bc6400b]This sounds like a simple path problem. To execute a command in the current directory you need to prefix it with "./" as in "./mkiraf.csh". However, you don't want to run mkiraf in the hlib directory since you don't want that to be your login directory. To access the 'mkiraf' command the "local bin directory" you specified to the install script needs to be in your path. Assuming this was /usr/local/bin, you can call the command using the full path (i.e. "/usr/local/bin/mkiraf"), or you can change your $path environment variable to include /usr/local/bin. For example,[code:1:428bc6400b]% set path = ( . /usr/local/bin $path)[/code:1:428bc6400b]will augment the current path (normally set in your .cshrc or .login file) with the "." to use the current dir, /usr/local/bin, and whatever the path is already set to. You may need to type 'rehash' after this to pick up new commands.Now, if using the full path /usr/local/bin/mkiraf still doesn't work, it may be that this link is invalid. The 'mkiraf' command is a symlink that points to $iraf/unix/hlib/mkiraf.csh so an invalid $iraf could throw it off (but the install script should catch that). If you can look at that file (e.g. "cat /usr/local/bin/mkiraf") the link is fine. Let me know if there are still problems at this point, and whether using the full path works or not.Cheers,
-Mike

 
Profile Email
 Quote
Tom Kaye
 04/06/2008 12:46AM  
+----
Newbie

Status: offline


Registered: 04/03/2008
Posts: 9
So I entered the command exactly as you specified after doing 'startx'
% set path = ( . /usr/local/bin $path )
and it came back with the error "badly placed ()'s"If I run the command in the first window cygwin opens i get the error
bash: syntax error near unexpected token '('cat /user/local/bin/mkiraf reports
"No such file or directory'pwd reports "/home/tkdual"echo $iraf/ reports
/home/tkdual/iraf/iraf//I dont have a record of the install error.All I can do is exactly what you tell me.thanks,Tom

 
Profile Email
 Quote
fitz
 04/06/2008 12:46AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
[quote:730a6d023a]So I entered the command exactly as you specified after doing 'startx'
% set path = ( . /usr/local/bin $path )
and it came back with the error "badly placed ()'s"[/quote:730a6d023a]You'd mentioned earlier something about csh, but if you are using bash then the equivalent command is[code:1:730a6d023a]export PATH=.:/usr/local/bin:$PATH[/code:1:730a6d023a]Or, just type 'csh' to start a C-shell.
[quote:730a6d023a]cat /user/local/bin/mkiraf reports
"No such file or directory'[/quote:730a6d023a]That should be 'usr' and not 'user'. Otherwise, when you ran the install script, what did you set as the "local bin directory"? /usr/local/bin is common, but you might look in /bin or /usr/bin as well. In any case, you're looking for a command called 'mkiraf' in that directory. Note the 'cat' can fail if the link is invalid the way I mentioned earlier.[quote:730a6d023a]pwd reports "/home/tkdual"echo $iraf/ reports
/home/tkdual/iraf/iraf// [/quote:730a6d023a]This all looks normal for an IRAF installation under the user directory. When you find the 'mkiraf' command, it should be a link pointing to /home/tkdual/iraf/iraf/unix/hlib/mkiraf.csh-Mike

 
Profile Email
 Quote
Tom Kaye
 04/06/2008 12:46AM  
+----
Newbie

Status: offline


Registered: 04/03/2008
Posts: 9
Mike,Before I try more commands, please tell me exactly what window I should be in when I am doing them. From the conversation it sounds like this is right?Launch cygwin, startx, csh, then do commands.Correct? I am confused about which 'windows' do what.I am also getting when I launch cygwin
bash: /home/tkdual/irafuser.csh no such file or directory.thanks,Tom

 
Profile Email
 Quote
fitz
 04/06/2008 12:46AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
The 'startx' is needed so you'll have an X server and can run XTerm, XGTerm and DS9. Once that is launched do the commands in either an xterm or xgterm window. Technically you can do a 'mkiraf' from the Cygwin window, but the environment might be different so best to do this in the same windows you'll be running IRAF. Let me know what happens.-Mike

 
Profile Email
 Quote
Tom Kaye
 04/06/2008 12:46AM  
+----
Newbie

Status: offline


Registered: 04/03/2008
Posts: 9
So we do cygwin, startx, xgterm? or
cygwin, startx, csh, xgterm?Tom

 
Profile Email
 Quote
Tom Kaye
 04/06/2008 12:46AM  
+----
Newbie

Status: offline


Registered: 04/03/2008
Posts: 9
doing startx, xgterm, csh this is what i get ( I figured out the cut and paste)-------------------------------------------------------------
tkdual@TKdual ~
$ csh
[tkdual@TKdual ~]$ % set path = ( . /usr/local/bin $path )
Badly placed ()'s.
[tkdual@TKdual ~]$

 
Profile Email
 Quote
fitz
 04/06/2008 12:46AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
Do cygwin, startx, xgterm, and then in the xgterm window do a 'csh' just to guarantee that you're using a C-shell. You can do "echo $SHELL" to see what it is without the csh command.[code:1:a241300568][tkdual@TKdual ~]$ % set path = ( . /usr/local/bin $path )[/code:1:a241300568]My bad: The '%' in my message was meant to indicate a command prompt, you need to type "set path ....." without the '%'-Mike

 
Profile Email
 Quote
Tom Kaye
 04/06/2008 12:46AM  
+----
Newbie

Status: offline


Registered: 04/03/2008
Posts: 9
Mike,Thank you for all your help. Coincidentally the guy who installed IRAF for me 4 years ago emailed me last night (had not heard from him in all that time). After 5 hours on the phone we were able to get it all working. I am going to try and copy the entire cygwin tree structure to two cdroms for idiots like me to just copy on to their XP systems. No tar, gz, path statements etc. Hopefully this will solve the install problems for the many people out there that would like to run IRAF but only have windows systems.Thanks!Tom Kaye

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