You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Mark Hamer <mh...@us.ibm.com> on 2012/07/24 08:26:26 UTC

[users@httpd] Getting libtool: install: error: relink `libaprutil-1.la' with the above command before installing it error during make install...

Hello all

I am gettting the following error below in bold during my make install. 
What is the source path/target path which I need to create the symlink 
with? 
Below is my entire output from the make install command.


[root@nn250wb002 httpd-2.2.22]# make install
Making install in srclib
make[1]: Entering directory `/home/mhamer/Apache/httpd-2.2.22/srclib'
Making install in apr
make[2]: Entering directory `/home/mhamer/Apache/httpd-2.2.22/srclib/apr'
make[3]: Entering directory `/home/mhamer/Apache/httpd-2.2.22/srclib/apr'
make[3]: Nothing to be done for `local-all'.
make[3]: Leaving directory `/home/mhamer/Apache/httpd-2.2.22/srclib/apr'
/home/mhamer/Apache/httpd-2.2.22/srclib/apr/build/mkdir.sh 
/usr/local/apache2/lib /usr/local/apache2/bin /usr/local/apache2/build \
                     /usr/local/apache2/lib/pkgconfig 
/usr/local/apache2/include
mkdir /usr/local/apache2/lib
mkdir /usr/local/apache2/bin
mkdir /usr/local/apache2/build
mkdir /usr/local/apache2/lib/pkgconfig
mkdir /usr/local/apache2/include
/usr/bin/install -c -m 644 
/home/mhamer/Apache/httpd-2.2.22/srclib/apr/include/apr.h 
/usr/local/apache2/include
for f in /home/mhamer/Apache/httpd-2.2.22/srclib/apr/include/apr_*.h; do \
            /usr/bin/install -c -m 644 ${f} /usr/local/apache2/include; \
        done
/bin/sh /home/mhamer/Apache/httpd-2.2.22/srclib/apr/libtool --mode=install 
/usr/bin/install -c -m 755 libapr-1.la /usr/local/apache2/lib
/usr/bin/install -c -m 755 .libs/libapr-1.so.0.4.5 
/usr/local/apache2/lib/libapr-1.so.0.4.5
(cd /usr/local/apache2/lib && { ln -s -f libapr-1.so.0.4.5 libapr-1.so.0 
|| { rm -f libapr-1.so.0 && ln -s libapr-1.so.0.4.5 libapr-1.so.0; }; })
(cd /usr/local/apache2/lib && { ln -s -f libapr-1.so.0.4.5 libapr-1.so || 
{ rm -f libapr-1.so && ln -s libapr-1.so.0.4.5 libapr-1.so; }; })
/usr/bin/install -c -m 755 .libs/libapr-1.lai 
/usr/local/apache2/lib/libapr-1.la
/usr/bin/install -c -m 755 .libs/libapr-1.a 
/usr/local/apache2/lib/libapr-1.a
chmod 644 /usr/local/apache2/lib/libapr-1.a
ranlib /usr/local/apache2/lib/libapr-1.a
PATH="$PATH:/sbin" ldconfig -n /usr/local/apache2/lib
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/apache2/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/apache2/lib/apr.exp
/usr/bin/install -c -m 644 apr.pc 
/usr/local/apache2/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/apache2/build; fi; \
        done
/usr/bin/install -c -m 755 
/home/mhamer/Apache/httpd-2.2.22/srclib/apr/build/mkdir.sh 
/usr/local/apache2/build
for f in make_exports.awk make_var_export.awk; do \
            /usr/bin/install -c -m 644 
/home/mhamer/Apache/httpd-2.2.22/srclib/apr/build/${f} 
/usr/local/apache2/build; \
        done
/usr/bin/install -c -m 644 build/apr_rules.out 
/usr/local/apache2/build/apr_rules.mk
/usr/bin/install -c -m 755 apr-config.out 
/usr/local/apache2/bin/apr-1-config
make[2]: Leaving directory `/home/mhamer/Apache/httpd-2.2.22/srclib/apr'
Making install in apr-util
make[2]: Entering directory 
`/home/mhamer/Apache/httpd-2.2.22/srclib/apr-util'
/home/mhamer/Apache/httpd-2.2.22/srclib/apr/build/mkdir.sh 
/usr/local/apache2/lib/apr-util-1
mkdir /usr/local/apache2/lib/apr-util-1
make[3]: Entering directory 
`/home/mhamer/Apache/httpd-2.2.22/srclib/apr-util'
make[3]: Nothing to be done for `local-all'.
make[3]: Leaving directory 
`/home/mhamer/Apache/httpd-2.2.22/srclib/apr-util'
/home/mhamer/Apache/httpd-2.2.22/srclib/apr/build/mkdir.sh 
/usr/local/apache2/include /usr/local/apache2/lib/pkgconfig \
                     /usr/local/apache2/lib /usr/local/apache2/bin
for f in /home/mhamer/Apache/httpd-2.2.22/srclib/apr-util/include/*.h 
/home/mhamer/Apache/httpd-2.2.22/srclib/apr-util/include/*.h; do \
                /usr/bin/install -c -m 644 ${f} 
/usr/local/apache2/include; \
        done
/usr/bin/install -c -m 644 apr-util.pc 
/usr/local/apache2/lib/pkgconfig/apr-util-1.pc
list=''; for i in $list; do \
                ( cd $i ; make DESTDIR= install ); \
        done
/bin/sh /home/mhamer/Apache/httpd-2.2.22/srclib/apr/libtool --mode=install 
/usr/bin/install -c -m 755 libaprutil-1.la /usr/local/apache2/lib
libtool: install: warning: relinking `libaprutil-1.la'
(cd /home/mhamer/Apache/httpd-2.2.22/srclib/apr-util; /bin/sh 
/home/mhamer/Apache/httpd-2.2.22/srclib/apr/libtool  --silent 
--mode=relink gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX=2 -D_REENTRANT 
-D_GNU_SOURCE -I/home/mhamer/Apache/httpd-2.2.22/srclib/apr-util/include 
-I/home/mhamer/Apache/httpd-2.2.22/srclib/apr-util/include/private 
-I/home/mhamer/Apache/httpd-2.2.22/srclib/apr/include -version-info 4:1:4 
-o libaprutil-1.la -rpath /usr/local/apache2/lib buckets/apr_brigade.lo 
buckets/apr_buckets.lo buckets/apr_buckets_alloc.lo 
buckets/apr_buckets_eos.lo buckets/apr_buckets_file.lo 
buckets/apr_buckets_flush.lo buckets/apr_buckets_heap.lo 
buckets/apr_buckets_mmap.lo buckets/apr_buckets_pipe.lo 
buckets/apr_buckets_pool.lo buckets/apr_buckets_refcount.lo 
buckets/apr_buckets_simple.lo buckets/apr_buckets_socket.lo 
crypto/apr_crypto.lo crypto/apr_md4.lo crypto/apr_md5.lo 
crypto/apr_sha1.lo crypto/getuuid.lo crypto/uuid.lo dbd/apr_dbd.lo 
dbm/apr_dbm.lo dbm/apr_dbm_sdbm.lo dbm/sdbm/sdbm.lo dbm/sdbm/sdbm_hash.lo 
dbm/sdbm/sdbm_lock.lo dbm/sdbm/sdbm_pair.lo encoding/apr_base64.lo 
hooks/apr_hooks.lo ldap/apr_ldap_stub.lo ldap/apr_ldap_url.lo 
memcache/apr_memcache.lo misc/apr_date.lo misc/apr_queue.lo 
misc/apr_reslist.lo misc/apr_rmm.lo misc/apr_thread_pool.lo 
misc/apu_dso.lo misc/apu_version.lo strmatch/apr_strmatch.lo 
uri/apr_uri.lo xlate/xlate.lo xml/apr_xml.lo -luuid -lrt -lcrypt -lpthread 
-ldl -lexpat /home/mhamer/Apache/httpd-2.2.22/srclib/apr/libapr-1.la 
-luuid -lrt -lcrypt -lpthread -ldl )
/usr/bin/ld: cannot find -lexpat
collect2: ld returned 1 exit status
libtool: install: error: relink `libaprutil-1.la' with the above command 
before installing it  <--trying to find the source/target to relink to 
?????
make[2]: *** [install] Error 1
make[2]: Leaving directory 
`/home/mhamer/Apache/httpd-2.2.22/srclib/apr-util'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/mhamer/Apache/httpd-2.2.22/srclib'
make: *** [install-recursive] Error 1

Re: [users@httpd] Getting libtool: install: error: relink `libaprutil-1.la' with the above command before installing it error during make install...

Posted by Igor Cicimov <ic...@gmail.com>.
*/usr/bin/ld: cannot find -lexpat *
collect2: ld returned 1 exit status
*libtool: install: error: relink `libaprutil-1.la' with the above command
before installing it  <--trying to find the source/target to relink to
 ?????*


Do you have expat installed?

On Tue, Jul 24, 2012 at 4:26 PM, Mark Hamer <mh...@us.ibm.com> wrote:

> Hello all
>
> I am gettting the following error below in bold during my make install.
>  What is the source path/target path which I need to create the symlink
> with?
> Below is my entire output from the make install command.
>
>
> [root@nn250wb002 httpd-2.2.22]# make install
> Making install in srclib
> make[1]: Entering directory `/home/mhamer/Apache/httpd-2.2.22/srclib'
> Making install in apr
> make[2]: Entering directory `/home/mhamer/Apache/httpd-2.2.22/srclib/apr'
> make[3]: Entering directory `/home/mhamer/Apache/httpd-2.2.22/srclib/apr'
> make[3]: Nothing to be done for `local-all'.
> make[3]: Leaving directory `/home/mhamer/Apache/httpd-2.2.22/srclib/apr'
> /home/mhamer/Apache/httpd-2.2.22/srclib/apr/build/mkdir.sh
> /usr/local/apache2/lib /usr/local/apache2/bin /usr/local/apache2/build \
>                      /usr/local/apache2/lib/pkgconfig
> /usr/local/apache2/include
> mkdir /usr/local/apache2/lib
> mkdir /usr/local/apache2/bin
> mkdir /usr/local/apache2/build
> mkdir /usr/local/apache2/lib/pkgconfig
> mkdir /usr/local/apache2/include
> /usr/bin/install -c -m 644
> /home/mhamer/Apache/httpd-2.2.22/srclib/apr/include/apr.h
> /usr/local/apache2/include
> for f in /home/mhamer/Apache/httpd-2.2.22/srclib/apr/include/apr_*.h; do \
>             /usr/bin/install -c -m 644 ${f} /usr/local/apache2/include; \
>         done
> /bin/sh /home/mhamer/Apache/httpd-2.2.22/srclib/apr/libtool --mode=install
> /usr/bin/install -c -m 755 libapr-1.la /usr/local/apache2/lib
> /usr/bin/install -c -m 755 .libs/libapr-1.so.0.4.5
> /usr/local/apache2/lib/libapr-1.so.0.4.5
> (cd /usr/local/apache2/lib && { ln -s -f libapr-1.so.0.4.5 libapr-1.so.0
> || { rm -f libapr-1.so.0 && ln -s libapr-1.so.0.4.5 libapr-1.so.0; }; })
> (cd /usr/local/apache2/lib && { ln -s -f libapr-1.so.0.4.5 libapr-1.so ||
> { rm -f libapr-1.so && ln -s libapr-1.so.0.4.5 libapr-1.so; }; })
> /usr/bin/install -c -m 755 .libs/libapr-1.lai /usr/local/apache2/lib/
> libapr-1.la
> /usr/bin/install -c -m 755 .libs/libapr-1.a
> /usr/local/apache2/lib/libapr-1.a
> chmod 644 /usr/local/apache2/lib/libapr-1.a
> ranlib /usr/local/apache2/lib/libapr-1.a
> PATH="$PATH:/sbin" ldconfig -n /usr/local/apache2/lib
> ----------------------------------------------------------------------
> Libraries have been installed in:
>    /usr/local/apache2/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/apache2/lib/apr.exp
> /usr/bin/install -c -m 644 apr.pc /usr/local/apache2/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/apache2/build; fi; \
>         done
> /usr/bin/install -c -m 755
> /home/mhamer/Apache/httpd-2.2.22/srclib/apr/build/mkdir.sh
> /usr/local/apache2/build
> for f in make_exports.awk make_var_export.awk; do \
>             /usr/bin/install -c -m 644
> /home/mhamer/Apache/httpd-2.2.22/srclib/apr/build/${f}
> /usr/local/apache2/build; \
>         done
> /usr/bin/install -c -m 644 build/apr_rules.out /usr/local/apache2/build/
> apr_rules.mk
> /usr/bin/install -c -m 755 apr-config.out
> /usr/local/apache2/bin/apr-1-config
> make[2]: Leaving directory `/home/mhamer/Apache/httpd-2.2.22/srclib/apr'
> Making install in apr-util
> make[2]: Entering directory
> `/home/mhamer/Apache/httpd-2.2.22/srclib/apr-util'
> /home/mhamer/Apache/httpd-2.2.22/srclib/apr/build/mkdir.sh
> /usr/local/apache2/lib/apr-util-1
> mkdir /usr/local/apache2/lib/apr-util-1
> make[3]: Entering directory
> `/home/mhamer/Apache/httpd-2.2.22/srclib/apr-util'
> make[3]: Nothing to be done for `local-all'.
> make[3]: Leaving directory
> `/home/mhamer/Apache/httpd-2.2.22/srclib/apr-util'
> /home/mhamer/Apache/httpd-2.2.22/srclib/apr/build/mkdir.sh
> /usr/local/apache2/include /usr/local/apache2/lib/pkgconfig \
>                      /usr/local/apache2/lib /usr/local/apache2/bin
> for f in /home/mhamer/Apache/httpd-2.2.22/srclib/apr-util/include/*.h
> /home/mhamer/Apache/httpd-2.2.22/srclib/apr-util/include/*.h; do \
>                 /usr/bin/install -c -m 644 ${f}
> /usr/local/apache2/include; \
>         done
> /usr/bin/install -c -m 644 apr-util.pc
> /usr/local/apache2/lib/pkgconfig/apr-util-1.pc
> list=''; for i in $list; do \
>                 ( cd $i ; make DESTDIR= install ); \
>         done
> /bin/sh /home/mhamer/Apache/httpd-2.2.22/srclib/apr/libtool --mode=install
> /usr/bin/install -c -m 755 libaprutil-1.la /usr/local/apache2/lib
> libtool: install: warning: relinking `libaprutil-1.la'
> (cd /home/mhamer/Apache/httpd-2.2.22/srclib/apr-util; /bin/sh
> /home/mhamer/Apache/httpd-2.2.22/srclib/apr/libtool  --silent --mode=relink
> gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE
> -I/home/mhamer/Apache/httpd-2.2.22/srclib/apr-util/include
> -I/home/mhamer/Apache/httpd-2.2.22/srclib/apr-util/include/private
> -I/home/mhamer/Apache/httpd-2.2.22/srclib/apr/include -version-info 4:1:4
> -o libaprutil-1.la -rpath /usr/local/apache2/lib buckets/apr_brigade.lo
> buckets/apr_buckets.lo buckets/apr_buckets_alloc.lo
> buckets/apr_buckets_eos.lo buckets/apr_buckets_file.lo
> buckets/apr_buckets_flush.lo buckets/apr_buckets_heap.lo
> buckets/apr_buckets_mmap.lo buckets/apr_buckets_pipe.lo
> buckets/apr_buckets_pool.lo buckets/apr_buckets_refcount.lo
> buckets/apr_buckets_simple.lo buckets/apr_buckets_socket.lo
> crypto/apr_crypto.lo crypto/apr_md4.lo crypto/apr_md5.lo crypto/apr_sha1.lo
> crypto/getuuid.lo crypto/uuid.lo dbd/apr_dbd.lo dbm/apr_dbm.lo
> dbm/apr_dbm_sdbm.lo dbm/sdbm/sdbm.lo dbm/sdbm/sdbm_hash.lo
> dbm/sdbm/sdbm_lock.lo dbm/sdbm/sdbm_pair.lo encoding/apr_base64.lo
> hooks/apr_hooks.lo ldap/apr_ldap_stub.lo ldap/apr_ldap_url.lo
> memcache/apr_memcache.lo misc/apr_date.lo misc/apr_queue.lo
> misc/apr_reslist.lo misc/apr_rmm.lo misc/apr_thread_pool.lo misc/apu_dso.lo
> misc/apu_version.lo strmatch/apr_strmatch.lo uri/apr_uri.lo xlate/xlate.lo
> xml/apr_xml.lo -luuid -lrt -lcrypt -lpthread -ldl -lexpat
> /home/mhamer/Apache/httpd-2.2.22/srclib/apr/libapr-1.la -luuid -lrt
> -lcrypt -lpthread -ldl )
> /usr/bin/ld: cannot find -lexpat
> collect2: ld returned 1 exit status
> *libtool: install: error: relink `libaprutil-1.la' with the above command
> before installing it  <--trying to find the source/target to relink to
>  ?????*
> make[2]: *** [install] Error 1
> make[2]: Leaving directory
> `/home/mhamer/Apache/httpd-2.2.22/srclib/apr-util'
> make[1]: *** [install-recursive] Error 1
> make[1]: Leaving directory `/home/mhamer/Apache/httpd-2.2.22/srclib'
> make: *** [install-recursive] Error 1