LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-14-2013, 07:29 AM   #1
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,711
Blog Entries: 29

Rep: Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930
error: APR could not be located. Please use the --with-apr option.


Following is the result of make install of apr-1.4.6.tar.gz.
Code:
ibtool: install: (cd /usr/local/apr/lib && { ln -s -f libapr-1.so.0.4.6 libapr-1.so.0 || { rm -f libapr-1.so.0 && ln -s libapr-1.so.0.4.6 libapr-1.so.0; }; })
libtool: install: (cd /usr/local/apr/lib && { ln -s -f libapr-1.so.0.4.6 libapr-1.so || { rm -f libapr-1.so && ln -s libapr-1.so.0.4.6 libapr-1.so; }; })
libtool: install: /usr/bin/install -c -m 755 .libs/libapr-1.lai /usr/local/apr/lib/libapr-1.la
libtool: install: /usr/bin/install -c -m 755 .libs/libapr-1.a /usr/local/apr/lib/libapr-1.a
libtool: install: chmod 644 /usr/local/apr/lib/libapr-1.a
libtool: install: ranlib /usr/local/apr/lib/libapr-1.a
libtool: finish: PATH="/usr/sbin:/bin:/usr/bin:/sbin:/sbin" ldconfig -n /usr/local/apr/lib
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/apr/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
/usr/bin/install -c -m 644 apr.exp /usr/local/apr/lib/apr.exp
/usr/bin/install -c -m 644 apr.pc /usr/local/apr/lib/pkgconfig/apr-1.pc
for f in libtool shlibtool; do \
    if test -f ${f}; then /usr/bin/install -c -m 755 ${f} /usr/local/apr/build-1; fi; \
done
/usr/bin/install -c -m 755 /home/anisha/openGTS17Nov/apr-1.4.6/build/mkdir.sh /usr/local/apr/build-1
for f in make_exports.awk make_var_export.awk; do \
    /usr/bin/install -c -m 644 /home/anisha/openGTS17Nov/apr-1.4.6/build/${f} /usr/local/apr/build-1; \
done
/usr/bin/install -c -m 644 build/apr_rules.out /usr/local/apr/build-1/apr_rules.mk
/usr/bin/install -c -m 755 apr-config.out /usr/local/apr/bin/apr-1-config
Now, when I do ./configure on apr-util-1.5.1.tar.gz, I get:
Code:
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking for working mkdir -p... yes
APR-util Version: 1.5.1
checking for chosen layout... apr-util
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
Applying apr-util hints file rules for x86_64-unknown-linux-gnu
checking for APR... no
configure: error: APR could not be located. Please use the --with-apr option.
which apr results in:
Code:
which: no apr in (/home/anisha/qtsdk-2010.05/qt/bin/:/home/anisha/qtsdk-2010.05/bin:/home/anisha/openGTS17Nov/javamail-1.4.5/mail-1.4.jar:/usr/lib64/libreoffice/share/extensions/gdocs_2.1.0_modified/external_jars/activation.jar:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/lib64/jvm/java-1.6.0-sun-1.6.0/:/home/anisha/openGTS17Nov/apache-ant-1.8.4/:/home/anisha/openGTS17Nov/apache-tomcat-7.0.32/:/usr/local/OpenGTS_2.4.5/::/home/anisha/openGTS17Nov/javamail-1.4.5/mail.jar:/home/anisha/openGTS17Nov/apache-tomcat-7.0.32/lib)
Why is apr-util not able to see apr?
Yes, I did updatedb, but to no avail.

openSUSE 11.4
 
Old 02-14-2013, 07:54 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,397

Rep: Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611
Can you use apr* version 1.4.2 ?
# zypper se apr
# zypper in libapr1-devel libapr-util1-devel

About installing to /usr/local/apr/*** : Not a system *PATH,
and must be specified every time you want to use it.

Installing to a specific path : Please see $ ./configure --help


Quote:
I did updatedb, but to no avail.
# updatedb : Is for 'locate' only.
Not used by anything else than $ locate <file>


-

Last edited by knudfl; 02-14-2013 at 08:11 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Move apr & apr-util install locations? jbennett Linux - Newbie 3 04-20-2012 11:02 AM
APR error while installing - rm: cannot remove `libtoolT' SkyerSK Linux - Software 2 03-08-2011 03:28 PM
APR-util with APR - configure error on Linux nicky77 Linux - Software 1 03-10-2010 11:25 AM
Did I configure apr, apr-util, and subversion correctly? Quip11 Linux - Server 2 06-11-2009 09:38 AM
Apache - error: external APR GT_Onizuka Linux - Software 0 12-02-2005 04:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration