• ベストアンサー
※ ChatGPTを利用し、要約された質問です(原文:PHPのconfigureでmysqlエラーが)

PHPのconfigureでmysqlエラーが

dev_nullの回答

  • ベストアンサー
  • dev_null
  • ベストアンサー率67% (37/55)
回答No.1

/usr/lib/mysql/ となってるので i386 のライブラリを探してますね mysql-devel-x.x.x.i386 をインストールするとか.. --with-libdir=lib64 を追加するとかでしょうか。

gasyos
質問者

お礼

ありがとうございます。 うまくいきました。 64bitはいろいろ面倒ですね(^^;

関連するQ&A

  • php-5.3.3のconfigureでエラー

    RHEL6にPHP5.3.3をソースインストール(訳あってrpmを使えない)しようとすると 下記のエラーが出て困ってます。 configure: error: DBA: Could not find necessary header file(s). configureは下記を指定してます。RHEL5.5ではOKだったのに6では通らない。 インストールされているパッケージが原因かと思っているのですが、情報が 見当たらず前に進めません。 同じ状況になった方助言をお願いします。 OS:Red Hat Enterprise Linux Server release 6.0 (Santiago) PHP:php-5.3.3.tar.gz configure:./configure \ --enable-track-vars \ --enable-trans-sid \ --with-mysql=/usr/local/mysql \ --with-gdbm \ --disable-debug --with-apxs2=/usr/local/apache/bin/apxs \ --enable-mbstring \ --enable-mbstr-enc-trans \ --with-mcrypt=/usr/local/lib \ --with-ldap=/usr ※Apache2、mysql、mcryptは正常にインストールされてます。 宜しくお願いします。

  • CentOS5.2にPHP4.4.9をインストールしたいんですが。。。

    CentOS5.2にPHP4.4.9をインストールしたいんですが。。。 $ tar -zxvf php-4.4.9.tar.gz; cd php-4.4.9 ファイルを展開した後に $ ./configure --with-apxs2=/usr/bin/apxs --enable-mbstring --with-mysql --with-gd --with-jpeg=/usr/lib --with-png=/usr/lib を実行しましたが。 # ./configure --with-apxs2=/usr/bin/apxs --enable-mbstring --with-mysql --with-gd --with-jpeg=/usr/lib --with-png=/usr/lib loading cache ./config.cache checking for egrep... grep -E checking for a sed that does not truncate output... /bin/sed checking host system type... i686-pc-linux-gnu checking for gcc... no checking for cc... no configure: error: no acceptable cc found in $PATH このようになってしまい何をしていいか分かりません。どなたか教えて下さい。 参考URL http://d.hatena.ne.jp/donbulinux/20090304/1236160239

  • Red Hat ES 3にPHP5.2.5インストール時のconfigureエラー

    Red Hat ES 3にPHP5.2.5をインストールしようとしています。 configure時に(オプションは後述)、 configure: error: GD build test failed. Please check the config.log for details. と出てしまい、config.logを見てもよくわかりません。 (config.log 頭省略) configure:43450: gcc -o conftest -g -O2 -Wl,-rpath,/usr/local//lib -L/usr/local//lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib -Wl,-rpath,/usr/local//lib -L/usr/local//lib conftest.c -lgd -lgd -lfreetype -lpng -lz -ljpeg -lz -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lxml2 -lz -lm 1>&5 /usr/local//lib/libgd.so: undefined reference to `libiconv_open' /usr/local//lib/libgd.so: undefined reference to `libiconv_close' /usr/local//lib/libgd.so: undefined reference to `libiconv' collect2: ld returned 1 exit status configure: failed program was: #line 43439 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char gdImageCreate(); int main() { gdImageCreate() ; return 0; } --------------------------- undefined reference to `libiconv_open' かなと予想していますが、どこをどうしていいのやら? ちなみに # ls -l /usr/local/lib/libgd.so /usr/local/lib/libgd.so -> libgd.so.2.0.0 でちゃんとシンボリックリンクは設定されているようです。 どなたか対処方法・調査方法がご存知の方、ぜひぜひご教授ください。m(_._)m ※ configureオプション ./configure --with-apxs2=/usr/local/apache2/bin/apxs --enable-mbstring --enable-mbsrt-enc-trans --enable-mbregex --enable-trans-sid --with-mysql=/usr/local/mysql --with-zlib-dir=/usr/local/lib --with-png-dir=/usr/local/lib --with-jpeg-dir=/usr/local/lib --with-freetype-dir=/usr/local/lib --with-gd=/usr/local/ --enable-gd-native-ttf --enable-gd-jis-conv

    • 締切済み
    • PHP
  • PHPのインストールがうまくできない。

    環境Fedora2 [root@localhost php-5.2.1]# ./configure --with-pgsql --with-apxs2=/usr/local/apache/bin/apxs --enable-mbstring --enable-mbregex ~省略~ checking if compiler supports -Wl,-rpath,... yes checking for re2c... re2c checking for re2c version... 0.11.0 (ok) checking for gawk... gawk checking for bison... no checking for byacc... no checking for bison version... invalid configure: warning: bison versions supported for regeneration of the Zend/PHP parsers: 1.28 1.35 1.75 1.875 2.0 2.1 2.2 2.3 (found: none). checking for flex... lex checking for yywrap in -ll... no checking lex output file root... ./configure: line 3375: lex: command not found configure: error: cannot find output from lex; giving up warning だと、PHP parsersのためのバージョンが必要ということでしょうか?当然makeもできません。 [root@localhost php-5.2.1]# make make: *** ターゲットが指定されておらず、makefile も見つかりません。中止。 調べたんですが aptの導入が必要のようですがよくわからないので詳しい方おねがいします。

  • PHPのconfigureのオプションにつきまして

    日頃WindowsメインでLinuxをあまり使わない者です。 今回、とある理由でCentOS5.5にPHP5.2とMySQL4.0の環境を作る必要が出てきました。それで、それらをソースからコンパイルしてインストールしてみたのですが、PHPのmysql_connect()で以下のようなエラーが出て、原因がわからず困っています。 Can't connect to local MySQL server through socket '/tmp/mysql.sock' (13) PHPもMySQLも単体では正常に動いているようです。データベースも作れました。 それで色々調べていたのですが、/tmp/mysql.sockのアクセス権限を777にしたり、 PHPとMySQLが/tmp/mysql.sockを介する設定になっているかを確認しましたが、いずれも問題無さそうです。 それで、phpinfo()の結果をさくらサーバーのそれと比べてみたところ、 Configure Commandのところが全然違うことがわかりました。 今回構築した環境では、 './configure' '--with-apxs2=/usr/sbin/apxs' '--with-mysql=/usr/local/mysql' ですが、 さくらサーバーは、 './configure' '--prefix=/usr/local/php/5.2' '--with-config-file-path=${prefix}/etc' '--with-config-file-scan-dir=${prefix}/etc/conf.d' '--enable-force-cgi-redirect' '--with-openssl=/usr/local/ssl' '--with-zlib=/usr' '--with-curl' '--enable-exif' '--with-pcre-dir=/usr/local' '--with-gd' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr/local' '--with-ttf' '--with-freetype-dir=/usr/local' '--with-gettext=/usr/local' '--with-gmp=/usr/local' '--with-iconv=/usr/local' '--enable-mbstring' '--with-mcrypt' '--with-mysql=/usr/local' '--with-mysqli=/usr/local/bin/mysql_config' '--with-pdo-mysql=/usr/local' '--with-snmp=/usr/local' '--enable-soap' '--with-xsl=/usr/local' '--enable-zip' と非常に多いです。 これらは関係あるでしょうか。初歩的な質問で恐縮ですが、ご存知の方がいらっしゃいましたら、ご教示いただけましたら助かります。 よろしくお願いします。

    • ベストアンサー
    • PHP
  • PHPのインストール

    いつも拝見しております。 環境:Red Hat Enterprise Linux ES v.4 32bit/EM64T PHPをソースからインストールしようと思いますが configure でエラーが出てしまいます。 ./configure \ --enable-mbstring \ --enable-mbregex \ --enable-track-vars \ --with-apxs=/usr/sbin/apxs \ --with-mysql=/usr/local/mysql 以下エラーです。 ---------- Configuring SAPI modules checking for AOLserver support... no checking for Apache 1.x module support via DSO through APXS... Sorry, I was not able to successfully run APXS. Possible reasons: 1. Perl is not installed; 2. Apache was not compiled with DSO support (--enable-module=so); 3. 'apxs' is not in your path. Try to use --with-apxs=/path/to/apxs The output of /usr/sbin/apxs follows ./configure: line 3558: /usr/sbin/apxs: No such file or directory configure: error: Aborting ---------- configure の4つ目でのエラーのようですが、 対処方法がわかりません。 パスが違うようですが、どうやってパスを探せばよろしいですか? ご教授お願いいたします。

  • PHPのconfigureについて

    PHP5.2.6をインストールしようとしているのですが、configureコマンドの所で躓いています 実行しているconfigureオプションは以下の通りです。 ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-gd --with-zlib --enable-bcmath --enable-mbregex --enable-mbstring とすると configure: error: libpng.(a|so) not found. となります。 yum install libpngとすると Package 2:libpng-1.2.10-7.1.el5_3.2.i386 already installed and latest version となるので最新版のようです。 このconfigure: error: libpng.(a|so) not found.を克服する術を教えて頂けると助かります。 何卒よろしくお願いします。

    • ベストアンサー
    • PHP
  • PHPにmssqlをインストールする際のエラー

    CentOS5.1を使っています。 PHP5.2.6にmssqlをインストールしようとしていますが、エラーが出ます。 ./configure --with-apxs2=/usr/local/apache2/bin/apxs --enable-mbstring --enable-mbregex --with-mysql=/usr/local/mysql --with-zlib-dir=/usr/local/lib --with-png-dir=/usr/local/lib --with-jpeg-dir=/usr/local/lib --with-freetype-dir=/usr/local/lib --with-gd=/usr/local/ --enable-gd-native-ttf --enable-gd-jis-conv --with-mcrypt=/usr/local/lib --with-mssql=/usr/local (実行) ・・・・ checking for mSQL support... no checking for MSSQL support via FreeTDS... yes configure: error: Directory /usr/local is not a FreeTDS installation directory --with-mssql=/usr/localのところを --with-mssql=/usr/ --with-mssql=/ に変えてみましたが同様です。 freeTDSが入っている事も再度確認しました。 --- # yum info freetds Loading "installonlyn" plugin Setting up repositories Reading repository metadata in from local files Installed Packages Name : freetds Arch : i386 Version: 0.64 Release: 11.el5.centos Size : 2.2 M Repo : installed Summary: Implementation of the TDS (Tabular DataStream) protocol Description: FreeTDS is a project to document and implement the TDS (Tabular DataStream) protocol. TDS is used by Sybase(TM) and Microsoft(TM) for client to database server communications. FreeTDS includes call level interfaces for DB-Lib, CT-Lib, and ODBC. --- 海外の掲示板でも悩んでいる人がいましたが、prefixを変更して解決しているようです。ですが、私の場合解決しません。 どなたかご存知の方、教えてください。

    • ベストアンサー
    • PHP
  • PHPのCGIモードとについて

    PHPのCGIモードとについて PHPのCGIモードというのがよく分かりません。 自分はcentOSにソースコードからPHPを入れております。 で、主にApacheと連携させています。 ただ、最近は #!/usr/local/bin/php -q などを最初に書いてコマンドラインからの使用が多くなっております。 自分は ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-freetype-dir=/usr/local/lib --with-gd --with-mysqli=/usr/local/mysql5.5/bin/mysql_config --with-pdo-mysql=/usr/local/mysql5.5 --with-mysql-sock=/var/lib/mysql/mysql.sock --with-zlib --with-xsl=/usr/lib --enable-mbregex --enable-mbstring --enable-bcmath --with-mcrypt --disable-posix-threads --enable-bcmath --with-readline --with-curl=/usr/local/curl --with-curlwrappers --with-openssl --with-openssl-dir=/usr/lib64/openssl --enable-pcntl のようにしているのですが、これでCGIモードにはなっているのでしょうか? いまいち概念が掴めないでおります。 具体的な事例や、CGIモードでない場合との違いなどを教えていただけないでしょうか? また、CGIモードにするために何かphp.ini等で設定をするような事があるのであれば、 どのようにしてCGIモードとして使えるようになるのかをアドバイスいただきたいと思います。

    • ベストアンサー
    • PHP
  • お使いの PHP MySQL ライブラリのバージョン 4.1.22 が

    お使いの PHP MySQL ライブラリのバージョン 4.1.22 が MySQL サーバのバージョン 5.1.48 と異なります。これは予期しない不具合を起こす可能性があります。 お世話になります。 RHLE4でPHP4 から PHP5.2.9へのアップグレードが完了しMySQLのバージョンも5.1.48にアップグレードしました。 インストールは問題なく終了しPHPからMySQLのアクセスも可能となっております。 しかし、phpMyAdminからMySQLにアクセスしようとすると、 【お使いの PHP MySQL ライブラリのバージョン 4.1.22 が MySQL サーバのバージョン 5.1.48 と異なります。これは予期しない不具合を起こす可能性があります。】 と表示されてしまいます。 PHPのライブラリバージョンを上げれば問題ないと思うのですが、 どうしてもバージョンがアップできません。 参考になるサイトややり方がわかる方がいたら教えていただけますでしょうか。 ■PHPのコンパイルオプション ./configure \ --prefix=/usr/local/php5 \ --with-config-file-path=/usr/local/php5/lib \ --enable-sigchild \ --enable-mbstring \ --enable-mbregex \ --enable-force-cgi-redirect \ --enable-zend-multibyte \ --with-gd \ --with-jpeg-dir=/usr \ --with-png-dir=/usr \ --with-zlib \ --with-zlib-dir=/usr \ --with-openssl \ --enable-ftp \ --with-curl \ --with-mysql=/usr/local/mysql5 \ --with-pdo-mysql=/usr/local/mysql5 \ --with-pgsql=/var/lib/pgsql ■MySQLのコンパイルオプション ./configure --prefix=/usr/local/mysql5 \ --localstatedir=/usr/local/mysql5/data \ --enable-assembler \ --with-client-ldflags=-all-static \ --with-mysqld-ldflags=-all-static \ --with-charset=utf8 \ --with-extra-charsets=all \ --with-tcp-port=3308 \ --with-unix-socket-path=/tmp/mysql5.sock \ --with-plugins=innobase

    • 締切済み
    • PHP