On 03/22/2013 12:40 AM, Ian Warren wrote:
Hello,

I am trying to install gsl-1.15 on mac OS 10.8.3

I followed the custom configure and install. This included:

$./configure --disable-shared --disable-dependency-tracking

followed by:

$sudo make install

I got the following error message which produced the following, ending in an 
error message. :

Making install in gsl
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
Making install in utils
/bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..     
-g -O2 -c -o placeholder.lo placeholder.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -c placeholder.c -o 
placeholder.o
/bin/sh ../libtool --tag=CC   --mode=link gcc  -g -O2   -o libutils.la  
placeholder.lo  -lm
libtool: link: ar cru .libs/libutils.a  placeholder.o
libtool: link: ranlib .libs/libutils.a
libtool: link: ( cd ".libs"&&  rm -f "libutils.la"&&  ln -s "../libutils.la" 
"libutils.la" )
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
Making install in sys
/bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I..  
  -g -O2 -c -o minmax.lo minmax.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I.. -g -O2 -c minmax.c -o 
minmax.o
minmax.c:26:28: error: gsl/gsl_minmax.h: No such file or directory
make[1]: *** [minmax.lo] Error 1
make: *** [install-recursive] Error 1

I also ran "make check 2>&1" and got a similar message.

I am not sure how best to proceed with this. I have previously managed to 
successfully install in Mac OS10.5.

Should I maybe use an earlier version? I cannot remember which version of gsl I 
managed to install last time.

Thank you in advance for any help that you can provide,


Hi,

The problem is that 'gsl/Makefile.am' defines some targets ('all' and 'clean') that normally is created by Automake and thereby mess up the dependencies crafted by Automake, so there is no dependency that clean and install should depend on all.

The solution is to use *-local targets as documented by Automake. Please find a patch attached.

Cheers,
Peter

--- Makefile.am 2013-03-22 09:48:59.358824603 +1000
+++ Makefile.am.new     2013-03-22 09:48:43.471826950 +1000
@@ -10,8 +10,6 @@
        rm -f gsl*.h
 
 
-all: all-am header-links
+all-local: header-links
 
-clean: clean-am remove-links
-distclean: distclean-am remove-links
-       -rm -f Makefile
+clean-local: remove-links

Reply via email to