설치 환경
OS : CentOS release 6.2 (Final)
Mysql : 5.1.60
Apache : 2.4.1
Php : 5.3.10
[Mysql]
# groupadd mysql
# useradd -g mysql mysql
./configure --prefix=/data/mysql --localstatedir=/data/mysql/data --with-charset=euckr --with-extra-charsets=all
make && make install
/data/mysql/bin/mysql_install_db --datadir=/data/mysql/var --force
chown -R mysql:mysql /data/mysql
*오류*
mysql checking for termcap functions library... configure: error: No curses/termcap library found
*해결 방법*
yum install libtermcap-devel
yum install libtermcap-devel
*오류*
my_global.h:1110: error: redeclaration of C++ built-in
*해결 방법*
1.yum install gcc-c++설치
2.make clean
3. 재 컴파일
2.make clean
3. 재 컴파일
[Apache]
./configure --prefix=/data/apache --enable-so --enable-rewrite --enable-proxy --enable-ssl --enable-unique-id
make && make install
Apache 컴파일 시 오류 처리 사항
Apache 컴파일 시 오류 처리 사항
*오류*
checking for OpenSSL version >= 0.9.7... FAILED
configure: WARNING: OpenSSL version is too old
no
checking whether to enable mod_ssl... configure: error: mod_ssl has been requested but can not be built due to prerequisite failures
configure: WARNING: OpenSSL version is too old
no
checking whether to enable mod_ssl... configure: error: mod_ssl has been requested but can not be built due to prerequisite failures
*해결 방법*
yum install openssl-devel
yum update openssl
*오류*
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 `/root/src/httpd-2.4.1/support'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/src/httpd-2.4.1/support'
make: *** [all-recursive] Error 1
*해결 방법*
Apache 2.4.에서는 apr 1.4이상이 필요하다 따라서 rpm apr 패키지 버전이 1.4이하라면 소스컴파일을 해야 한다.
1. yum remove "apr*"
2.APR 소스 설치
wget http://ftp.jaist.ac.jp/pub/apache//apr/apr-1.4.6.tar.gz
tar xzf apr-1.4.6.tar.gz
cd apr-1.4.6
./configure ; make ; make install
*오류*
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 `/root/src/httpd-2.4.1/support'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/src/httpd-2.4.1/support'
make: *** [all-recursive] Error 1
*해결 방법*
Apache 2.4.에서는 apr 1.4이상이 필요하다 따라서 rpm apr 패키지 버전이 1.4이하라면 소스컴파일을 해야 한다.
1. yum remove "apr*"
2.APR 소스 설치
wget http://ftp.jaist.ac.jp/pub/apache//apr/apr-1.4.6.tar.gz
tar xzf apr-1.4.6.tar.gz
cd apr-1.4.6
./configure ; make ; make install
wget http://ftp.jaist.ac.jp/pub/apache//apr/apr-util-1.4.1.tar.gz
tar zxvf apr-util-1.4.1.tar.gz
cd apr-util-1.4.1
./configure --with-apr=/usr/local/apr
tar zxvf apr-util-1.4.1.tar.gz
cd apr-util-1.4.1
./configure --with-apr=/usr/local/apr
yum install -y pcre-devel lua-devel libxml2-devel
[php]
./configure --prefix=/data/php --with-mysql=/data/mysql --with-apxs2=/data/apache/bin/apxs --enable-sysvshm=yes --enable-sysvsem --enable-debug=no --with-ttf --with-png-dir=/usr --with-zlib-dir --with-jpeg-
[php]
./configure --prefix=/data/php --with-mysql=/data/mysql --with-apxs2=/data/apache/bin/apxs --enable-sysvshm=yes --enable-sysvsem --enable-debug=no --with-ttf --with-png-dir=/usr --with-zlib-dir --with-jpeg-
dir=/usr --with-gdbm=/usr --enable-ftp --enable-mbstring --enable-sockets --enable-wddx --with-freetype-dir=/usr --enable-bcmath --with-curl --with-mcrypt --enable-mbregex --enable-exif --with-gd --enable-gd-
native-ttf --enable-calendar --with-openssl --with-mysqli=/data/mysql/bin/mysql_config
make && make install
make && make install
'기초 Linux 서버관리' 카테고리의 다른 글
Cannot load Zend Guard Loader - it was built with configuration 에러 (0) | 2013.03.21 |
---|---|
웹 사이트 로딩 속도 체크 사이트 (0) | 2012.08.14 |
mysql 유용한 툴 (0) | 2011.12.01 |
yum install error: unpacking of archive failed on file (0) | 2011.12.01 |
익스플로러(IE)에서만 엑박이 뜰 경우 (2) | 2011.07.12 |