'APM'에 해당되는 글 3건

  1. 2007/08/04 mysql configure error
  2. 2007/08/04 php configure error
  3. 2007/08/04 데비안 APM 설치
2007/08/04 23:22
configure: error: No curses/termcap library found


mysql configure를 실행할 때 위와 같은 오류 메세지가 발생한다면
libncurses5-dev 패키지를 설치하면 된다.



-Posted by Choi -

Posted by 상만닷컴
2007/08/04 23:20
configuer: error: cannot find libmysqlclient_r under /usr/local/mysql
Note that the MySQL client library is not bundled anymore!


위와 같은 에러 메세지가 발생한다면
mysql 설치 옵션에 다음을  추가한다.
   
        --enable-thread-safe-client

libmysqlclient_r 라이브러리가 생성되며 php 5.xx? 부터 필요하다.


-Posted by Choi -

Posted by 상만닷컴
2007/08/04 22:38
데비안 4.0에서 APM 소스 컴파일 설치 요약입니다.

수정이 필요한 부분이나 질문은 덧글로 남겨주세요.

일단 APM 설치를 위해서 필요한 기본 패키지들을 설치합니다.

aptitude install ssh 패키지 설치
aptitude install vim-full 패키지 설치
aptitude install gcc-4.1 패키지 설치
aptitude install gcc 패키지 설치
aptitude install libncurses5-dev 패키지 설치
aptitude install g++ 패키지 설치
aptitude install g++-4.1 패키지 설치
aptitude install glibc-2.3.6-2 패키지 설치


APM library 설치
    - zlib 설치
        http://www.zlib.net/
        tar xvzf zlib-1.2.3.tar.gz
        ./configure
        make
        make install

    - libpng
        http://libpng.org/
        tar xvzf libpng-1.2.18.tar.gz
        cp scripts/makefile.linux makefile
        make test
        make install

    - freetype
        http://freetype.org/
        tar xvzf freetype-2.3.5.tar.gz
        ./configure
        make
        make install
    - jpeg
        http://ijg.org/
        tar xvzf jpegsrc.v6b.tar.gz
        ./configure --enable-shared --enable-static
        make
        mkdir /usr/local/man/man1
        make install

    - gd
        http://www.libgd.org/Main_Page
        tar xvzf gd-2.0.35.tar.gz
        ./configure
        make
        make install

    - libxml2
        http://xmlsoft.org/
        tar xvzf libxml2-2.6.29.tar.gz
        ./configure
        make
        make install

APM 설치
    - MySQL
        http://www.mysql.com/
        tar xvzf mysql-5.0.41.tar.gz
        ./configure --prefix=/usr/local/mysql --localstatedir=/usr/local/mysql/data --with-charset=euckr --enable-thread-safe-client
        make
        make install
        /usr/local/mysql/bin/mysql_install_db
        useradd mysql
        chown -R mysql:mysql /usr/local/mysql/data/
        /usr/local/mysql/bin/mysqld_safe &
        ps -ef | grep mysqld
        /usr/local/mysql/bin/mysqladmin -u root password chlgoehf
        /usr/local/mysql/bin/mysql -u root -p mysql
        mysql 실행 스크립트 작성
        런레벨 데몬 추가

    - Apache2
        http://www.apache.org/
        tar xvzf httpd-2.2.4.tar.gz
        vi ./server/mpm/prefork/prefork.c    <--- #define DEFAULT_SERVER_LIMIT 256을 1280으로 수정
        vi ./server/mpm/worker/worker.c        <--- #define DEFAULT_SERVER_LIMIT 16을 20으로 수정
        ./configure --prefix=/usr/local/apache2 --enable-so --with-mpm=worker
        make
        make install
        /usr/local/apache2/conf/httpd.conf 수정
        /usr/local/apache2/bin/apachectl start
        ps -ef | grep httpd
        apachectl 실행 스크립트 링크
        런레벨 데몬 추가       
   
    - PHP
        http://www.php.net/
        tar xvzf php-5.2.3.tar.gz
        ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql/ --with-freetype-dir --with-zlib-dir --with-jpeg-dir --with-gd --disable-debug
        make
        make test
        make install
        cp php.ini-dist /usr/local/lib/php.ini
   
    - ZendOptimizer
        http://www.zend.com/products/zend_optimizer
        tar xvzf ZendOptimizer-3.3.0-linux-glibc21-i386.tar.gz
        ./install.sh
        vi /usr/local/Zend/etc/php.ini 수정
            register_globals = Off
            default_socket_timeout = 180
            post_max_size = 16M
            memory_limit = 128M
            upload_max_filesize = 5M
            allow_url_fopen = Off

    - PHP test
        사용자 홈디렉터리에 www 디렉터리 생성
        vi /home/사용자계정/www/test.php
            <?
            phpinfo();
            ?>
        http://사용자 IP/~계정이름/test.php


- Posted by Choi -
Posted by 상만닷컴