RE: problems compiling brat-2.4.1

From: jnorris (jnorris@ku.edu)
Date: Sat Jun 22 2002 - 11:26:52 EDT

  • Next message: jnorris: "RE: problems compiling brat-2.4.1"

    Flemming et al,
    
    > ----------
    > From: 	Flemming Videbaek
    > Reply To: 	brahms-dev-l@bnl.gov
    > Sent: 	Friday, June 21, 2002 1:56 PM
    > To: 	brahms-dev-l@bnl.gov
    > Subject: 	Re: problems compiling brat-2.0.12.tar.gz
    > 
    > James,
    > 
    > I do not think you will get much help with version 2.0.12 we are up to
    > 2.3.17 for pro and 2.4.1 for new.
    > Too I think the default root is 3.03/04 in /opt/brahms/new and pro.
    > 
    OK, I'm fairly modern now, though as always, a _little_ bit behind the times
    - I have ROOT 3.03/06 and BRAT 2.4.1.
    
    I'm installing as su, so what I've done is:
    
    prompt> aclocal -I config ; \
            automake -a ; \
            autoconf 
            ./configure --prefix=/usr/local \
                        --libdir=/usr/local/lib \
                        --etcdir=/usr/local/etc/root \
                        --enable-rpath
    and I'm told that --etcdir=/usr/local/etc/root is an invalid option and
    that I should do a ./configure --help.  Unfortunately, the only reference
    'etc' is:
    
      --sysconfdir=DIR  read-only single-machine data in DIR [PREFIX/etc]"
    
    So I tried:
    
    prompt> ./configure --prefix=/usr/local \
                        --libdir=/usr/local/lib \
                        --sysconfdir=/usr/local \
                        --enable-rpath
    
    and 
    
    prompt> ./configure --prefix=/usr/local \
                        --libdir=/usr/local/lib \
                        --sysconfdir \
                        --enable-rpath
    
    and finally simply:
    
    prompt> ./configure --prefix=/usr/local \
                        --libdir=/usr/local/lib \
                        --enable-rpath
    
    None of these three lead to errors, so I shoot for the moon with:
    
    prompt> make
    
    And get shot down myself with the following error each time:
    
    	 Entering directory `/home/jnorris/brahms/brat/db/apps'
    	/bin/sh ../../libtool --mode=link c++  -g -O2  -o brdbcalib
    CreateCalib.o
    	DbUtils.o DbUtilsDict.o ../../data/abc/libBratDataAbc.la
    
    	  ../../managers/libBratManager.la
    	../../util/libBratUtil.la
    	../../db/libBratDb.la 
    	c++ -g -O2 -o .libs/brdbcalib CreateCalib.o DbUtils.o DbUtilsDict.o
    	../../data/abc/.libs/libBratDataAbc.so
    -L/home/jnorris/brahms/root/lib
    	-lCore -lCint -lm -ldl ../../managers/.libs/libBratManager.so -lCore
    	-lCint -lm -ldl ../../util/.libs/libBratUtil.so -lCore -lCint -lHist
    	-lGraf -lMatrix -lm -ldl ../../db/.libs/libBratDb.so -lMySQL -lm
    -ldl
    	-Wl,--rpath -Wl,/home/jnorris/lib -Wl,--rpath -Wl,/usr/local/lib
    	-Wl,--rpath -Wl,/home/jnorris/brahms/root/lib
    	/usr/bin/ld: cannot find -lMySQL
    	collect2: ld returned 1 exit status
    	make[2]: *** [brdbcalib] Error 1
    	make[2]: Leaving directory `/home/jnorris/brahms/brat/db/apps'
    	make[1]: *** [all-recursive] Error 1
    	make[1]: Leaving directory `/home/jnorris/brahms/brat/db'
    	make: *** [all-recursive] Error 1
    
    Now I see a /home/jnorris/root/mysql, but cannot find a *MySQL* fiel or
    directory anywhere on my machine, and I don't see a way to set a path in
    --help.  I have gone to root.cern.ch, and they mention:
    
    	#export MYSQL=              # must contain include/ lib/ 
    
    under the section about "Installing optional add-on libraries".  But since
    root compiled without complaint, I don't know what to do.
    
    Any help would be appreciated. 
    
    Have a care,
    James Norris
    
    --------------------------------------------------------------------------
    University of Kansas                                email:  jnorris@ku.edu
    Dept of Physics & Astronomy                            Phone: 785-864-4889
    Malott Hall Rm#B008          Lawrence KS 66045           FAX: 785-864-5262
    Home Address: 810 Ash St      Wamego KS 66547     Home Phone: 785-456-7059
    --------------------------------------------------------------------------
             | WWW Homepage:  http://www.people.ku.edu/~jnorris/ |
    --------------------------------------------------------------------------
     | Perhaps we are the first to talk and think and build and aspire, but |
      | we may not be the last. Others may follow us in this adventure... |
      | We owe it to that possible future to let their potential survive. |
      ---------------------------| David Brin |----------------------------
    



    This archive was generated by hypermail 2b30 : Sat Jun 22 2002 - 11:27:36 EDT