Re: Configuration used to build the binary root

From: Fons Rademakers <Fons.Rademakers_at_cern.ch>
Date: Mon, 13 Mar 2006 23:01:10 +0100


Hi George,

  why do you build using sudo? Could you try:

cd
tar zxvf root_v......
cd root
export ROOTSYS=`pwd`
export DYLD_LIBRARY_PATH=$ROOTSYS/lib:$DYLD_LIBRARY_PATH export PATH=$ROOTSYS/bin:$PATH
./configure
make
make install

Cheers, Fons.

George Japaridze wrote:
> Hi Fons and everyone,
>
> In short (full description is in attached file), I fail at make, root
> runs still (partially), make install also fails and aftern moving
> compiled libPythia libraries in root/lib, root still refuses to load
> them. LibmathMore is another story, couldn't go that far yet, though
> definitely will need it.
>
> I would greately appreciate your help. I am attaching the file with the
> results of my "activity", hope everything is clear there. Help!
>
> Thanks in advance,
> George
>
> PS. Have not tried the binaries yet, I was working with the source file.
>
>
> ------------------------------------------------------------------------
>
> PowerBook
> OS 10.4.5, Processor 1GHz Power PC G4 (3.3)
> ___________________________________________
> GJ-Mac:~ japar$ gcc -v
> Using built-in specs.
> Target: powerpc-apple-darwin8
> Configured with: /private/var/tmp/gcc/gcc-5247.obj~4/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --build=powerpc-apple-darwin8 --host=powerpc-apple-darwin8 --target=powerpc-apple-darwin8
> Thread model: posix
> gcc version 4.0.1 (Apple Computer, Inc. build 5247)
> GJ-Mac:~ japar$
>
> What I did:
>
> 0. Uninstalled Fink. Then:
> _______________________________________________
>
> FROM the SOURCE:
>
> 1. Downloaded ROOT 5.10/00 complete source tree. Then:
>
> GJ-Mac:~ japar$ sudo tar -xzvf root_v5.10.00.source.tar.gz
>
> 2. As in the web page: set ROOTSYS, i.e.added line in my .bashrc:
>
> export ROOTSYS=/Users/japar/root
>
> 3. GJ-Mac:~ japar$ sudo ./configure macosx - OK (here and below means no errors reported)
>
> 4. GJ-Mac:~ japar$ sudo make
>
> with the output (the end of it):
> ++++++++++++++++++++++++++++++++++++++++++
>
> ==> lib/libProofx.dylib done
> g++ -O2 -pipe -W -Wall -Wno-long-double -Woverloaded-virtual -fsigned-char -fno-common -I/usr/X11R6/include -Iinclude -o rootx/src/rootx.o -c rootx/src/rootx.cxx
> g++ -O2 -pipe -W -Wall -Wno-long-double -Woverloaded-virtual -fsigned-char -fno-common -I/usr/X11R6/include -Iinclude -o rootx/src/rootxx.o -c rootx/src/rootxx.cxx
> g++ -O2 -bind_at_load -o bin/root rootx/src/rootx.o rootx/src/rootxx.o -L/usr/X11R6/lib -lXpm -L/usr/X11R6/lib -lX11
> Copying xrootd/src/xrootd/bin/xrootd executables ...
> Copying xrootd/src/xrootd/bin/olbd executables ...
> Copying xrootd/src/xrootd/bin/xrdcp executables ...
> Copying xrootd/src/xrootd/bin/xrdpwdadmin executables ...
> Copying xrootd/src/xrootd/bin/xrdgsiproxy executables ...
> g++ -O2 -pipe -W -Wall -Wno-long-double -Woverloaded-virtual -fsigned-char -fno-common -I/usr/X11R6/include -Iinclude -DR__KRB5 -DR__SSL -o rootd/src/rootd.o -c rootd/src/rootd.cxx
> g++ -O2 -pipe -W -Wall -Wno-long-double -Woverloaded-virtual -fsigned-char -fno-common -I/usr/X11R6/include -Iinclude -DR__KRB5 -DR__SSL -o rpdutils/src/daemon.o -c rpdutils/src/daemon.cxx
> g++ -O2 -pipe -W -Wall -Wno-long-double -Woverloaded-virtual -fsigned-char -fno-common -I/usr/X11R6/include -Iinclude -DR__KRB5 -DR__SSL -o rpdutils/src/error.o -c rpdutils/src/error.cxx
> g++ -O2 -pipe -W -Wall -Wno-long-double -Woverloaded-virtual -fsigned-char -fno-common -I/usr/X11R6/include -Iinclude -DR__KRB5 -DR__SSL -o rpdutils/src/net.o -c rpdutils/src/net.cxx
> g++ -O2 -pipe -W -Wall -Wno-long-double -Woverloaded-virtual -fsigned-char -fno-common -I/usr/X11R6/include -Iinclude -DR__KRB5 -DR__SSL -o rpdutils/src/netpar.o -c rpdutils/src/netpar.cxx
> g++ -O2 -bind_at_load -o bin/rootd rootd/src/rootd.o rpdutils/src/daemon.o rpdutils/src/error.o rpdutils/src/net.o rpdutils/src/netpar.o rpdutils/src/rpdutils.o rpdutils/src/ssh.o \
> auth/src/rsaaux.o auth/src/rsalib.o auth/src/rsafun.o clib/src/snprintf.o -lkrb5 -lk5crypto -lssl -lcrypto -lcom_err -lcrypto -lm -lpthread -ldl
> g++ -O2 -pipe -W -Wall -Wno-long-double -Woverloaded-virtual -fsigned-char -fno-common -I/usr/X11R6/include -Iinclude -DR__KRB5 -DR__SSL -o proofd/src/proofd.o -c proofd/src/proofd.cxx
> g++ -O2 -bind_at_load -o bin/proofd proofd/src/proofd.o rpdutils/src/daemon.o rpdutils/src/error.o rpdutils/src/net.o rpdutils/src/netpar.o rpdutils/src/rpdutils.o rpdutils/src/ssh.o \
> auth/src/rsaaux.o auth/src/rsalib.o auth/src/rsafun.o clib/src/snprintf.o -lkrb5 -lk5crypto -lssl -lcrypto -lcom_err -lcrypto -lm -lpthread -ldl
> g++ -O2 -bind_at_load -o bin/xproofd proofd/src/XProofProtUtils.o proofd/src/XrdProofConn.o proofd/src/XrdProofPhyConn.o proofd/src/XrdProofServProxy.o proofd/src/XrdProofdProtocol.o proofd/src/XrdProofdResponse.o xrootd/src/xrootd/lib/libXrd.a xrootd/src/xrootd/lib/libXrdClient.a xrootd/src/xrootd/lib/libXrdOuc.a xrootd/src/xrootd/lib/libXrdNet.a -lm -lpthread -ldl
> g++ -O2 -pipe -W -Wall -Wno-long-double -Woverloaded-virtual -fsigned-char -fno-common -I/usr/X11R6/include -Iinclude -o main/src/rmain.o -c main/src/rmain.cxx
> g++ -O2 -bind_at_load -o bin/root.exe main/src/rmain.o \
> -Llib -lCore -lCint -lHist -lGraf -lGraf3d -lGpad -lTree -lMatrix -lRint -lm -lpthread -ldl
> /usr/bin/ld: warning can't open dynamic library: /lib/libfreetype.dylib referenced from: lib/libGraf.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2)
> g++ -O2 -bind_at_load -o bin/rootn.exe main/src/rmain.o \
> -Llib -lNew -lCore -lCint -lHist -lGraf -lGraf3d -lGpad -lTree -lMatrix -lRint -lm -lpthread -ldl
> /usr/bin/ld: warning can't open dynamic library: /lib/libfreetype.dylib referenced from: lib/libGraf.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2)
> g++ -O2 -pipe -W -Wall -Wno-long-double -Woverloaded-virtual -fsigned-char -fno-common -I/usr/X11R6/include -Iinclude -o main/src/pmain.o -c main/src/pmain.cxx
> g++ -O2 -bind_at_load -o bin/proofserv main/src/pmain.o \
> -Llib -lCore -lCint -lHist -lGraf -lGraf3d -lGpad -lTree -lMatrix -lProof -lTreePlayer -lThread -lm -lpthread -ldl
> /usr/bin/ld: warning can't open dynamic library: /lib/libfreetype.dylib referenced from: lib/libGraf.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2)
> /usr/bin/ld: Undefined symbols:
> _FT_Done_Face referenced from libGraf expected to be defined in /lib/libfreetype.dylib
> _FT_Done_FreeType referenced from libGraf expected to be defined in /lib/libfreetype.dylib
> _FT_Done_Glyph referenced from libGraf expected to be defined in /lib/libfreetype.dylib
> _FT_Get_Char_Index referenced from libGraf expected to be defined in /lib/libfreetype.dylib
> _FT_Get_Glyph referenced from libGraf expected to be defined in /lib/libfreetype.dylib
> _FT_Get_Kerning referenced from libGraf expected to be defined in /lib/libfreetype.dylib
> _FT_Glyph_Get_CBox referenced from libGraf expected to be defined in /lib/libfreetype.dylib
> _FT_Glyph_Transform referenced from libGraf expected to be defined in /lib/libfreetype.dylib
> _FT_Init_FreeType referenced from libGraf expected to be defined in /lib/libfreetype.dylib
> _FT_Library_Version referenced from libGraf expected to be defined in /lib/libfreetype.dylib
> _FT_Load_Glyph referenced from libGraf expected to be defined in /lib/libfreetype.dylib
> _FT_New_Face referenced from libGraf expected to be defined in /lib/libfreetype.dylib
> _FT_Set_Char_Size referenced from libGraf expected to be defined in /lib/libfreetype.dylib
> _FT_Set_Charmap referenced from libGraf expected to be defined in /lib/libfreetype.dylib
> _FT_Vector_Transform referenced from libGraf expected to be defined in /lib/libfreetype.dylib
> collect2: ld returned 1 exit status
> make: *** [bin/proofserv] Error 1
> GJ-Mac:~/root japar$
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
> 5. Still went ahead and did
>
> GJ-Mac:~/root japar$ sudo make cintdlls - OK
>
> 6 . Still ahead and did
>
> GJ-Mac:~/root japar$ sudo make install
> with the output (whole output):
>
> ++++++++++++++++++++++++
> g++ -O2 -bind_at_load -o bin/proofserv main/src/pmain.o \
> -Llib -lCore -lCint -lHist -lGraf -lGraf3d -lGpad -lTree -lMatrix -lProof -lTreePlayer -lThread -lm -lpthread -ldl
> /usr/bin/ld: warning can't open dynamic library: /lib/libfreetype.dylib referenced from: lib/libGraf.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2)
> /usr/bin/ld: Undefined symbols:
> _FT_Done_Face referenced from libGraf expected to be defined in /lib/libfreetype.dylib
> _FT_Done_FreeType referenced from libGraf expected to be defined in /lib/libfreetype.dylib
> _FT_Done_Glyph referenced from libGraf expected to be defined in /lib/libfreetype.dylib
> _FT_Get_Char_Index referenced from libGraf expected to be defined in /lib/libfreetype.dylib
> _FT_Get_Glyph referenced from libGraf expected to be defined in /lib/libfreetype.dylib
> _FT_Get_Kerning referenced from libGraf expected to be defined in /lib/libfreetype.dylib
> _FT_Glyph_Get_CBox referenced from libGraf expected to be defined in /lib/libfreetype.dylib
> _FT_Glyph_Transform referenced from libGraf expected to be defined in /lib/libfreetype.dylib
> _FT_Init_FreeType referenced from libGraf expected to be defined in /lib/libfreetype.dylib
> _FT_Library_Version referenced from libGraf expected to be defined in /lib/libfreetype.dylib
> _FT_Load_Glyph referenced from libGraf expected to be defined in /lib/libfreetype.dylib
> _FT_New_Face referenced from libGraf expected to be defined in /lib/libfreetype.dylib
> _FT_Set_Char_Size referenced from libGraf expected to be defined in /lib/libfreetype.dylib
> _FT_Set_Charmap referenced from libGraf expected to be defined in /lib/libfreetype.dylib
> _FT_Vector_Transform referenced from libGraf expected to be defined in /lib/libfreetype.dylib
> collect2: ld returned 1 exit status
> make: *** [bin/proofserv] Error 1
> GJ-Mac:~/root japar$
> ++++++++++++++++++++++++++++++
>
> 7. Though thought that installation failed, added lines
>
> export PATH=$ROOTSYS/bin:$PATH
> export LD_LIBRARY_PATH=$ROOTSYS/lib:$LD_LIBRARY_PATH
> export DYLD_LIBRARY_PATH=$ROOTSYS/lib:$DYLD_LIBRARY_PATH
>
> to my .bashrc, sourced .bashrc and
>
> root started with the error message (have lines
>
> gSystem->Load("libPythia6");
> gSystem->Load("libEG");
> gSystem->Load("libEGPythia6");
> gSystem->Load("libMathMore");
>
> in my rootlogon.C):
>
> +++++++++++++++++++++++++++++++++++
> Error in <TUnixSystem::DynamicPathName>: libPythia6[.so | .sl | .dl | .a | .dll] does not exist in .:/Users/japar/root/lib:/Users/japar/root/lib:/Users/japar/root/lib::/Users/japar/root/lib:
> dlopen error: dlopen(/Users/japar/root/lib/libEG.so, 9): Symbol not found: _hepevt_
> Referenced from: /Users/japar/root/lib/libEG.so
> Expected in: dynamic lookup
>
> Load Error: Failed to load Dynamic link library /Users/japar/root/lib/libEG.so
> +++++++++++++++++++++++++++++++++
>
> So, I downloaded libpythia tar.gz file and compiled libraries libPythia6.a, libPythia6.so, libPythia6.dylib, moved them to root/lib
>
> and root replied
>
> ++++++++++++++++++++++++++++++++
> GJ-Mac:~ japar$ root
> Error in <TCint::LoadLibraryMap>: library map empty, no system.rootmap file
> found. ROOT not properly installed (run "make install").
> *******************************************
> * *
> * W E L C O M E to R O O T *
> * *
> * Version 5.10/00 1 March 2006 *
> * *
> * You are welcome to visit our Web site *
> * http://root.cern.ch *
> * *
> *******************************************
>
> FreeType Engine v2.1.9 used to render TrueType fonts.
> Compiled on 13 March 2006 for macosx with thread support.
>
> CINT/ROOT C/C++ Interpreter version 5.16.8, February 9, 2006
> Type ? for help. Commands must be C++ statements.
> Enclose multiple statements between { }.
> Error in <TUnixSystem::DynamicPathName>: libEGPythia6[.so | .sl | .dl | .a | .dll] does not exist in
> .:/Users/japar/root/lib:/Users/japar/root/lib:/Users/japar/root/lib::/Users/japar/root/lib:
> Error in <TUnixSystem::DynamicPathName>: libMathMore[.so | .sl | .dl | .a | .dll] does not exist in
> .:/Users/japar/root/lib:/Users/japar/root/lib:/Users/japar/root/lib::/Users/japar/root/lib:
>
> Welcome to the Macintosh version of Root
>
> root [0]
> +++++++++++++++++++++++++++++++
>
> On make install output is
>
> +++++++++++++++++++++++++++++++
> GJ-Mac:~ japar$ cd root
> GJ-Mac:~/root japar$ make install
> g++ -O2 -bind_at_load -o bin/proofserv main/src/pmain.o \
> -Llib -lCore -lCint -lHist -lGraf -lGraf3d -lGpad -lTree -lMatrix -lProof -lTreePlayer -lThread -lm -lpthread -ldl
> /usr/bin/ld: warning can't open dynamic library: /lib/libfreetype.dylib referenced from: lib/libGraf.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2)
> /usr/bin/ld: Undefined symbols:
> _FT_Done_Face referenced from libGraf expected to be defined in /lib/libfreetype.dylib
> _FT_Done_FreeType referenced from libGraf expected to be defined in /lib/libfreetype.dylib
> _FT_Done_Glyph referenced from libGraf expected to be defined in /lib/libfreetype.dylib
> _FT_Get_Char_Index referenced from libGraf expected to be defined in /lib/libfreetype.dylib
> _FT_Get_Glyph referenced from libGraf expected to be defined in /lib/libfreetype.dylib
> _FT_Get_Kerning referenced from libGraf expected to be defined in /lib/libfreetype.dylib
> _FT_Glyph_Get_CBox referenced from libGraf expected to be defined in /lib/libfreetype.dylib
> _FT_Glyph_Transform referenced from libGraf expected to be defined in /lib/libfreetype.dylib
> _FT_Init_FreeType referenced from libGraf expected to be defined in /lib/libfreetype.dylib
> _FT_Library_Version referenced from libGraf expected to be defined in /lib/libfreetype.dylib
> _FT_Load_Glyph referenced from libGraf expected to be defined in /lib/libfreetype.dylib
> _FT_New_Face referenced from libGraf expected to be defined in /lib/libfreetype.dylib
> _FT_Set_Char_Size referenced from libGraf expected to be defined in /lib/libfreetype.dylib
> _FT_Set_Charmap referenced from libGraf expected to be defined in /lib/libfreetype.dylib
> _FT_Vector_Transform referenced from libGraf expected to be defined in /lib/libfreetype.dylib
> collect2: ld returned 1 exit status
> make: *** [bin/proofserv] Error 1
> GJ-Mac:~/root japar$
> ++++++++++++++++++++++++++++++++++
>
> and when looking for libPythia, mac tells me that it's in root/lib:
>
> +++++++++++++++++++++++++
> GJ-Mac:~ japar$ cd root/lib;ls libPyth*
> libPythia6.a libPythia6.dylib libPythia6.so
> +++++++++++++++++++++++++
>
> I have no LibMathMore;
> ++++++++++++++++++++++
> GJ-Mac:~/root/lib japar$ ls libMathMore*
> ls: libMathMore*: No such file or directory
> GJ-Mac:~/root/lib japar$
> ++++++++++++++++++++++++++++++
>
> I stop here. Don't know what to do...
>
>
> ------------------------------------------------------------------------
>
>
> On Mar 13, 2006, at 11:23 AM, Fons Rademakers wrote:
>

>> Please let me know what goes wrong. Currently I have a G5, an iMac 
>> Intel duo core and a MacBook Pro duo core all running 10.4 and there 
>> I've no problems installing ROOT doing:
>>
>> ./configure
>> make
>>
>> On this platform, Tiger, fink is not needed to install ROOT.
>>
>>
>> Cheers, Fons.
>>
>>
>>
>> George Japaridze wrote:
>>> Hi,
>>> I would like ask the same.
>>> When I try to install ROOT (from binaries/source), it usually fails 
>>> on my Mac (OS 10.4). So, I have to use Fink (unstable version) to 
>>> install ROOT 5, which installs fine.
>>> It would be nice to have some (extended) tips/handouts for 
>>> MacROOTers, say, on ROOT web page.
>>> Thanks,
>>> George
>>> On Mar 13, 2006, at 9:15 AM, Francesco Perfetto wrote:
>>>> Hi All,
>>>>
>>>> Would be possible to add in the web page of ROOT, dedicated to 
>>>> downloads
>>>> of binary file (link in the Note 1) also the configuration used for mac
>>>> os x system ?
>>>>
>>>> Thanks
>>>> Francesco.
>>>>
>>> ******************************************************************************************* 
>>> Dr. George Japaridze                                    CTSPS, Clark 
>>> Atlanta University
>>> japar_at_ctsps.cau.edu                                    404 880 6420 
>>> Office
>>> http://ctsps.cau.edu/george/index.html           404 226 3847 Cell
>>
>> --Org:    CERN, European Laboratory for Particle Physics.
>> Mail:   1211 Geneve 23, Switzerland
>> E-Mail: Fons.Rademakers_at_cern.ch              Phone: +41 22 7679248
>> WWW:    http://fons.rademakers.org           Fax:   +41 22 7669640

>
>
>
>
>
>
>
>
>
>
>
> *******************************************************************************************
>
> Dr. George Japaridze CTSPS, Clark
> Atlanta University
>
> japar_at_ctsps.cau.edu 404 880 6420 Office
> http://ctsps.cau.edu/george/index.html 404 226 3847 Cell
>
>
>
>
>
-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers_at_cern.ch              Phone: +41 22 7679248
WWW:    http://fons.rademakers.org           Fax:   +41 22 7669640
Received on Mon Mar 13 2006 - 23:01:29 MET

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:31:57 MET