[PHP-users 3831] 画像関数を使うためにPHPをリコンパイルするとapacheが起動しない
muracoshi
php-users@php.gr.jp
Sun, 25 Nov 2001 14:40:20 +0900
This is a multi-part message in MIME format.
------=_NextPart_000_0070_01C175BF.1B6EE3E0
Content-Type: text/plain;
charset="iso-2022-jp"
Content-Transfer-Encoding: 7bit
始めまして
php4.06で画像関数を使いたいと思い、/usr/local/src/以下に
jpeg-6b、libpng-1.2.0、gd-1.8.4、zlib-1.1.3をコンパイルし
php4.06をリコンパイルしました。
# ./configure --with-mysql --with-apxs=/usr/local/apache/
bin/apxs --with-jpeg-dir=/usr/local/lib --with-png-dir=/usr/local/lib --with
-zli
b-dir=/usr/local/include --with-gd=/usr/local
その際エラーは出てないように思えるのですが、
apacheをスタートさせようとすると以下のようなエラーがでてしまいます。
# /usr/local/apache/bin/apachectl start
Syntax error on line 206 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp4.so into server: libpng.so.3:
canno
t open shared object file: No such file or directory
/usr/local/apache/bin/apachectl start: httpd could not be started
apacheが起動してくれません。
又、with-png-dir=/usr/local/libの行をはずすと
# ./configure --with-mysql --with-apxs=/usr/local/apache/
bin/apxs --with-jpeg-dir=/usr/local/lib --with-zli
b-dir=/usr/local/include --with-gd=/usr/local
apacheは起動します。
又phpinfo()
で見るとzlibとgdはenableになってるのですが、
私のやり方ですとlibpngが使えないのでしょうか?
なぜapacheでSyntaxエラーがでてしまうのか わかりません。
どなたかおわかりになる方がいましたら教えて頂きたいのですが。
よろしくお願いいたします。
ちなみにOSはredhat6.2
apacheはapache_1.3.19を使っています。
------=_NextPart_000_0070_01C175BF.1B6EE3E0
Content-Type: text/html;
charset="iso-2022-jp"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-2022-jp" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3315.2870" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>
<DIV><FONT size=3D2>
<DIV><FONT size=3D2>=1B$B;O$a$^$7$F=1B(B</FONT></DIV>
<DIV><FONT =
size=3D2>php4.06=1B$B$G2hA|4X?t$r;H$$$?$$$H;W$$!"=1B(B/usr/local/src/=1B$=
B0J2<$K=1B(B</FONT></DIV>
<DIV><FONT size=3D2>jpeg-6b</FONT><FONT =
size=3D2>=1B$B!"=1B(Blibpng-1.2.0</FONT><FONT=20
size=3D2>=1B$B!"=1B(Bgd-1.8.4=1B$B!"=1B(Bzlib-1.1.3=1B$B$r%3%s%Q%$%k$7=1B=
(B</FONT></DIV>
<DIV><FONT =
size=3D2>php4.06=1B$B$r%j%3%s%Q%$%k$7$^$7$?!#=1B(B</FONT></DIV>
<DIV><FONT size=3D2># ./configure --with-mysql=20
--with-apxs=3D/usr/local/apache/<BR>bin/apxs =
--with-jpeg-dir=3D/usr/local/lib=20
--with-png-dir=3D/usr/local/lib --with-zli<BR>b-dir=3D/usr/local/include =
--with-gd=3D/usr/local</FONT></DIV>
<DIV> </DIV>
<DIV><FONT =
size=3D2>=1B$B$=3D$N:]%(%i!<$O=3DP$F$J$$$h$&$K;W$($k$N$G$9$,!"=1B(B</FONT=
></DIV>
<DIV><FONT =
size=3D2>apache=1B$B$r%9%?!<%H$5$;$h$&$H$9$k$H0J2<$N$h$&$J%(%i!<$,$G$F$7$=
^$$$^$9!#=1B(B</FONT></DIV>
<DIV><FONT size=3D2># /usr/local/apache/bin/apachectl start<BR>Syntax =
error on=20
line 206 of /usr/local/apache/conf/httpd.conf:<BR>Cannot load=20
/usr/local/apache/libexec/libphp4.so into server: libpng.so.3: =
canno<BR>t open=20
shared object file: No such file or =
directory<BR>/usr/local/apache/bin/apachectl=20
start: httpd could not be started</FONT></DIV>
<DIV><FONT size=3D2>apache=1B$B$,5/F0$7$F$/$l$^$;$s!#=1B(B</FONT></DIV>
<DIV><FONT =
size=3D2>=1B$BKt!"=1B(Bwith-png-dir=3D/usr/local/lib=1B$B$N9T$r$O$:$9$H=1B=
(B</FONT></DIV>
<DIV><FONT size=3D2># ./configure --with-mysql=20
--with-apxs=3D/usr/local/apache/<BR>bin/apxs=20
--with-jpeg-dir=3D/usr/local/lib --with-zli<BR>b-dir=3D/usr/local/in=
clude=20
--with-gd=3D/usr/local</FONT></DIV>
<DIV><FONT size=3D2>apache=1B$B$O5/F0$7$^$9!#=1B(B</FONT></DIV>
<DIV><FONT size=3D2>=1B$BKt=1B(Bphpinfo()</FONT></DIV>
<DIV><FONT =
size=3D2>=1B$B$G8+$k$H=1B(Bzlib=1B$B$H=1B(Bgd=1B$B$O=1B(Benable=1B$B$K$J$=
C$F$k$N$G$9$,!"=1B(B</FONT></DIV>
<DIV><FONT =
size=3D2>=1B$B;d$N$d$jJ}$G$9$H=1B(Blibpng=1B$B$,;H$($J$$$N$G$7$g$&$+!)=1B=
(B</FONT></DIV>
<DIV><FONT =
size=3D2>=1B$B$J$<=1B(Bapache=1B$B$G=1B(BSyntax=1B$B%(%i!<$,$G$F$7$^$&$N$=
+!!$o$+$j$^$;$s!#=1B(B</FONT></DIV>
<DIV><FONT =
size=3D2>=1B$B$I$J$?$+$*$o$+$j$K$J$kJ}$,$$$^$7$?$i65$($FD:$-$?$$$N$G$9$,!=
#=1B(B</FONT></DIV>
<DIV><FONT size=3D2>=1B$B$h$m$7$/$*4j$$$$$?$7$^$9!#=1B(B</FONT></DIV>
<DIV><FONT =
size=3D2>=1B$B$A$J$_$K=1B(BOS=1B$B$O=1B(Bredhat6.2</FONT></DIV>
<DIV><FONT=20
size=3D2>apache=1B$B$O=1B(Bapache_1.3.19=1B$B$r;H$C$F$$$^$9!#=1B(B</FONT>=
</DIV></FONT></DIV></FONT></DIV></BODY></HTML>
------=_NextPart_000_0070_01C175BF.1B6EE3E0--