#기본적인 라이브러리/툴 설치:
yum groupinstall "Development Tools"
yum groupinstall "Development Libraries"
#mysql: Version: 5.5.15
# groupadd 가 안될 경우 밑의 주석을 풀어준다.
# export PATH=$PATH:/usr/sbin:/sbin
groupadd mysql
useradd mysql
wget http://mysql.com/get/Downloads/MySQL-5.5/mysql-5.5.15.tar.gz/from/http://mirror.khlug.org/mysql/
tar zxvf mysql-5.5.15.tar.gz
cd mysql-5.5.15
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
yum -y install cmake
cmake -DCMAKE_INSTALL_PREFIX=/opt/mysql \
-DDEFAULT_CHARSET=utf8 \
-DDEFAULT_COLLATION=utf8_general_ci \
-DWITH_EXTRA_CHARSETS=all \
-DMYSQL_DATADIR=/opt/mysql/data \
-DENABLED_LOCAL_INFILE=1 \
-DWITH_INNOBASE_STORAGE_ENGINE=1 \
-DMYSQL_UNIX_ADDR=/tmp/mysql.sock \
-DSYSCONFIGDIR=/etc \
-DWITH_EXTRA_CHARSETS=all \
-DWITH_DEBUG=0 make
make install
cd ../
#apache: Version: 2.2.19
wget http://mirror.khlug.org/apache//httpd/httpd-2.2.19.tar.gz
tar zxvf httpd-2.2.19.tar.gz
cd httpd-2.2.19
./configure --prefix=/opt/httpd --enable-modules=so --enable-module=shared --enable-mods-shared=all --enable-so --enable-ssl --enable-rewrite --enable-rule=SHARED_CORE --enable-mods-shared=ssl --with-ssl --with-mpm=prefork --enable-modules=unique_id
make
make install
cd ../
#php: Version: 5.3.6
wget http://www.php.net/get/php-5.3.6.tar.gz/from/kr.php.net/mirror
tar zxvf php-5.3.6.tar.gz
cd php-5.3.6
yum install -y libjpeg-devel libpng-devel net-snmp-devel libmcrypt-devel libc-client-devel
./configure --prefix=/opt/php --with-apxs2=/opt/httpd/bin/apxs --with-config-file-path=/opt/httpd/conf --disable-debug --enable-bcmath --enable-calendar --enable-exif --enable-ftp --enable-gd-native-ttf --enable-magic-quotes --enable-mbregex --enable-mbstring --enable-mod-charset --enable-sigchild --enable-soap --enable-sockets --enable-wddx --enable-zip --with-bz2 --with-curl=/usr --with-freetype-dir=/usr --with-gd --with-gdbm=/usr --with-gettext --with-iconv --with-imap --with-imap-ssl --with-jpeg-dir=/usr --with-kerberos --with-ldap --with-libexpat-dir --with-libxml-dir --with-mcrypt --with-openssl --without-sqlite --with-png-dir=/usr --with-snmp --with-xmlrpc --with-zlib --with-mcrypt --with-mysql=/opt/mysql --with-pdo-mysql=/opt/mysql
make
make install
cd ../
'리눅스 > 어플리케이션' 카테고리의 다른 글
| [Apache] mod_watch backup (0) | 2011/08/20 |
|---|---|
| [MRTG] 자동 설치 스크립트 (0) | 2011/08/16 |
| [작성중] CentOS 5.6 APM Compile (0) | 2011/08/14 |
| [PHP] x86_64 에서 PHP MSSQL 모듈 설치시, libsybdb.a|so 오류 (0) | 2011/01/10 |
| [Apache] 컴파일한 httpd를 chkconfig 로 등록하기. (2) | 2011/01/01 |
| [PHP][작성중] CentOS PHP 컴파일 (3) | 2010/12/24 |

