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.c465 `PHP_MYSQL_TYPE' undeclared (first use in this function)
/tmp/12/php-4.3.4/ext/mysql/php_mysql.c465 (Each undeclared identifier is reported only once
/tmp/12/php-4.3.4/ext/mysql/php_mysql.c465 for each function it appears in.)
/tmp/12/php-4.3.4/ext/mysql/php_mysql.c467 `PHP_MYSQL_INCLUDE' undeclared (first use in this function)
/tmp/12/php-4.3.4/ext/mysql/php_mysql.c468 `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를 다시 한번 해봐두..ㅡ.ㅡ;
해답좀 알려주세요..
Re: php설치시 make 실행에서 에러 발생 [php_mysql.lo]에러..도
을 --with-mysql=/usr/local로 시도해 보시구요.
위에 보면.. --with-xx=xx가 모두 따닥따닥 붙어 있는데..
글올리려다가 사라진 거라면 상관없는데..
실제로 그러면... 정상적인 결과를 얻을 수 없습니다.
There is no spoon. Neo from the Matrix 1999.
댓글 달기