질문&답변
클라우드/리눅스에 관한 질문과 답변을 주고 받는 곳입니다.
리눅스 분류

php설치시 make하면 [php_mysql.lo]라는 에러가 뜨네요..

작성자 정보

  • 임동영 작성
  • 작성일

컨텐츠 정보

본문

레드헷 9 + 아파치 1.3.29+php4.3.4+ gd2.0.17+clibpdf202r1+curl7.10.8+freetype2.1.5+imap2002e+libmcrypt-2.5.7+libpng1.2.5+libungif4.1.0+mhash0.8.18+ming0.2a+mm1.3.0+mysql4.0.16+t1lib1.3.1+tiffv3.6.0+zlib-1.2.1+openssl+0.9.6
## MySQL 4.0.16 설치
[/tmp]# tar xvfz mysql-4.0.16.tar.gz
[/tmp]# cd mysql-4.0.16
[/tmp/mysql-4.0.16]# ./configure --prefix=/usr/local/mysql --localstatedir=/usr/local/mysql/data --with-charset=euc_kr
[/tmp/mysql-4.0.16]# make && make install
[/tmp/mysql-4.0.16]# cd /usr/local/mysql
[/usr/local/mysql]#  
[/usr/local/mysql]# groupadd mysql
[/usr/local/mysql]# useradd -g mysql mysql
[/usr/local/mysql]# chown -R mysql.mysql data
[/usr/local/mysql]# cat >> /etc/ld.so.conf
/usr/local/mysql/lib/mysql
^d
[/tmp/local/mysql]# ldconfig
[/usr/local/mysql]# ./bin/mysqld_safe &
[/usr/local/mysql]# ./bin/mysqladmin -u root password 'PASSWORD'
[/usr/local/mysql]# ./bin/mysqladmin -u root -h $HOSTNAME password 'PASSWORD'
[/usr/local/mysql]# ./bin/mysqladmin -u root -p shutdown
[/tmp]# tar xvfz apache-1.3.29.tar.gz
[/tmp]# tar xvfz php-4.3.4.tar.gz
[/tmp]# cd /usr/local
[/usr/local]# mkdir apache_1.3.29
[/usr/local]# ln -s apache_1.3.29 apache
[/usr/local]# mkdir php_4.3.4
[/usr/local]# ln -s php_4.3.4 php
[/usr/local]# cd /tmp/apache_1.3.29

[/tmp/apache-1.3.29]# ./configure --prefix=/usr/local/apache --enable-module=so

[/tmp/php-4.3.4]# ./configure --prefix=/usr/local/php--with-apache=tmp/12/apache_1.3.29--with-config-file-path=/usr/local/apache/conf--with-mysql=/usr/local/mysql--with-imap=/usr/local/imap--with-jpeg-dir=/usr/local/lib--with-png-dir=/usr/local/lib--with-gif-dir=/usr/local/lib--with-zlib-dir=/usr/local/lib--with-gd=/usr/local/gd--with-freetype-dir=/usr/local/include/freetype2--with-zlib--with-ming=/usr/lib--with-tiff-dir=/usr/local/lib--with-cpdflib--with-openssl--with-gettext--with-kerberos--with-swf=/usr/local/swf--with-mm--with-mhash=/usr/local/lib--with-mcrypt=/usr/local/lib--with-mod_charset--with-language=korean--with-charset=euc_kr--with-regex=php--with-curl--with-ldap--with-xml--enable-gd-native-ttf--enable-ftp--enable-sockets--disable-debug--enable-sysvsem --enable-shmop --enable-track-vars --enable-freetype-4bit-antialias-hack --enable-calendar --enable-sigchild --enable-magic-quotes --enable-trans-sid --enable-inline-optimization --enable-bcmath --enable-memory-limit=yes

[/tmp/php-4.3.4]# make
gcc -I/tmp/12/php-4.3.4/ext/mysql/libmysql -Iext/mysql/ -I/tmp/12/php-4.3.4/ext/mysql/ -DPHP_ATOM_INC -I/tmp/12/php-4.3.4/include -I/tmp/12/php-4.3.4/main -I/tmp/12/php-4.3.4 -I/tmp/12/php-4.3.4/Zend -I/tmp/12/php-4.3.4/ext/xml/expat  -I/tmp/12/php-4.3.4/TSRM  -g -O2  -c /tmp/12/php-4.3.4/ext/mysql/php_mysql.c -o ext/mysql/php_mysql.o  && echo > ext/mysql/php_mysql.lo
/tmp/12/php-4.3.4/ext/mysql/php_mysql.c: In function `zm_info_mysql':
/tmp/12/php-4.3.4/ext/mysql/php_mysql.c:465: `PHP_MYSQL_TYPE' undeclared (first use in this function)
/tmp/12/php-4.3.4/ext/mysql/php_mysql.c:465: (Each undeclared identifier is reported only once
/tmp/12/php-4.3.4/ext/mysql/php_mysql.c:465: for each function it appears in.)
/tmp/12/php-4.3.4/ext/mysql/php_mysql.c:467: `PHP_MYSQL_INCLUDE' undeclared (first use in this function)
/tmp/12/php-4.3.4/ext/mysql/php_mysql.c:468: `PHP_MYSQL_LIBS' undeclared (first use in this function)
make: *** [ext/mysql/php_mysql.lo] Error 1
[/tmp/php-4.3.4]#

이렇게 설치는 하는데.. php에서 make 시 에러가 뜨네요..
원인의 무엇인지 잘 모르겠어요..
mysql를 다시 한번 해봐두..ㅡ.ㅡ;
해답좀 알려주세요..

관련자료

댓글 0
등록된 댓글이 없습니다.

공지사항


뉴스광장


  • 현재 회원수 :  60,138 명
  • 현재 강좌수 :  36,196 개
  • 현재 접속자 :  737 명