CentOSマシンにhttpd-2.4.1をインストールしようとしています(現在2.2.15です)。私は次のことをしました...
sudo yum install gcc
sudo yum install perl
sudo yum install libbz2 libbz2-devel
sudo yum install bzip2-devel
sudo yum install curl-devel
sudo yum install libjpeg-devel
sudo yum install libpng-devel
sudo yum install libX11-devel gd-devel
sudo yum install libc-client-devel
sudo yum install libmcrypt-devel
sudo yum install bzip2
sudo yum install pcre-devel
sudo yum install openssl-devel
sudo yum install libxml2-devel
sudo yum install libmcrypt
#apache
wget http://mirror.nus.edu.sg/apache//apr/apr-util-1.4.1.tar.gz
wget http://mirror.nus.edu.sg/apache//apr/apr-1.4.6.tar.gz
extract and move to /srclib in httpd-2.4.1 directory
sudo ./configure --prefix=/usr/local/apache --enable-so --enable-mods-shared=most --with-included-apr --with-included-apr-util --enable-load-all-modules
sudo make
sudo make install
そして、ここでエラーが発生します:
/usr/bin/ld: /usr/local/apache/lib/libexpat.a(xmlparse.o): relocation R_X86_64_32S against `.text' can not be used when making a shared object; recompile with -fPIC
/usr/local/apache/lib/libexpat.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
libtool: install: error: relink `libaprutil-1.la' with the above command before installing it
上記のコマンドでlibaprutil-1.laを再リンクするにはどうすればよいですか?(私はそれが-fPICを参照していると思いますか?)