• 締切済み

OSX Server 10.2.3でのPHPのコンパイルについて

MAC OSXでマルチバイト関数を使いたいので 最新版 PHP 4.3.0を導入しようと奮闘しています。 なんとかデベロッパーツールを入れて コンパイルまでかけてみたのですが下記のような エラーが出てすすみません。 noと出ているモジュールをすべて入れないといけないのですしょうか?もしそうであれば、やり方も教えていただけると幸いです。 環境:MAC OSX Server 10.2.3です。 ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --mandir=/usr/share/man --with-xml --with-apache=/src/apache_1.3.27 loading cache ./config.cache checking for Cygwin environment... no checking for mingw32 environment... no checking for working sed... sed checking host system type... powerpc-apple-darwin6.3 checking for gcc... no checking for cc... cc checking whether the C compiler (cc ) works... no configure: error: installation or configuration problem: C compiler cannot create executables. よろしくお願いいたします。

  • Mac
  • 回答数2
  • ありがとう数2

みんなの回答

  • asuca
  • ベストアンサー率47% (11786/24626)
回答No.2

参考URLにコンパイルの手順が乗っていますがそれに従ってもだめでしょうか?

参考URL:
http://php3.info/manual/ja/install.macosx.php
kzi_kzi
質問者

補足

お答えいただいてありがとうございます。 はい そのサイトを参考にはしております。

  • osamuy
  • ベストアンサー率42% (1231/2878)
回答No.1

config.logというファイルが残ってますので、まずはそれを調べてみて下さい。 Mac OS X 10.2.3 + December 2002 Mac OS X Developer Toolsを使ってますが、 Developer Toolsを入れていれば、/usr/bin/gccが存在しますので、gccがnoになるって事は、 DeveloperToolsがうまく入ってないのかも。 Hello worldみたいな2、3行のCプログラムを書いて、そいつをちゃんとコンパイルできるか試してみては。

kzi_kzi
質問者

お礼

なんとか自力でmakeを通しました。 助言いただいてありがとうございました。 でも なぜかapacheの再起動でエラーがでているのでした(泣) また 新規で質問します。 本当にありがとうございました。

kzi_kzi
質問者

補足

教えていただいてありがとうございます。 どうやらserverにもともとついていたデベロッパーツールはバージョンが低かったようでダウンロードしなおしてインストールしたらconfigureはうまくいくようになりました。 しかし!! 今度はmakeが途中で止まります。    ・    ・    ・ sapi/cli/getopt.o main/internal_functions_cli.o -lm -o sapi/cli/php ld: Undefined symbols: _php_url_scanner_adapt_single_url _php_url_scanner_add_var _zm_activate_url_scanner_ex _zm_deactivate_url_scanner_ex _zm_shutdown_url_scanner_ex _zm_startup_url_scanner_ex _php_url_scanner_reset_vars make: *** [sapi/cli/php] Error 1 シンボルがないようなのですがどうしていいものやら・・・。 申し訳ないのですが、ご教授いただけると幸いです。 <参考にしているページ> http://php3.info/manual/ja/install.macosx.php

関連するQ&A

  • Solaris10 コンパイル エラー

    Solaris 10 (x86) に PHP 5.2.3 をインストール(コンパイル)しようとしているのですが、次のエラーが出てインストール出来ません。 どうすればインストール出来るのでしょうか? どなたかわかる方がいたら教えて下さい。 -------------------------------------------------- loading cache ./config.cache checking for Cygwin environment... (cached) no checking for mingw32 environment... (cached) no checking for egrep... (cached) egrep checking for a sed that does not truncate output... (cached) /usr/bin/sed checking host system type... i386-pc-solaris2.10 checking target system type... i386-pc-solaris2.10 checking for gcc... (cached) gcc checking whether the C compiler (gcc ) works... no configure: error: installation or configuration problem: C compiler cannot create executables. --------------------------------------------------

  • 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

  • MySQLのコンパイル

    MySQL-5.0.16をインストールし、下記のようにconfigureを実行したところ、「C compiler が見つからない」旨のメッセージが出て先へ進めません。 yum で gcc や cc のインストールを試みてもうまくいきません。 どなたか、良いアドバイスをお願いします。 OSはFedoraCore4の英語バージョンです。 [root@Linux mysql-5.0.16]# ./configure --prefix=/usr/local/mysql --with-charset=ujis --with-extra-charset=all ------------------------------------------------- checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking "character sets"... default: ujis, collation: ujis_japanese_ci; compiled in: ujis latin1 utf8 checking whether to compile national Unicode collations... yes checking whether build environment is sane... yes checking whether make sets $(MAKE)... (cached) yes checking for gawk... (cached) gawk checking for gcc... no checking for cc... no checking for cc... no checking for cl... no configure: error: no acceptable C compiler found in $PATH See `config.log' for more details. ----------------------------------------------------

  • Solaris10でCコンパイラが見つからない?

    Solaris 10 1/06 X86版にphp5.1.2をインストールしようとしているのですが、下記エラーが表示されてコンパイルが終了してしまいます。 エラー内容を見るとCコンパイラが見つからないといっているようなのですが、どう対応すればいいのでしょうか・・・ Solaris10にはgccコンパイラがインストールされていると思うのですが・・・ どなたかよろしくおねがいします。 # ./configure loading cache ./config.cache checking for Cygwin environment... no checking for mingw32 environment... no checking for egrep... egrep checking for a sed that does not truncate output... /usr/bin/sed checking host system type... i386-pc-solaris2.10 checking target system type... i386-pc-solaris2.10 checking for gcc... no checking for cc... no configure: error: no acceptable cc found in $PATH

  • FedoraCoreでのコンパイル失敗

    FC11でPoundというソフトウェアをインストールしようと思っています。 http://www.eitaro-saba.com/2006/07/pound-のインストール/ 上記のサイトを参考にインストールし ./configure --with-ssl=/usr/include/openssl/ からmakeのコマンドを打ったところで「make: *** ターゲットが指定されておらず, makefile も見つかりません. 中止.」というエラーが発生し、悩んでいます。 ./configure --with-ssl=/usr/include/openssl/を打ったあとは以下のような反応が返ってきています。 checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for a BSD-compatible install... /usr/bin/install -c checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu configure: *** Checking for threads library and/or flags *** checking for the pthreads library -lpthreads... no checking whether pthreads work without any flags... no checking whether pthreads work with -Kthread... no checking whether pthreads work with -kthread... no checking for the pthreads library -llthread... no checking whether pthreads work with -pthread... yes checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE checking if more special flags are required for pthreads... no checking for cc_r... gcc configure: *** Parsing options *** configure: *** Checking for libraries *** checking for dlopen in -ldl... yes checking for socket in -lsocket... no checking for hstrerror in -lresolv... yes checking for BIO_new in -lcrypto... no Missing OpenSSL (-lcrypto) - aborted どこが問題なのでしょうか?よろしくお願いします。

  • phpのインストール

    fedora core1にphp4。3。6をインストール中です。 makeのターゲットの指定とはどうやったらいいのですか? [root@ocn src]# cd php-4.3.6 [root@ocn php-4.3.6]# ./configure --with-pgsql \ > --enable-mbstring \ > --enable-mbregex \ > --with-apxs=/opt/apache/bin/apxs creating cache ./config.cache checking host system type... i686-pc-linux-gnu checking for gcc... gcc checking whetherthe C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking whether gcc and cc understand -c and -o together... yes checking how to run the C preprocessor... gcc -E checking for AIX... no checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking for re2c... exit 0; checking for ranlib... ranlib checking whether ln -s works... yes checking for mawk... no checking for gawk... gawk checking for bison... no checking for byacc... no configure: warning: You will need bison if you want to regenerate the PHP parsers. checking for flex... lex checking for yywrap in -ll... no checking lex output file root... ./configure: line 2425: lex: command not found configure: error: cannot find output from lex; giving up You have new mail in /var/spool/mail/root [root@ocn php-4.3.6]# make make: *** ターゲットが指定されておらず、makefile が見つかりません. 中止。

  • 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の導入が必要のようですがよくわからないので詳しい方おねがいします。

  • PostgreSQLのインストール

    OSはwindows2000です。  windowsからPostgreSQLをインストールしたく本を見ながら 作業をしてみました。  まず、CygwinをインストールしてUnixライクな環境にして、 make-3.79,gcc-2.95.2,cygipc-1.11-1-src, PostgreSQL-7.1.3をダウンロードして、 cygwin/usr/src/で解凍させて Cygwinを起動させて、 cd /usr/src/postgres-7.1.3 と入力して次に ./configure --enable-multibyte=EUC_JP と入力したら loading cache ./config.cache checking host system type... i686-pc-cygwin checking which template to use... win checking whether to build with locale support... no checking whether to build with recode support... no checking whether to build with multibyte character support... yes, default EUC_J P checking whether to build with Unicode conversion support... no checking for default port number... 5432 checking for default soft limit on number of connections... 32 checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes using CFLAGS=-O2 checking whether the C compiler (gcc -O2 ) works... no configure: error: installation or configuration problem: C compiler cannot creat e executables. と出てしまうのですが原因がわかりません。 何がいけないんでしょうか?  

  • fedora php pdoでdb2接続方法

    お世話になっております。fedora 14、php 5.3.6-1.fc14、ibm db2 express c 9.7.4 linux x86で PDOを使ってDB2に接続するため、ドライバをインストールしようとしているのですが、方法がわかりません。 https://students.kiv.zcu.cz/doc/php5/manual/ja/ref.pdo-odbc.php.html http://www.php.net/manual/ja/install.pecl.phpize.php を参考に以下のようにターミナルで実行したのですが、 [root@FLORA-FEDORA ibm_db2-1.9.1]# phpize Configuring for: PHP Api Version: 20090626 Zend Module Api No: 20090626 Zend Extension Api No: 220090626 configure.in:3: warning: prefer named diversions configure.in:3: warning: prefer named diversions [root@FLORA-FEDORA ibm_db2-1.9.1]# ./configure checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for a sed that does not truncate output... /bin/sed checking for cc... cc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ISO C89... none needed checking how to run the C preprocessor... cc -E checking for icc... no checking for suncc... no checking whether cc understands -c and -o together... yes checking for system library directory... lib checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking for PHP prefix... /usr checking for PHP includes... -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib checking for PHP extension directory... /usr/lib/php/modules checking for PHP installed headers prefix... /usr/include/php checking if debug is enabled... no checking if zts is enabled... no checking for re2c... no configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers. checking for gawk... gawk checking for IBM_DB2 support... yes, shared checking Looking for DB2 CLI libraries... checking in yes... checking in yes/lib64... checking in yes/lib32... checking in yes/lib... not found configure: error: Please reinstall the DB2 CLI distribution となって、何か失敗したようです。 調べていると、 http://pecl.php.net/bugs/bug.php?id=14045 に同じような症状が書いてあり、 Seems like your DB2 is not installed properly, could you please re-install it and then check if you are able to build ibm_db2. The directory include should contain many more files like sqlcli1.h, sqlcli.h, sql.h etc. while installing ibm_db2 it finds for DB2 CLI include files in the include directory と記載されていたので、以下のように再インストール [root@FLORA-FEDORA expc]# ./db2_install 製品のインストール用のデフォルト・ディレクトリー - /opt/ibm/db2/V9.7 *********************************************************** 別のディレクトリーを選択してインストールしますか [yes/no] ? no DB2 インストールを初期化しています。 実行されるタスクの合計数: 14 実行される全タスクの合計見積もり時間: 374 ...省略 タスク #14 が終了しました。 正常 includeフォルダに、記載されているファイルは入ったようなのですが、 ./configureの実行結果は結局エラーでした。 fedora14でpdoを利用するためには、どのようにすればよいのでしょうか。 ./configureとかを利用する方法にはこだわりません。 簡単であればあるほどよいと思っています。 mysqlみたいに、 yumや、gpk-applicationを使って、簡単にできるなら、それがよいと考えています。 どなたかご存知の方、ご教授よろしくお願いいたします。

    • ベストアンサー
    • PHP
  • PHPのconfigureでmysqlエラーが

    CentOS 5 x86_64上でapache+php+mysqlのサーバ構築中ですが、どうもうまくいきません。 apacheとphpでconfigureのオプションを付けてインストールしたいので、rpm -eでhttpdとphpをアンインストールしたうえで、apacheとphpをmake installしようとしました。 apacheはうまくinstallできたのですが、phpはconfigureでエラーが出てしまいます。 以前Cent OS 5.2(32bit)でやった時は問題なかったのですが・・・ ↓configure時のエラーメッセージ -------------------- checking for mSQL support... no checking for MSSQL support via FreeTDS... no checking for MySQL support... yes checking for specified location of the MySQL UNIX socket... no checking for MySQL UNIX socket location... /var/lib/mysql/mysql.sock checking for mysql_close in -lmysqlclient... no checking for mysql_error in -lmysqlclient... no configure: error: mysql configure failed. Please check config.log for more information. -------------------- ↓config.logのエラーメッセージ -------------------- configure:60440: checking for mysql_error in -lmysqlclient configure:60459: gcc -o conftest -I/usr/include -g -O2 -Wl,-rpath,/usr/lib/mysql -L/usr/lib/mysql -L/usr/lib -Wl,-rpath,/usr/kerberos/lib64 -L/usr/kerberos/lib64 -Wl,-rpath,/usr -L/usr conftest.c -lmysqlclient -lz -lfreetype -lpng -lz -ljpeg -lcurl -lz -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lssl -lcrypto -ldl -lz -lcurl -ldl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lidn -lssl -lcrypto -lz -lxml2 -lz -lm 1>&5 /usr/bin/ld: skipping incompatible /usr/lib/mysql/libmysqlclient.so when searching for -lmysqlclient /usr/bin/ld: skipping incompatible /usr/lib/mysql/libmysqlclient.a when searching for -lmysqlclient /usr/bin/ld: cannot find -lmysqlclient collect2: ld returned 1 exit status configure: failed program was: #line 60448 "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 mysql_error(); -------------------- ↓apacheのconfigure ------------------------- ./configure --enable-layout=Apache --disable-autoindex --disable-status --disable-userdir --enable-modules=so --enable-mods-shared=max --enable-ssl --with-ssl=/usr/share/ssl --enable-rewrite=shared --enable-ext-filter ------------------------- ↓phpのconfigure ------------------------- ./configure --with-apxs2=/usr/local/apache2/bin/apxs --enable-mbstring --enable-mbregex --enable-gd-native-ttf --with-gd --with-ttf --with-jpeg-dir --with-freetype-dir --with-png-dir --with-zlib --with-curl --with-openssl --with-mysql ------------------------- バージョンは apache:2.2.11 php:5.2.10, 5.3.0の両方で試しましたが結果は同じ mysql-5.0.45-7.el5.x86_64 mysql-devel-5.0.45-7.el5.x86_64 です。 どなたかご教授いただけますと助かります・・・