From: Bernard Li <be...@va...> - 2010-12-14 22:29:36
|
Re-sending to ganglia-developers. On Tue, Dec 14, 2010 at 2:22 PM, Muhammad Ahmad Chaudary <muh...@gm...> wrote: > I am giving the Path with with --with-libapr to configure > > I installed libapr in the floowing folder > > /nethome/mchaudary3/gInstall/libapr > > The contents of this folder are : > bin include lib > > Bin has the following > apr-1-config apr-config > > Lib has th e following > apr.exp libapr-1.la libapr-1.so.0 pkgconfig > libapr-1.a libapr-1.so libapr-1.so.0.3.9 > > include has the following > apr-1 apr_getopt.h apr_portable.h apr_thread_mutex.h > apr_allocator.h apr_global_mutex.h apr_proc_mutex.h apr_thread_proc.h > apr_atomic.h apr.h apr_random.h apr_thread_rwlock.h > apr_dso.h apr_hash.h apr_ring.h apr_time.h > apr_env.h apr_inherit.h apr_shm.h apr_user.h > apr_errno.h apr_lib.h apr_signal.h apr_version.h > apr_file_info.h apr_mmap.h apr_strings.h apr_want.h > apr_file_io.h apr_network_io.h apr_support.h > apr_fnmatch.h apr_poll.h apr_tables.h > apr_general.h apr_pools.h apr_thread_cond.h > > I even put the path of the libapr/bin folder in the PATH environment > variable, but that has no effect. > > This is in the congure.log file > configure:19435: checking for apr_socket_send in -lapr-1 > configure:19465: gcc -o conftest -g -O2 > -I/nethome/mchaudary3/gInstall/rrdtool/include > -I/nethome/mchaudary3/gInstall/libapr/include > -L/nethome/mchaudary3/gInstall/rrdtool/lib > -L/nethome/mchaudary3/gInstall/libapr/lib conftest.c -lapr-1 -lpthread >&5 > /usr/bin/ld: skipping incompatible > /nethome/mchaudary3/gInstall/libapr/lib/libapr-1.so when searching for > -lapr-1 > /usr/bin/ld: skipping incompatible > /nethome/mchaudary3/gInstall/libapr/lib/libapr-1.a when searching for > -lapr-1 > /usr/bin/ld: cannot find -lapr-1 > collect2: ld returned 1 exit status > configure:19471: $? = 1 > configure: failed program was: > > > These are the contents of the apr-1.pc file in pkgconfig > prefix=/nethome/mchaudary3/gInstall/libapr > exec_prefix=${prefix} > libdir=${exec_prefix}/lib > APR_MAJOR_VERSION=1 > includedir=${prefix}/include/apr-${APR_MAJOR_VERSION} > > Name: APR > Description: The Apache Portable Runtime library > Version: 1.3.9 > Libs: -L${libdir} -lapr-${APR_MAJOR_VERSION} -luuid -lrt -lcrypt -lpthread > -ldl > Cflags: -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g -O2 > -pthread -I${includedir} > > > Again this is my ./configure statement > > ./configure --prefix=/nethome/mchaudary3/gInstall/ganglia --with-gmetad > --with-librrd=/nethome/mchaudary3/gInstall/rrdtool > --with-libconfuse=/nethome/mchaudary3/gInstall/libconfuse > --with-libexpat=/nethome/mchaudary3/gInstall/libexpat > --with-libapr=/nethome/mchaudary3/gInstall/libapr > > > So im not really sure whats going on. The make install of libapr didnt give > me any error so that should also not be a reason. I also installed apr-util > but then im not giving its path anywhere so i guess thats not even needed. > > Thanks > Ahmad > > On Tue, Dec 14, 2010 at 3:40 PM, Bernard Li <be...@va...> wrote: >> >> Hi Ahmad: >> >> According to ./configure: >> >> --with-libapr=PATH Specify location for libapr-1 or full path >> to apr-1-config >> >> Have you tried specifying the fullpath to apr-1-config instead? What >> version of apr did you install? >> >> Cheers, >> >> Bernard >> >> On Mon, Dec 13, 2010 at 8:00 PM, Muhammad Ahmad Chaudary >> <muh...@gm...> wrote: >> > Hi, >> > >> > I have compiled ganglia without root access before on multiple machines >> > and >> > this by manually compiling and installing all the dependencies for >> > ganglia. >> > >> > However this time i am getting an error that i cannot explain. >> > >> > When i run configure for ganglia using the following >> > >> > ./configure --prefix=/nethome/mchaudary3/gInstall/ganglia --with-gmetad >> > --with-librrd=/nethome/mchaudary3/gInstall/rrdtool >> > --with-libconfuse=/nethome/mchaudary3/gInstall/libconfuse >> > --with-libexpat=/nethome/mchaudary3/gInstall/libexpat >> > --with-libapr=/nethome/mchaudary3/gInstall/libapr >> > >> > >> > i get the following error: >> > >> > The ganglia graphs are created using RRDTool (http://www.rrdtool.org/) >> > >> > Checking for python >> > checking for python... /usr/bin/python >> > checking Python version... 2.4 >> > checking Python support... yes >> > >> > Checking for apr >> > Added -I/nethome/mchaudary3/gInstall/libapr/include to CFLAGS >> > Added -L/nethome/mchaudary3/gInstall/libapr/lib to LDFLAGS >> > checking for apr_socket_send in -lapr-1... no >> > libapr not found >> > >> > >> > Now i have libapr successfully installed at the path i specify....what >> > could >> > possibly be going wrong? I remember this one time i was installing it on >> > a >> > machine and i had move the include files from /include/apr-1 outside to >> > the >> > include folder. I even tried that but that didnt work. >> > >> > Ive spent hrs trying to get every dependency for rrdtool and what not to >> > install and now im stuck at the final thing! Any help will be >> > appreciated! >> > >> > Thanks >> > Ahmad >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > Lotusphere 2011 >> > Register now for Lotusphere 2011 and learn how >> > to connect the dots, take your collaborative environment >> > to the next level, and enter the era of Social Business. >> > http://p.sf.net/sfu/lotusphere-d2d >> > _______________________________________________ >> > Ganglia-developers mailing list >> > Gan...@li... >> > https://lists.sourceforge.net/lists/listinfo/ganglia-developers >> > >> > > > |