AMD64에서 php 컴파일이 되지 않습니다.
Apache 2.0.54 + PHP 5.0.4 + mysql 4.1.11 설치하려고 합니다.
fedora core 3이구요
AMD64 뉴캐슬 3000+입니다.
mysql설치
./configure \
--prefix=/usr/local/mysql --localstatedir=/usr/local/mysql/data \
--disable-shared --enable-assembler \
--with-thread-safe-client --with-mysqld-user="mysql" \
--with-client-ldflags=-all-static \
--with-mysqld-ldflags=-all-static \
--with-readline --without-debug \
--without-docs --without-bench \
--with-charset=euckr
이렇게 하니 잘되었습니다
그런데 php를 설치하려고 하니 에러가 납니다.
./configure \
--prefix=/usr/local/php \
--with-apxs2=/usr/local/apache/bin/apxs \
--with-zlib \
--with-gd \
--with-mysql=/usr/local/mysql \
--with-mod-charset \
--with-language=korean \
--with-charset=euc_kr
make 하면 에러가
/usr/bin/ld: /usr/local/mysql/lib/mysql/libmysqlclient.a(libmysql.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/local/mysql/lib/mysql/libmysqlclient.a(libmysql.o): could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [libphp5.la] 오류 1
이렇게 납니다.
어떻게 해야하나요?
댓글 달기