[CIG-MC] Installing CitcomS - Cygwin

Lester Anderson lester_anderson1963 at hotmail.com
Thu Jun 7 01:42:37 PDT 2012


Hi Eric,

No I never did manage to get the code the compile under Cygwin. The main issue seems to be that the MPI library will not install. At the moment I am working with a colleague that uses the code a lot and has it working. Unfortunately I do not have the time to keep trying to compile the code.

Perhaps somewhere down the line the code could be modified to work on Windows 32/64 bit but I can appreciate that it would require a lot of tweaking to get the functionality.

If anyone does manage to get the code to compile and run under Cygwin I would be interested to know. Cygwin is a bit of a strange beast in that it is running in windows and can access windows programs (eg GMT) but is fully UNIX compliant, so it is odd why things do not work.

Cheers

Lester 

> Subject: Re: [CIG-MC] Installing CitcomS - Cygwin
> From: emheien at ucdavis.edu
> Date: Wed, 6 Jun 2012 09:41:49 -0700
> To: lester_anderson1963 at hotmail.com
> 
> Hi Lester,
> 
> I just wanted to follow up on this - did you end up getting CitcomS working?
> 
> -Eric
> 
> On Jun 1, 2012, at 2:55 AM, Lester Anderson wrote:
> 
> > Hi Eric,
> > 
> > I tried to compile the program on a 64bit Windows 7 system running Cygwin and it was fine running the configure script (with mods done) and did not complain about the aux-config directory unlike using it on WinXP. It still did not compile properly and complains about the MPI library not found. Tried both MPICH2 and OpenMPI installs and neither worked on Cygwin.
> > 
> > Any chance you could build or test a functional binary to run under Cygwin? Is the program too complex to be implemented as a Windows version?
> > 
> > In theory it should work but I cannot seem to get it building. I am not even sure that the MPI thing worked either as it still could not locate mpicc etc. I am at a loss as to how to proceed at present.
> > 
> > Cheers
> > 
> > Lester
> > 
> > > Subject: Re: [CIG-MC] Installing CitcomS - Cygwin
> > > From: emheien at ucdavis.edu
> > > Date: Thu, 31 May 2012 08:31:51 -0700
> > > CC: cig-mc at geodynamics.org
> > > To: lester_anderson1963 at hotmail.com
> > > 
> > > 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>
> > > 
> 
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://geodynamics.org/pipermail/cig-mc/attachments/20120607/84230b3d/attachment.htm 


More information about the CIG-MC mailing list