Hi Remi,

So, I finally got ROOT 5.32 working for me on 10.7. This is what I had to do (I 
tried a few other combinations, but this was the first setup that let me run my 
analysis code both locally and on our PROOF cluster.):

1. Created some soft links under /sw/lib to the libraries found under 
/usr/X11R6/lib. This made ROOT's configure script stop complaining.

2. I had to modify line 143 of the generated config/Makefile.config file. For 
some reason the configuration script creates this line:

FTGLLIBDIR := /sw/lib

This has to be changed to:

FTGLLIBDIR := -L/sw/lib

3. I compiled XRootD 3.1.0 (downloaded it from the XRootD website) using Fink's 
GCC 4.6. I used these options for doing so:

cmake /path/to/the/xrootd/source -DCMAKE_INSTALL_PREFIX=/usr/local/xrootd/3.1.0 
-DCMAKE_C_COMPILER=gcc-4 -DCMAKE_CXX_COMPILER=g++-4
make
sudo make install

4. I then configured ROOT with these options:

./configure --with-fftw3-incdir=/sw/include --with-fftw3-libdir=/sw/lib 
--with-gviz-incdir=/sw/include --with-gviz-libdir=/sw/lib 
--with-gsl-incdir=/sw/include --with-gsl-libdir=/sw/lib 
--with-mysql-incdir=/sw/include/mysql --with-mysql-libdir=/sw/lib/mysql 
--with-xrootd=/usr/local/xrootd/3.1.0 --disable-afs --disable-builtin-freetype 
--disable-builtin-glew --disable-builtin-lzma --disable-builtin-pcre 
--disable-builtin-zlib --disable-builtin_ftgl --enable-gdml --enable-minuit2 
--enable-roofit --enable-ruby --enable-soversion --enable-table --enable-unuran 
--with-cc=gcc-4 --with-cxx=g++-4 --with-f77=gfortran --with-ld=g++-4

3. Installed ROOT (as root) with:

export ROOTSYS=/usr/local/root/v5-32-00
make install

Now, of course for the Fink installation you'd compile ROOT using the specific 
installation locations that you have in your current root5 setup. You'd also 
need to patch the configuration script of ROOT 5.32 not to make the mistakes 
that it's doing now. (I'll also complain to the ROOT developers next week if 
you don't do it until then.)

Also, I believe that if you'd compile both XRootD and ROOT using Fink's GCC 
4.6, they would behave much better than with XCode's GCC. (Using XCode's GCC 
I'm unable to connect to our cluster's XRootD service, and I've heard about 
similar experiences from other people as well.)

Just to be clear: Thanks for adapting these packages to Fink!

Cheers,
              Attila

On Jan 3, 2012, at 7:18 PM, Attila Krasznahorkay wrote:

> Dear Remi,
> 
> I was trying to install ROOT 5.32 on 10.7, as using Fink for this seemed a 
> bit easier than compiling XRootD and ROOT by hand. (In the past few years I 
> always compiled ROOT by hand, as Fink was always trailing in version numbers 
> by a lot.)
> 
> Unfortunately the configuration script of ROOT fails like this (sorry for the 
> long log...):
> 
> gzip -dc /sw/src/root_v5.32.00.source.tar.gz | /sw/bin/tar -xf -  
> --no-same-owner --no-same-permissions 
> [ -r /sw/fink/dists/stable/main/finkinfo/sci/root5.patch ]
> patch -p1 < /sw/fink/dists/stable/main/finkinfo/sci/root5.patch
> patching file configure
> patching file cint/configure
> patching file cint/ROOT/cintdlls.mk
> patching file build/unix/makelib.sh
> patching file config/Makefile.macosx64
> patching file etc/Makefile.arch
> /var/tmp/tmp.1.X1ETA7
> #!/bin/sh -ev
> ./configure macosx64 --prefix=/sw --etcdir=/sw/etc/root \
> --docdir=/sw/share/doc/root5 \
> --libdir=/sw/lib/root \
> --testdir=/sw/share/root/test \
> --tutdir=/sw/share/root/tutorials \
> --with-fftw3-incdir=/sw/include --with-fftw3-libdir=/sw/lib \
> --with-gviz-incdir=/sw/include --with-gviz-libdir=/sw/lib \
> --with-gsl-incdir=/sw/include --with-gsl-libdir=/sw/lib \
> --with-mysql-incdir=/sw/include/mysql --with-mysql-libdir=/sw/lib/mysql \
> --with-xml-incdir=/sw/include/libxml2 --with-xml-libdir=/sw/lib \
> --with-xrootd=/sw \
> --disable-afs \
> --disable-builtin-freetype \
> --disable-builtin-glew \
> --disable-builtin-lzma \
> --disable-builtin-pcre \
> --disable-builtin-zlib \
> --disable-builtin_ftgl \
> --enable-gdml \
> --enable-minuit2 \
> --enable-roofit \
> --enable-ruby \
> --enable-soversion \
> --enable-table \
> --enable-unuran --with-f77=' '
> Checking for source directory ... /sw/src/fink.build/root5-5.32.00-11/root
> Configuring for macosx64
> Checking for GNU Make version >= 3.80 ... ok
> Checking for C compiler ... clang
> Checking for C++ compiler ... clang++
> Checking for linker (LD) ... clang++
> Checking for F77 compiler ... no F77 compiler   found
> Checking for libX11 ... /usr/X11R6/lib
> Checking for X11/Xlib.h ... /usr/include
> Checking for X11/xpm.h ... /usr/include
> Checking for X11/Xft/Xft.h ... /sw/include
> Checking for X11/extensions/shape.h ... /usr/include
> Checking for libXpm ... /usr/X11R6/lib
> Checking for libXft ... /sw/lib
> configure: libXft not in same directory as libX11
> For consistency they should be in the same directory
> ### execution of /var/tmp/tmp.1.X1ETA7 failed, exit code 1
> 
> "fink install root5" at least installed xrootd, so I should be able to 
> install ROOT 5.32 by hand now, but it would be a nice feature if I could go 
> back to using the Fink version of ROOT.
> 
> But to do this, I should give another warning: I haven't had much success 
> with XCode's compilers and ROOT on Snow Leopard. With ROOT 5.30.05 for 
> instance I got a fully functional installation by specifying these options to 
> ROOT's configure script:
> 
> --enable-table --enable-roofit --enable-builtin-pcre --with-cc=gcc-4 
> --with-cxx=g++-4 --with-f77=gfortran --with-ld=g++-4
> 
> So as you can see, I chose to use Fink's GCC 4.6 for the compilation instead 
> of Apple's. (One of my analysis codes uses exceptions extensively, and for 
> some reason this code always crashed when I used Apple's compiler. With 
> Fink's GCC it has no problems.)
> 
> All in all, you should strongly consider using Fink's GCC for the compilation 
> as well when you're updating the root5 package.
> 
> Cheers,
>                Attila
> 
> P.S. My system is like this:
> 
> Package manager version: 0.31.5
> Distribution version: selfupdate-rsync Tue Jan  3 17:45:09 2012, 10.7, x86_64
> Trees: local/main stable/main
> Xcode: 4.1
> 
> -----------------------------------------------------
> Attila Krasznahorkay  attila.krasznahor...@cern.ch
> New York University      Phone: +41-22-76 77368
> The ATLAS Collaboration     Room: 32-S-A19
> -----------------------------------------------------
> 
> 
> 
> ------------------------------------------------------------------------------
> Write once. Port to many.
> Get the SDK and tools to simplify cross-platform app development. Create 
> new or port existing apps to sell to consumers worldwide. Explore the 
> Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
> http://p.sf.net/sfu/intel-appdev
> _______________________________________________
> Fink-users mailing list
> Fink-users@lists.sourceforge.net
> List archive:
> http://news.gmane.org/gmane.os.macosx.fink.user
> Subscription management:
> https://lists.sourceforge.net/lists/listinfo/fink-users

-----------------------------------------------------
 Attila Krasznahorkay  attila.krasznahor...@cern.ch
 New York University      Phone: +41-22-76 77368
 The ATLAS Collaboration     Room: 32-S-A19
-----------------------------------------------------



------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Fink-users mailing list
Fink-users@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to