Welcome to iraf.net Thursday, May 02 2024 @ 01:38 PM GMT


 Forum Index > Help Desk > Applications New Topic Post Reply
 Troubles with installation of mscred under cygwin
   
Chrissyo
 03/20/2010 10:47AM (Read 2683 times)  
+----
Newbie

Status: offline


Registered: 03/20/2010
Posts: 8
Hi everyone.I'm not a first-time iraf user, but I'm a first-time iraf installer. I'm working with some multi-extension fits files, so I've been trying to get version 4.9 of mscred installed. I've already got version 2.14 of iraf successfully installed on cygwin.So I've followed the instructions given in some other forum posts at this website. I created the directory in iraf/extern/mscred and extracted the relevant files. I've also updated the extern.pkg with the following lines:reset mscred = /iraf/extern/mscred/
task mscred.pkg = mscred$mscred.clAnd:,mscred$lib/helpdb.mip\As expected, mscred shows up in the list of packages when I start iraf, and its help files work. But upon trying to use mscdisplay I get the following error:"mscred> mscdisplay orion0200.fits 1
/iraf/extern/mscred/bin.cygwin/x_mscdisplay.e: /iraf/extern/mscred/bin.cygwin/x_mscdisplay.e: cannot execute binary file"I'm not entirely unsurprised by this, because I'm not using cygwin binary files - I can't find any on the web. I read on another forum post that we can just rename one of the bin.x files to bin.cygwin. I tried using the redhat, macosx, macintel, and a few others too (and I also tried using different mscred versions). But I keep getting the same message. So I assume simply renaming bin.redhat to bin.cygwin, or the equivalent of this, isn't the way I should be going about this.Any ideas? Or am I missing an installation step somewhere?I also read somewhere that you can compile the package as an alternative? I'm somewhat computer illiterate, so I'm leaving this option to the end. Also, I think someone said that compiling these packages doesn't yet work on a 64bit machine? Because that's what I'm using, with windows 7.Other than the above, iraf seems to be working fine. SmileThanks!Chris.

 
Profile Email
 Quote
fitz
 03/20/2010 10:47AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
In general you can interchange 'linux' and 'redhat' binaries, but nothing with cygwin. I can build some cygwin binaries on Monday when I'm back in the office and have access to a machine, until then the best you can do is try to compile or hope somebody else can offer binaries.You may be on a 64-bit machine but that doesn't necessarily mean your Cygwin environment is 64-bit. Assuming you've got GCC and other development tools installed in Cygwin you should be able to compile the package. To do this, try something like[code:1:b27cd8c04e]
% csh # start a C-shell
% setenv iraf /iraf/iraf/ # trailing '/' required, check path
% setenv IRAFARCH cygwin # set the machine architecture
% source $iraf/unix/hlib/irafuser.csh # pick up some other environment vars
% cd /iraf/extern/mscred # go to the MSCRED directory
% mkdir bin.cygwin # create binary directory
% rm bin ; ln -s bin.cygwin.bin # creat link
% mkpkg -p mscred -p noao # build it
[/code:1:b27cd8c04e]I don't think MSCRED has a cygwin architecture in the mkpkg file so you need to change the architecture by hand. If you get errors from the build stage please post them.-Mike

 
Profile Email
 Quote
Chrissyo
 03/20/2010 10:47AM  
+----
Newbie

Status: offline


Registered: 03/20/2010
Posts: 8
Thanks for the reply!I tried putting in the commands you suggested, but it doesn't seem to work. It looks like it is getting errors and warnings all the way through the scrolling text. The error stuff at the end when it finishes says:/iraf/iraf/unix/hlib/f77.sh: line 188: gcc: command not found
xc -Nz -p mscred -p noao -z x_mscred.o plp2li.o -lmscred -lxtools -lcurfit -lgsurfit -lslalib -lsurfit -liminterp -o xx_mscred.e
Warning: file `x_mscred.o' not found
Warning: file `plp2li.o' not found
Fatal compiler error: Cannot execute gcc
check file `x_mscred.o' into `mscbin$'
$checkin: file `x_mscred.o' not found
Warning, mkpkg line 26: error during checkin of x_mscred.o
Warning, mkpkg line 11: module `relink' not found or returned error
move `xx_mscred.e' to `mscbin$x_mscred.e'
$move: file `xx_mscred.e' not found
Warning, mkpkg line 30: error moving file xx_mscred.e
Warning, mkpkg line 12: module `install' not found or returned error
Warning, mkpkg line 11: module `update@src' not found or returned errorIt seems to be pretty much the same the whole way up. So I guess it's not looking too good.I also put this into the mkpkg file:cygwin: # install cygwin (cygwin) binaries
$ifnfile (bin.cygwin)
!mkdir bin.cygwin
$endif
$verbose off
$set DIRS = "lib src"
!$(hlib)/mkfloat.csh cygwin -d $(DIRS)
;I hope that's what I was supposed to add in.Also, the '% rm bin ; ln -s bin.cygwin.bin' command tells me:rm: cannot remove `bin': Is a directory
ln: creating symbolic link `./bin.cygwin.bin': File existsSo it's not actually removing anything there?Thanks for the help! Smile

 
Profile Email
 Quote
fitz
 03/20/2010 10:47AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
I was able to use another machine for the build and put a set of binaries in the download area. I'd recommend you delete your current mscred directory and get bothhttps://iraf.net/ftp/iraf/extern/mscred-src.tar.gz
https://iraf.net/ftp/iraf/extern/mscred-bin.cygwin.tar.gzUnpack these both in the /iraf/extern/mscred directory and you'll have fresh source and binaries, complete the installation by declaring the package in the $iraf/unix/hlib/extern.pkg file.

 
Profile Email
 Quote
Chrissyo
 03/20/2010 10:47AM  
+----
Newbie

Status: offline


Registered: 03/20/2010
Posts: 8
Awesome! It appears to be working fine now! Thankyou for your help! Big Grin

 
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