Install problem v 5.27/04 on macosx 10.6.4 (64bits)

Hi,

i am trying to install ROOT version 5.27/04 on a mac platform running osx 10.6.4 with the following versions of compilers:

Spyros$ g++ -v
Using built-in specs.
Target: i686-apple-darwin10
Configured with: /var/tmp/gcc/gcc-5664~38/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/[1][^.-]*/s//-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10 --target=i686-apple-darwin10 --with-gxx-include-dir=/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5664)
Spyros-MacBook-Pro:root Spyros$

Spyros$ gfortran -v
Using built-in specs.
Target: i686-apple-darwin10
Configured with: /Builds/apple/gcc-5646-gf/build/obj/src/configure --disable-checking --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++,fortran --program-transform-name=/[2][^.-]*/s//-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --with-gxx-include-dir=/include/c++/4.2.1 --program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10 --target=i686-apple-darwin10
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5646)

Spyros$ g77 -v
Reading specs from /usr/local/lib/gcc/i686-apple-darwin8.8.1/3.4.0/specs
Configured with: …/gcc-3.4.0/configure --enable-languages=f77
Thread model: posix
gcc version 3.4.0

I have downloaded the source files and followed the instructions for “installing from source”. I did:

cd /
tar zxvf root_v5.27.04.source.tar.gz
cd root
./configure macosx64 --enable-roofit
make

I get the following error:
i686-apple-darwin10-g+±4.2.1: libgfortran.dylib: No such file or directory
make: *** [lib/libminicern.so] Error 1

Is there something that i should change in the makefile? Any help would be grately appreciated,

Spyros Argyropoulos


  1. cg ↩︎

  2. cg ↩︎

Hi,

I’ve got it only to work with gfortran coming from Fink. It is the gfortran based on gcc 4.4.4 that also comes with Fink. This works fine on 10.6 with the stock gcc from Apple.

Cheers, Fons.

Dear Fons,

Did you ever try to download gfortran from r.research.att.com/tools/:

  • gfortran-42-5646.pkg (for Xcode 3.2 and 3.2.1) or gfortran-42-5659.pkg (for Xcode 3.2.2)
  • libgfortran-4.2.4-5646.tar.gz (needed for dylib)

This has worked for me on Mac OS X 10.6.3 and Xcode 3.2.2 for both 32bit and 64bit and has the advantage that you do not need to install fink!

Regards
Christian

Hi Christian,

no I’ve not. Does it work for you? If so than that would be a good alternative to the Fink version and I will add it to the install from source and pre-requisite page.

Cheers, Fons.

Dear Fons,

Yes, it does work for me on both Leopard and Snow Leopard.
On both machines I do not have fink, which I had installed long time ago on my old Tiger machine.
Although I have compiled ROOT for 32bit and for 64bit, I am currently only using the 64bit version on my Macs.

Best regards
Christian

As far as i know there is no standalone gfortran compiler that you can download from Fink. In any case the solution provided by Christian works fine for me.

I tested it on osx 10.6.4 with Xcode 3.2.3, gfortran-42-5659.pkg and libgfortran-4.2.4-5646.tar.gz (all 64bit).

I configured root with
./configure macosx64 --enable-roofit

Thanks for the help,
Spyros