Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Ubuntu 12.0.4 httpd-2.2.22.tar

Having following error when building.

Error 1 (when compiling):

#./configure --prefix=/usr/local/apacheHttpServer3 --enable-modules=proxy
#make install
ibapr-1.la -lrt -lcrypt -lpthread -ldl
libtool: link: cannot find the library `/root/Downloads/httpd-2.2.22/srclib/apr-util/xml/expat/libexpat.la' or unhandled argument `/root/Downloads/httpd-2.2.22/srclib/apr-util/xml/expat/libexpat.la'
make[2]: *** [libaprutil-1.la] Error 1
make[2]: Leaving directory `/root/Downloads/httpd-2.2.22/srclib/apr-util'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/root/Downloads/httpd-2.2.22/srclib'
make: *** [install-recursive] Error 1

Is there a compact solution for this different from what I have answer as follow.

Solution 1:

cd Downloads/httpd-2.2.22/srclib/apr-util/xml/expat/
./configure
make
cp libexpat.la /usr/lib/

Error 2 (when running): braries: libexpat.so.0: cannot open share Solution:

ln -s libexpat.so  /usr/lib/libexpat.so.0

this command should be executed each time when starting and stopping server.

share|improve this question

migrated from stackoverflow.com Sep 19 '12 at 22:11

This question came from our site for professional and enthusiast programmers.

1 Answer 1

up vote 0 down vote accepted

This might not answer your question, but why are you building version 2.2.22 from source? The package from ubuntu is the same version. Just run:

sudo apt-get install apache2
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.