[CIG-MC] Installing CitcomS - Cygwin

Eric Heien emheien at ucdavis.edu
Thu May 31 08:31:51 PDT 2012


Hi Lester,

Using "unix2dos -f configure" should force it to convert the line endings, though your awk solution seems to work just as well.  It looks like some other files in aux-config/ such as "missing" (and probably config.guess, config.sub, etc) need the same treatment.

-Eric

On May 31, 2012, at 2:21 AM, Lester Anderson wrote:

> Hi Eric,
> 
> I tried the unix2dos command but it did not seem to do anything:
> 
> andder at BAS-306SCAN-D1 /cygdrive/c/CitcomS/src/CitcomS-3.2.0
> $ unix2dos configure
> unix2dos: Skipping binary file configure
> 
> andder at BAS-306SCAN-D1 /cygdrive/c/CitcomS/src/CitcomS-3.2.0
> $ ./configure
> ./configure: line 18: $'\r': command not found
> ./configure: line 33: syntax error near unexpected token `newline'
> '/configure: line 33: `     ;;
> 
> andder at BAS-306SCAN-D1 /cygdrive/c/CitcomS/src/CitcomS-3.2.0
> Running configure again clearly shows it did not actually do anything. 
> Found an awk command to do the same thing, worked to allow me to run the script:
> 
> $ awk '{ sub("\r$", ""); print }' configure > configure2
> 
> andder at BAS-306SCAN-D1 /cygdrive/c/CitcomS/src/CitcomS-3.2.0
> $ configure2
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> /cygdrive/c/CitcomS/src/CitcomS-3.2.0/aux-config/missing: line 3: $'\r': command not found
> /cygdrive/c/CitcomS/src/CitcomS-3.2.0/aux-config/missing: line 5: $'\r': command not found
> /cygdrive/c/CitcomS/src/CitcomS-3.2.0/aux-config/missing: line 9: $'\r': command not found
> /cygdrive/c/CitcomS/src/CitcomS-3.2.0/aux-config/missing: line 14: $'\r': command not found
> /cygdrive/c/CitcomS/src/CitcomS-3.2.0/aux-config/missing: line 19: $'\r': command not found
> /cygdrive/c/CitcomS/src/CitcomS-3.2.0/aux-config/missing: line 22: $'\r': command not found
> /cygdrive/c/CitcomS/src/CitcomS-3.2.0/aux-config/missing: line 27: $'\r': command not found
> /cygdrive/c/CitcomS/src/CitcomS-3.2.0/aux-config/missing: line 47: syntax error
> near unexpected token `$'in\r''
> 'cygdrive/c/CitcomS/src/CitcomS-3.2.0/aux-config/missing: line 47: `case $1 in
> configure2: WARNING: `missing' script is too old or missing
> checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
> checking for gawk... gawk
> checking whether make sets $(MAKE)... yes
> checking for mpicc... no
> checking for hcc... no
> checking for mpcc... no
> checking for mpcc_r... no
> checking for mpxlc... no
> checking for cmpicc... no
> checking for gcc... gcc
> checking whether the C compiler works... yes
> checking for C compiler default output file name... a.exe
> checking for suffix of executables... .exe
> checking whether we are cross compiling... no
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether gcc accepts -g... yes
> checking for gcc option to accept ISO C89... none needed
> checking for style of include used by make... GNU
> checking dependency style of gcc... none
> checking for mpicxx... no
> checking for mpic++... no
> checking for mpiCC... no
> checking for hcp... no
> checking for mpCC... no
> checking for mpxlC... no
> checking for mpxlC_r... no
> checking for cmpic++... no
> checking for g++... g++
> checking whether we are using the GNU C++ compiler... yes
> checking whether g++ accepts -g... yes
> checking dependency style of g++... none
> checking how to run the C preprocessor... gcc -E
> checking for grep that handles long lines and -e... /usr/bin/grep
> checking for egrep... /usr/bin/grep -E
> checking for ANSI C header files... yes
> checking for sys/types.h... yes
> checking for sys/stat.h... yes
> checking for stdlib.h... yes
> checking for string.h... yes
> checking for memory.h... yes
> checking for strings.h... yes
> checking for inttypes.h... yes
> checking for stdint.h... yes
> checking for unistd.h... yes
> checking malloc.h usability... yes
> checking malloc.h presence... yes
> checking for malloc.h... yes
> configure2: error: cannot run /bin/sh ./aux-config/config.sub
> 
> The converted script file (configure2) runs but comes up with errors. I am sure it is a unix/dos issue but I cannot see a obvious solution. If you can see where the problem may exist that would be great. 
> 
> Cheers
> 
> Lester
> 
> > Subject: Re: [CIG-MC] Installing CitcomS - Cygwin
> > From: emheien at ucdavis.edu
> > Date: Wed, 30 May 2012 10:28:15 -0700
> > CC: CIG-MC at geodynamics.org
> > To: lester_anderson1963 at hotmail.com
> > 
> > Hi Lester,
> > 
> > There should not be any fundamental problem with running CitcomS under Cygwin. The error you got seems to indicate confusion with the newline character "\r" vs. "\n". Try running "unix2dos configure" to change the script to use DOS style newline characters then run configure again.
> > 
> > Let me know if you have any other problems,
> > 
> > -Eric
> > 
> > On May 28, 2012, at 6:55 AM, Lester Anderson wrote:
> > 
> > > Hello,
> > > 
> > > I am wondering if it is possible to install CitcomS under Cygwin?
> > > 
> > > I have tried running the configure but it fails:
> > > 
> > > andder at BAS-306SCAN-D1 /cygdrive/c/CitcomS/src/CitcomS-3.2.0
> > > $ ./configure
> > > ./configure: line 18: $'\r': command not found
> > > ./configure: line 33: syntax error near unexpected token `newline'
> > > '/configure: line 33: ` ;;
> > > 
> > > andder at BAS-306SCAN-D1 /cygdrive/c/CitcomS/src/CitcomS-3.2.0
> > > $ make
> > > -bash: make: command not found
> > > 
> > > Any ideas or guidance would be appreciated.
> > > 
> > > Thanks
> > > 
> > > Lester Anderson
> > > _______________________________________________
> > > CIG-MC mailing list
> > > CIG-MC at geodynamics.org
> > > http://geodynamics.org/cgi-bin/mailman/listinfo/cig-mc
> > 
> <config.log>



More information about the CIG-MC mailing list