Apache Libaprutil-1.la Error 1
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow make install recursive error 1 the company Business Learn more about hiring developers or posting ads with us Stack Overflow download apr Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of /usr/bin/ld: cannot find -lapr-1 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Installing Apache 2.2 up vote 4 down vote favorite So I am following the directions and I did: ./configure --prefix=/fmac/users/f****/apacheServer \ --exec-prefix=/fmac/users/f*****/apaacheServer and it seems to work no errors or anything. Then I do: make make install And i get the following error on install: libtool: install: error: cannot install `libaprutil-1.la' to a directory not ending in /usr/local/apache2/lib Any ideas why is there some other config var i need to set? apache installation share|improve this question edited Feb 10 '11 at 19:41 Owen 51.5k1697111 asked Feb 10 '11 at 19:11 Landister 83622440 This question would probably get more attention at ServerFault (serverfault.com), as it isn't strictly related to programming. –Martin Törnwall Feb 10 '11 at 19:18 add a comment| 3 Answers 3 active oldest votes up vote 18 down vote accepted In case anyone searches on Google for this answer, I figured out how to fix it. I had to: make clean in my httpd-NN build root directory (where NN is the version of httpd you are building). And then it worked. share|improve this answer edited Oct 2 '13 at 12:24 Brian 1,99931437 answered Feb 11 '11 at 14:59 Landister 83622440 thanks worked perfectly for me :) –Harshit May 30 '13 at 9:31 Worked perfectly for me too, in the case of something else than Apache. –SebGR Jul 16 '13 at 15:45 add a comment| up vote 0 down vote This thing worked for me: if you are installing apache,apr,apr-util at a different location (other than the default one) and don't have root rights then you need to configure apache as: ./configure --prefix=path/to/your/apachefolder --with-apr=/path/for/apr -with-apr-util=/path/for/apr-util --with-pcre=/path/for/pcre This worked for me . I hope this helps. share|improve this answer answered May 12 '14 at 23:58 shruti 1 add a comment| up vote -2 down vote Have you tried as root? Tr
This bug is not in your last search results. Bug35098 - Install fails using --prefix Summary: Install fails using --prefix Status: VERIFIED INVALID Product: Apache httpd-2 Classification: Unclassified Component: Build Version: 2.2.2 Hardware: Other Linux Importance: P2 major with 1 vote (vote) TargetMilestone: --- Assigned To: Apache HTTPD Bugs Mailing List URL: Keywords: Duplicates: 39157 (view as bug list) Depends on: Blocks: Show dependency tree Reported: 2005-05-27 07:37 UTC by solprovider Modified: 2011-12-31 20:52 UTC (History) CC List: 1 user (show) braden Attachments Add http://stackoverflow.com/questions/4961516/installing-apache-2-2 an attachment (proposed patch, testcase, etc.) Note You need to log in before you can comment on or make changes to this bug. Description solprovider 2005-05-27 07:37:52 UTC "make install" fails if the prefix is not /usr/local/apache2 --- httpd-2.1.3-beta ./configure --prefix=/usr/local/apache21 --enable-auth-anon --enable-auth-dbm --enable-headers --enable-logio --enable-ssl --enable-usertrack --enable-vhost-alias --enable-rewrite --enable-proxy make make install /bin/sh /opt/httpd-2.1.3-beta/srclib/apr/libtool --mode=install /usr/bin/install -c -m 755 libaprutil-1.la /usr/local/apache21/lib libtool: install: error: https://bz.apache.org/bugzilla/show_bug.cgi?id=35098 cannot install `libaprutil-1.la' to a directory not ending in /usr/local/apache2/lib make[2]: *** [install] Error 1 make[2]: Leaving directory `/opt/httpd-2.1.3-beta/srclib/apr-util' Comment 1 Paul Querna 2005-05-27 07:46:58 UTC Using a --prefix works for me, and I have never seen an issue like this. This is a libtool error, perhaps something else is broken. Comment 2 solprovider 2005-05-27 08:20:39 UTC libtool --version ltmain.sh (GNU libtool) 1.4 (1.920 2001/04/24 23:26:18) Upgrade. ltmain.sh (GNU libtool) 1.5.18 (1.1220.2.245 2005/05/16 08:55:27) Same error. Comment 3 Paul Querna 2005-05-27 08:30:05 UTC did you run configure and make without a --prefix first? Did you later run configure with a new prefix? Try a 'make clean' after running configure. Comment 4 solprovider 2005-05-27 09:26:50 UTC make clean make make install WORKED (mod_jk complains about wrong version, but that is not this bug.) So there is a problem with libtool-1.4 and httpd-2.1.3-beta. Comment 5 Peter Kravtsov 2005-10-18 02:48:00 UTC I ran into this bug after installing apache in /usr/local/apache2.1. Subsequent installations with a different prefix fail during “make install” : 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/b
Bulk Email PowerMTA Support Home › HowTos › Linux Installing Apache 2.4.1 from source on CentOS 6.2 Linux by Syed Alam http://www.hackersgarage.com/installing-apache-2-4-1-from-source-on-centos-6-2-linux.html in HowTos, Linux Apache 2.4.1 is the latest stable version available on Apache.org download section. Since it is the latest version so it may http://askubuntu.com/questions/741061/error-relinking-libaprutil-while-installing-apache-2-4-18-on-sles have plenty of dependencies issues. In my case, i am installing it from source(httpd-2.4.1.tar.bz2). Currently i am logged in using SSH on Plain CentOS error 1 6.2 server and it has very basic packages installed. Downloading and compiling Apache 2.4.1 cd /usr/local/src/
wget http://apache.mirrors.pair.com//httpd/httpd-2.4.1.tar.bz2
tar -jxf httpd-2.4.1.tar.bz2
cd httpd-2.4.1
./configure --prefix=/usr/local/apache --enable-so --enable-deflate --enable-expires --enable-headers --enable-rewrite Note : Here i required deflate,expires,headers and other modules so i included that. Ops, apache libaprutil-1.la error failed to dependencies.. because we don't have gcc compiler and other devel packages for apr, apr-utils, openssl and so on. yum install apr-devel apr-util-devel gcc pcre-devel.x86_64 zlib-devel openssl-devel Great. Here we go; make again ERROR : rotatelogs.c:298: warning: implicit declaration of function ‘apr_file_link’ /usr/lib64/apr-1/build/libtool --silent --mode=link gcc -std=gnu99 -pthread -o rotatelogs rotatelogs.lo /usr/lib64/libaprutil-1.la -ldb-4.7 -lexpat -ldb-4.7 /usr/lib64/libapr-1.la -lpthread rotatelogs.o: In function `post_rotate': rotatelogs.c:(.text+0x5ed): undefined reference to `apr_file_link' collect2: ld returned 1 exit status make[2]: *** [rotatelogs] Error 1 make[2]: Leaving directory `/usr/local/src/httpd-2.4.1/support' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/httpd-2.4.1/support' make: *** [all-recursive] Error 1 Current apr and apr-util version is older while Apache 2.4.1 requires latest APR and APR-utils e.g 1.4.x is the latest available version. Lets include the latest apr and apr-util into apache srlib/ so it can also be compiled along with Apache. cd /usr/local/src/httpd-2.4.1/srclib/ Installing APR & APR-Utils
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Error relinking libaprutil while installing apache 2.4.18 on SLES up vote 0 down vote favorite I am trying to install apache 2.4.18 on SLES 11.2 but I am experiencing an issue which I suppose is related to libaprutil. After searching about the same issue I tried many solutions like before I was just using ./configure but now I am doing ./configure --with-included-apr --with-included-apr-util --with-ldap While running ./configure --with-included-apr --with-included-apr-util --with-ldap, I get these: rm: cannot remove `conftest*': No such file or directory rm: cannot remove `conftest*': No such file or directory rm: cannot remove `libtoolT': No such file or directory 'make' command executes just fine. But still I am having an issue while make install, as follows: libtool: warning: relinking 'libaprutil-1.la' mv: cannot move `libaprutil-1.so.0.5.4' to `libaprutil-1.so.0.5.4U': Permission denied libtool: error: error: relink 'libaprutil-1.la' with the above command before installing it make[2]: *** [install] Error 1 make[1]:*** [install-recursive] Error 1 make: *** [install-recursive] Error 1 I also installed expat which I found as a solution on some other forum. nghttp2 was very old, so I upgraded and that warning is also fixed now. So, I have almost solved most of the errors except this one which I am unable to figure out as I am running it as root only. Though my root command is a little different due to company restrictions. So I use /proj/sudo/bin/sudo make install libraries apache2.4 share|improve this question asked Mar 2 at 4:53 Moktik Dhawan 113 add a comment| active oldest