[PHP-users 15090] Re: PHP4_PGSql_MacOSX
Ryutaro Amano
wn9r-amn @ asahi-net.or.jp
2003年 5月 7日 (水) 14:49:19 JST
天野です。
nobuhide shimizuさんが03.5.7 9:37 AMに書きました:
>defaultのapacheでしたら
>/usr以下にちらばってるとおもいますので
>(defaultのphpも/usr以下)
>
>./configure --prefix=/usr/local/php*** --libexcdir=/usr/libexec/httpd \
>--with-apxs --with-pgsql=/usr/local/pgsql*** --enable-mbstring \
>--enable-mbregex
>make
>
>でいけませんか
>***は任意(使わない場合は省略)
>
>> アドバイスをいただけると大変嬉しいのですが。
>みなさんいわれてますが
>apache,poatgresql,phpも/usr/localに自分でビルドするのが
>一番かんたんで管理しやすいです。
>
>MacOSXは、unixなんですがかわってますので
>自動起動をどこで書いたらいいか、ちょっと骨です
>
RES有り難うございます。他の二つはともかく、Apacheはシステムの中心部分の一つ
だと思うので、ちょっと怖いです。
OSXは他のUNIXとはちょっと違うようなので、よけいその感が深いです。
PHPですが、/usr/local以下にはないです。
/System/Library/PHP以下にArchive,Benchmark,Cacheなどがズラーと並んでいます。
libphp.soは/usr/libexec/httpd/libphp4.soにありますが。
>./configure --prefix=/usr/local/php*** --libexcdir=/usr/libexec/httpd \
>--with-apxs --with-pgsql=/usr/local/pgsql*** --enable-mbstring \
>--enable-mbregex
やってみましたが、configureが終わったところで、Attensionに加えてWarningが出
ました。
+--------------------------------------------------------------------+
| *** ATTENTION *** |
| |
| Something is likely to be messed up here, because the configure |
| script was not able to detect a simple feature on your platform. |
| This is often caused by incorrect configuration parameters. Please |
| see the file debug.log for error messages. |
| |
| If you are unable to fix this, send the file debug.log to the |
| php-install @ lists.php.net mailing list and include appropiate |
| information about your setup. |
+--------------------------------------------------------------------+
| *** WARNING *** |
| |
| You chose to compile PHP with the built-in MySQL support. If you |
| are compiling a server module, and intend to use other server |
| modules that also use MySQL (e.g, mod_auth_mysql, PHP 3.0, |
| mod_perl) you must NOT rely on PHP's built-in MySQL support, and |
| instead build it with your local MySQL support files, by adding |
| --with-mysql=/path/to/mysql to your configure line. |
+--------------------------------------------------------------------+
configureの頭のところで、
configure: warning: prefix=/usr/local/php: invalid host type
となっています。--prefix=/usr/local/php***をのぞいてやると、やはりAttension
が出て(Warningは出ません)、makeするとerrorです。
Apacheも/usr以下にはちょっとないような。 あるんでしょうか。
Ryutaro Amano
wn9r-amn @ asahi-net.or.jp
PHP-users メーリングリストの案内