Unix/Linux/Mac,  컴퓨터와 인터넷

[Utility] mSQL + PHP 설치하기

[ CnUnix ] in KIDS
글 쓴 이(By): yamang (*홀로서기*)
날 짜 (Date): 2000년 8월 14일 월요일 오전 06시 05분 41초
제 목(Title): [Q] msql+php

msql과 apache를 install하고 php를 컴파일하던 중에 에러가 났습니다. 제가 이해하는대로 쓰보면 libmsql.a에 있는 libmsql.o화일에 문제가 있다 그러니 libmsql.a를 컴파일을 다시해라 할 때는 +z옵션을 줘라 이런 것같은데요맞나요? 이게 사실이라면 msql install시에 생겨난 라이브러리를 제가 개인적으로 재생성할 수 있나요? 흠.. 좀 망막해서요.

Making all in .
gmake[1]: Entering directory `/tmp/php-4.0.1pl2′
/bin/sh /tmp/php-4.0.1pl2/libtool –silent –mode=link
gcc -g -O2 -o libphp4.la -rpath /tmp/php-4.0.1pl2/libs
-avoid-version -L/cargo/Hughes/lib -R /cargo/Hughes/lib stub.lo
Zend/libZend.la sapi/apache/libsapi.la main/libmain.la
regex/libregex.la ext/db/libdb.la ext/msql/libmsql.la
ext/mysql/libmysql.la ext/pcre/libpcre.la ext/posix/libposix.la
ext/session/libsession.la
ext/standard/libstandard.la ext/xml/libxml.la -lmsql -lm -lcrypt
collect2: ld returned 1 exit status
/usr/bin/ld: DP relative code in file /cargo/Hughes/lib/libmsql.a(libmsql.o)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^
– shared library must be position independent. Use +z or +Z to recompile.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
gmake[1]: *** [libphp4.la] Error 1
gmake[1]: Leaving directory `/tmp/php-4.0.1pl2′
gmake: *** [all-recursive] Error 1

[ CnUnix ] in KIDS
글 쓴 이(By): terzeron (microkid)
날 짜 (Date): 2000년 8월 14일 월요일 오후 02시 41분 55초
제 목(Title): Re: [Q] msql+php

make시의 에러가 무엇을 뜻하는지는 정확히 모르겠지만, msql 패키지를 다시 받아서 libmsql.o나 .a를 재생성하시는 것은 가능합니다.

php 패키지가 msql을 /cargo/Hughes 디렉토리에서 찾는 것 같은데, 설치가 되어 있지 않거나 다른 디렉토리에 설치되어 있는 것은 아닙니까? 이런 문제라면 makefile이나 configure의 설정을 바꿔주면 쉽게 해결되지 않을까 싶기도 하구요.

그리고 에러 메시지 중에 +z나 +Z라고 나오는데, 잘은 모르겠지만 그렇게 해보셨나요? -_-a

답글 남기기