<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Hi Eric,<br><br>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.<br><br>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?<br><br>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.<br><br>Cheers<br><br>Lester<br><br><div><div id="SkyDrivePlaceholder"></div>> Subject: Re: [CIG-MC] Installing CitcomS - Cygwin<br>> From: emheien@ucdavis.edu<br>> Date: Thu, 31 May 2012 08:31:51 -0700<br>> CC: cig-mc@geodynamics.org<br>> To: lester_anderson1963@hotmail.com<br>> <br>> Hi Lester,<br>> <br>> 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.<br>> <br>> -Eric<br>> <br>> On May 31, 2012, at 2:21 AM, Lester Anderson wrote:<br>> <br>> > Hi Eric,<br>> > <br>> > I tried the unix2dos command but it did not seem to do anything:<br>> > <br>> > andder@BAS-306SCAN-D1 /cygdrive/c/CitcomS/src/CitcomS-3.2.0<br>> > $ unix2dos configure<br>> > unix2dos: Skipping binary file configure<br>> > <br>> > andder@BAS-306SCAN-D1 /cygdrive/c/CitcomS/src/CitcomS-3.2.0<br>> > $ ./configure<br>> > ./configure: line 18: $'\r': command not found<br>> > ./configure: line 33: syntax error near unexpected token `newline'<br>> > '/configure: line 33: ` ;;<br>> > <br>> > andder@BAS-306SCAN-D1 /cygdrive/c/CitcomS/src/CitcomS-3.2.0<br>> > Running configure again clearly shows it did not actually do anything. <br>> > Found an awk command to do the same thing, worked to allow me to run the script:<br>> > <br>> > $ awk '{ sub("\r$", ""); print }' configure > configure2<br>> > <br>> > andder@BAS-306SCAN-D1 /cygdrive/c/CitcomS/src/CitcomS-3.2.0<br>> > $ configure2<br>> > checking for a BSD-compatible install... /usr/bin/install -c<br>> > checking whether build environment is sane... yes<br>> > /cygdrive/c/CitcomS/src/CitcomS-3.2.0/aux-config/missing: line 3: $'\r': command not found<br>> > /cygdrive/c/CitcomS/src/CitcomS-3.2.0/aux-config/missing: line 5: $'\r': command not found<br>> > /cygdrive/c/CitcomS/src/CitcomS-3.2.0/aux-config/missing: line 9: $'\r': command not found<br>> > /cygdrive/c/CitcomS/src/CitcomS-3.2.0/aux-config/missing: line 14: $'\r': command not found<br>> > /cygdrive/c/CitcomS/src/CitcomS-3.2.0/aux-config/missing: line 19: $'\r': command not found<br>> > /cygdrive/c/CitcomS/src/CitcomS-3.2.0/aux-config/missing: line 22: $'\r': command not found<br>> > /cygdrive/c/CitcomS/src/CitcomS-3.2.0/aux-config/missing: line 27: $'\r': command not found<br>> > /cygdrive/c/CitcomS/src/CitcomS-3.2.0/aux-config/missing: line 47: syntax error<br>> > near unexpected token `$'in\r''<br>> > 'cygdrive/c/CitcomS/src/CitcomS-3.2.0/aux-config/missing: line 47: `case $1 in<br>> > configure2: WARNING: `missing' script is too old or missing<br>> > checking for a thread-safe mkdir -p... /usr/bin/mkdir -p<br>> > checking for gawk... gawk<br>> > checking whether make sets $(MAKE)... yes<br>> > checking for mpicc... no<br>> > checking for hcc... no<br>> > checking for mpcc... no<br>> > checking for mpcc_r... no<br>> > checking for mpxlc... no<br>> > checking for cmpicc... no<br>> > checking for gcc... gcc<br>> > checking whether the C compiler works... yes<br>> > checking for C compiler default output file name... a.exe<br>> > checking for suffix of executables... .exe<br>> > checking whether we are cross compiling... no<br>> > checking for suffix of object files... o<br>> > checking whether we are using the GNU C compiler... yes<br>> > checking whether gcc accepts -g... yes<br>> > checking for gcc option to accept ISO C89... none needed<br>> > checking for style of include used by make... GNU<br>> > checking dependency style of gcc... none<br>> > checking for mpicxx... no<br>> > checking for mpic++... no<br>> > checking for mpiCC... no<br>> > checking for hcp... no<br>> > checking for mpCC... no<br>> > checking for mpxlC... no<br>> > checking for mpxlC_r... no<br>> > checking for cmpic++... no<br>> > checking for g++... g++<br>> > checking whether we are using the GNU C++ compiler... yes<br>> > checking whether g++ accepts -g... yes<br>> > checking dependency style of g++... none<br>> > checking how to run the C preprocessor... gcc -E<br>> > checking for grep that handles long lines and -e... /usr/bin/grep<br>> > checking for egrep... /usr/bin/grep -E<br>> > checking for ANSI C header files... yes<br>> > checking for sys/types.h... yes<br>> > checking for sys/stat.h... yes<br>> > checking for stdlib.h... yes<br>> > checking for string.h... yes<br>> > checking for memory.h... yes<br>> > checking for strings.h... yes<br>> > checking for inttypes.h... yes<br>> > checking for stdint.h... yes<br>> > checking for unistd.h... yes<br>> > checking malloc.h usability... yes<br>> > checking malloc.h presence... yes<br>> > checking for malloc.h... yes<br>> > configure2: error: cannot run /bin/sh ./aux-config/config.sub<br>> > <br>> > 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. <br>> > <br>> > Cheers<br>> > <br>> > Lester<br>> > <br>> > > Subject: Re: [CIG-MC] Installing CitcomS - Cygwin<br>> > > From: emheien@ucdavis.edu<br>> > > Date: Wed, 30 May 2012 10:28:15 -0700<br>> > > CC: CIG-MC@geodynamics.org<br>> > > To: lester_anderson1963@hotmail.com<br>> > > <br>> > > Hi Lester,<br>> > > <br>> > > 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.<br>> > > <br>> > > Let me know if you have any other problems,<br>> > > <br>> > > -Eric<br>> > > <br>> > > On May 28, 2012, at 6:55 AM, Lester Anderson wrote:<br>> > > <br>> > > > Hello,<br>> > > > <br>> > > > I am wondering if it is possible to install CitcomS under Cygwin?<br>> > > > <br>> > > > I have tried running the configure but it fails:<br>> > > > <br>> > > > andder@BAS-306SCAN-D1 /cygdrive/c/CitcomS/src/CitcomS-3.2.0<br>> > > > $ ./configure<br>> > > > ./configure: line 18: $'\r': command not found<br>> > > > ./configure: line 33: syntax error near unexpected token `newline'<br>> > > > '/configure: line 33: ` ;;<br>> > > > <br>> > > > andder@BAS-306SCAN-D1 /cygdrive/c/CitcomS/src/CitcomS-3.2.0<br>> > > > $ make<br>> > > > -bash: make: command not found<br>> > > > <br>> > > > Any ideas or guidance would be appreciated.<br>> > > > <br>> > > > Thanks<br>> > > > <br>> > > > Lester Anderson<br>> > > > _______________________________________________<br>> > > > CIG-MC mailing list<br>> > > > CIG-MC@geodynamics.org<br>> > > > http://geodynamics.org/cgi-bin/mailman/listinfo/cig-mc<br>> > > <br>> > <config.log><br>> <br></div>                                            </div></body>
</html>