AMBER Archive (2007)

Subject: Re: AMBER: Problem with dacdif when using cygwin

From: Steven Winfield (saw44_at_cam.ac.uk)
Date: Fri Feb 16 2007 - 14:15:00 CST


Dear Scott and David,

Thanks you both for your help.

I originally ran into this problem a few weeks ago and experimented with
changing 'getopt' to 'getopts' in dacdif, thinking it might just be a
naming issue in cygwin and noticing I had 'getopts' but not 'getopt'. I
forgot to change it back when I revisited the problem. Sorry!

For the record, getopt is in the cygwin package 'util-linux' which isn't
installed by default. After I installed this everything works fine.

Thanks again,

Steve.

David A. Case wrote:
> On Fri, Feb 16, 2007, Steven Winfield wrote:
>
>> $ make test.serial
>> cd dmp; ./Run.dmp
>> ../dacdif: line 46: getopts: `mdout.dmp.save': not a valid identifier
>
> Weird: this has always worked for me.
> Also weird: line 46 of dacdif refers to "getopt" not to "getopts" (the two
> are very different)
>
>> I know cygwin uses ash as a replacement for sh...
>
> I don't think this has been for true a long time. Do you have an old cygwin?
> But even if I replace the top line of dacdif with "#!/bin/ash" it still
> works for me.
>
> Try this:
>
> 1. check line 46 of dacdif: does it refer to getopt or to getopts?
>
> 2. at the command line, try "which getopt" and "getopt --version"
>
> 3. Check to see if you have DOS line endings in your dacdif script
>
> 4. Try changing /bin/sh in the top line of dacdif to /bin/ash or /bin/bash.
>
> 5. Just comment out lines 45 and 46 of dacdif -- Scott: what are these doing?
>
> ...good luck...dac
>
> -----------------------------------------------------------------------
> The AMBER Mail Reflector
> To post, send mail to amber_at_scripps.edu
> To unsubscribe, send "unsubscribe amber" to majordomo_at_scripps.edu
-----------------------------------------------------------------------
The AMBER Mail Reflector
To post, send mail to amber_at_scripps.edu
To unsubscribe, send "unsubscribe amber" to majordomo_at_scripps.edu