[gmx-users] bug in 'make install' triggered by Solaris 8/GCC 3.1

Erik Lindahl lindahl at stanford.edu
Wed Jun 26 19:42:09 CEST 2002


Nathan I. Sharfi wrote:
> After getting the fftw pkgadd-style package from www.fftw.org, I installed
> gromacs with ./configure CC=gcc (went fine, it seemed) and then make (no
> problems there, either). However, for the 'make install' part, I got this
> odd snag after it had been doing install-related things:
> 
> 
> # ...
> /bin/sh ../../config/mkinstalldirs /usr/local/gromacs/share/template
>  /usr/local/bin/install -c -m 644 template.c
> /usr/local/gromacs/share/template/template.c
>  /usr/local/bin/install -c -m 644 README
> /usr/local/gromacs/share/template/README
>  /usr/local/bin/install -c -m 644 Makefile.sparc-sun-solaris2.8
> /usr/local/gromacs/share/template/Makefile.sparc-sun-solaris2.8
> make  install-data-hook
> make[4]: Entering directory
> `/dist/jumpstart/Installables/gromacs-3.1.4/share/template'
> (cd /usr/local/gromacs/share/template && ! (test -e Makefile) && ln -s
> Makefile.sparc-sun-solaris2.8 Makefile ; exit 0)
> /bin/sh: syntax error at line 1: `!' unexpected
> make[4]: *** [install-data-hook] Error 2
> make[4]: Leaving directory
> `/dist/jumpstart/Installables/gromacs-3.1.4/share/template'
> make[3]: *** [install-data-am] Error 2
> make[3]: Leaving directory
> `/dist/jumpstart/Installables/gromacs-3.1.4/share/template'
> make[2]: *** [install-am] Error 2
> make[2]: Leaving directory
> `/dist/jumpstart/Installables/gromacs-3.1.4/share/template'
> make[1]: *** [install-recursive] Error 1
> make[1]: Leaving directory
> `/dist/jumpstart/Installables/gromacs-3.1.4/share'
> make: *** [install-recursive] Error 1
> root at jacinto: /dist/jumpstart/Installables/gromacs-3.1.4>
> 
> I'm not sure what caused the error, nor what other files I could provide to
> shed some light on the subject. What do I do now?

Hi,

It seems as if the sun version of /bin/sh has problems with the logical 
expression. I though we fixed all those instances, but apparently 
there's one left :-)

What the line in the Makefile does is this:

Cd to /usr/local/gromacs/share/template, and if Makefile doesn't exist,
make it a link from Makefile.sparc-sun-solaris2.8.


Perhaps you could help us fix the problem permanently by testing if
it helps to remove the space between ! and (, or rewriting the 
conditional in some other way...

Cheers,

Erik





More information about the gromacs.org_gmx-users mailing list