mysql:2518
From: Yasuhide OMORI / 大森保英 <Yasuhide OMORI / 大森保英 <omori@xxxxxxxxxx>>
Date: Fri, 29 Sep 2000 16:17:47 +0900
Subject: [mysql 02518] Re: MySQL
On Fri, Sep 29, 2000 at 03:52:08PM +0900, finx <finx@xxxxxxxxxx> wrote: > >TurboLinux Server 6.1にMySQL+PHP3.0.15-i18n-ja+Apache1.3.12をインストール >してPHP+MySQLの環境を作ろうとしています。 >MySQLとPHPの連動を確認したいため、下記のようなスクリプトを >http://www.softagency.co.jp/mysql/TIPS/php3/connect.html >をもらってきて、test_mysql_php.php3とし、ブラウザから表示を試そうとしたと >ころ、 > >Fatal error: Call to unsupported or undefined function mysql_connect() in /home/httpd/html/test_mysql_php.php3 on line 2 > >というようなエラーが出てきてしまいます。 <?php phpinfo(); ?> で、どのようなオプションを configure に渡して php を構築したか確認しま しょう。多分 --with-mysql というのが入っていないと思います。私のところ では ./configure \ --with-apxs=/usr/sbin/apxs \ --with-shared-apache=/etc/httpd \ --with-mod_charset=yes \ --with-gd \ --with-mysql=/usr \ --with-zlib \ --enable-sysvshm=yes \ --enable-sysvsem=yes \ --with-config-file-path=/etc \ --with-system-regex=yes \ --enable-safe-mode=yes \ --with-exec-dir=/usr/local/bin \ --enable-track-vars=yes \ --enable-magic-quotes=yes \ --enable-debugger=yes \ --enable-bcmath=yes \ --enable-force-cgi-redirect=yes \ --enable-discard-path=yes \ --enable-memory-limit=yes \ --enable-i18n という具合です。do-conf で生成したものに --enable-i18n を加えただけで す。上のものは perl -pe 's{ }{ \\\n\t}g;' でメモから生成しました。 # DSO 版なので --with-exec-dir=/usr/local/bin は無意味ですね (^^; Vine-2.0CR apache-1.3.12-2vl3 MySQL-3.23.23 (自ホストで src.rpm を rebuild) php-3.0.15-i18n-ja という環境です。コンパイラは gcc-2.95.2 を /opt/gcc-2.95.2 に入れて使っ ています。こちらの構築法は http://his.luky.org/ML/linux-users.7/msg02264.html にまとめてあります。 -- Yasuhide OMORI / 大森保英
2517 2000-09-29 15:52 [finx <finx@xxxxxxxxx] MySQL -> 2518 2000-09-29 16:17 ┣[Yasuhide OMORI / 大�] 2536 2000-09-29 16:44 ┣[ISHIDA Akio <iakio@x] 2673 2000-11-03 15:46 ┗[tateyan <tateyan@xxx] 2688 2000-11-09 09:33 ┗["s a s a n o" <zaza@] MySQL のチュートリアル 2689 2000-11-09 10:24 ┗[Yukihiro KAWADA <kaw] 2690 2000-11-09 20:20 ┗["s a s a n o" <zaza@]