LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   error: APR could not be located. Please use the --with-apr option. (https://www.linuxquestions.org/questions/linux-software-2/error-apr-could-not-be-located-please-use-the-with-apr-option-4175450119/)

TheIndependentAquarius 02-14-2013 07:29 AM

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

knudfl 02-14-2013 07:54 AM

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>


-


All times are GMT -5. The time now is 02:48 AM.