Solaris10 コンパイルエラー

このQ&Aのポイント
  • Solaris 10 (x86) に PHP 5.2.3 をインストール(コンパイル)しようとしているのですが、エラーが発生してインストールできません。
  • Cygwin環境やmingw32環境のチェックを行い、Cコンパイラが正しく動作しないためにエラーが発生しています。
  • この問題を解決する方法がわからない場合は、専門知識を持つ人に相談することをおすすめします。
回答を見る
  • ベストアンサー

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. --------------------------------------------------

質問者が選んだベストアンサー

  • ベストアンサー
noname#39970
noname#39970
回答No.1

>どうすればインストール出来るのでしょう >installation or configuration problem: C compiler cannot create executables. gccは入ってる?

club_333
質問者

補足

>gccは入ってる? gccはインストールしています。 別の方が似たような事を質問していたので、そちらを確認しました。 -------------------------------------------------- $ which gcc /opt/sfw/bin/gcc -------------------------------------------------- 及び -------------------------------------------------- $ gcc -v Reading specs from /opt/sfw/lib/gcc/i386-pc-solaris2.10/3.4.2/specs Configured with: ../gcc-3.4.2/configure --prefix=/opt/sfw --with-ld=/usr/ccs/bin/ld \ --with-gnu-as --with-as=/opt/sfw/bin /gas --enable-shared --disable-libgcj Thread model: posix gcc version 3.4.2 -------------------------------------------------- にて確認しました。 ライブラリ等のパスの問題なのでしょうか?

その他の回答 (5)

  • xjd
  • ベストアンサー率63% (1021/1612)
回答No.6

こんばんは。 makeは以下のパッケージを使っています。 もう少しですね、がんばって下さい。 make-3.81-sol10-x86-local.gz http://sunfreeware.com/programlistintel10.html#make

club_333
質問者

補足

ご教授いただき、有難うございます。 上記の make をインストールした場合、パス等の設定はどのようにされているのでしょうか?

  • entree
  • ベストアンサー率55% (405/735)
回答No.5

> configure: error: installation or configuration problem: C compiler cannot create executables. これは簡単なプログラムをコンパイルできなかったときに発生するエラーです。詳細は config.log を確認していただくことにして、 こんなソースを作ってコンパイルしたとき、エラーになりませんか? ==== /* conftest.c */ int main() { return 0; } ==== % gcc conftest.c -o /dev/null エラーになったなら、それはどんなエラーですか?

club_333
質問者

お礼

大変、勉強になりました。 ご教授いただき、有難うございました。

club_333
質問者

補足

ご教授いただき、有難うございます。 コンパイルできない理由がわかりました。 原因としましては「ld」の問題でした。

  • xjd
  • ベストアンサー率63% (1021/1612)
回答No.4

こんにちは。 うちでも、Solaris10 for x86 で以下のソフトを、ソースから コンパイルして動かしています。(Solarisのパッケージではない) 参考にして下さい。 -bash-3.00# uname -ra SunOS unknown 5.10 Generic i86pc i386 i86pc -bash-3.00# /usr/local/apache2/bin/httpd -v Server version: Apache/2.2.4 (Unix) Server built:  May 29 2007 16:35:27 -bash-3.00# /usr/local/bin/php -v PHP 5.2.3 (cli) (built: Jun 1 2007 17:56:11) Copyright (c) 1997-2007 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies 各configureのオプションは以下の通り(とりあえず動けばいいレベル) (apache2.2.24) --enable-so --enable-proxy --enable-proxy-ajp /* これはApache2-Tomcat連携の為 */ (php5.2.3) --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql --enable-mbstring (mysql5.0.45) --prefix=/usr/local/mysql --with-charset=ujis --with-extra-charsets=all --with-mysqld-user=mysql (gccはSolarisのパッケージを使用) -bash-3.00# gcc -v Reading specs from /opt/sfw/lib/gcc/i386-pc-solaris2.10/3.4.2/specs Configured with: ../gcc-3.4.2/configure --prefix=/opt/sfw --with-ld=/usr/ccs/bin/ld \ --with-gnu-as --with-as=/opt/sfw/bin/gas --enable-shared --disable-libgcj Thread model: posix gcc version 3.4.2

club_333
質問者

補足

ご教授いただき、有難うございます。 上記を参考に再インストール(コンパイル)してみます。 ちなみに、make は gmake を使ってインストール(コンパイル)しているのでしょうか?

noname#39970
noname#39970
回答No.3

重要なのはこっちだと思う >>gcc version 3.4.2 >and either libgcc-3.4.6 or gcc-3.4.6 be installed. The above packages may have their own extra dependencies. あとmbstringはmultibyteの文字。文字コードだから最低でもlibiconvが必要 http://directory.fsf.org/libiconv.html mysqlはmyqslを先に入れてないと無理だと思う。 http://www-jp.mysql.com/

club_333
質問者

お礼

大変、勉強になりました。 ご教授いただき、有難うございました。

club_333
質問者

補足

>あとmbstringはmultibyteの文字。文字コードだから最低でもlibiconvが必要 >​http://directory.fsf.org/libiconv.html​ 現在、 bison-1.875d-sol10-intel-local gcc-3.3.6-sol10-intel-local gzip-1.3.5-sol10-intel-local libgcc-3.3-sol10-intel-local libiconv-1.8-sol10-intel-local libtool-1.5-sol10-intel-local make-3.80-sol10-intel-local m4-1.4.1-sol10-intel-local tar-1.15.1-sol10-intel-local wget-1.9.1-sol10-intel-local のパッケージをインストールしています。 >mysqlはmyqslを先に入れてないと無理だと思う。 >​http://www-jp.mysql.com/http://dev.mysql.com/downloads/のパッケージで mysql-5.0.41-solaris10-i386.pkg.gz をインストールしています。 SMFへ登録して起動させています。

noname#39970
noname#39970
回答No.2

>gcc version 3.4.2 http://sunfreeware.com/programlistintel10.html#php 以下抜粋 ------------------------- php-5.2.3-sol10-x86-local.gz The PHP scripting language - installs in /usr/local/php. This build includes support for openssl, curl, gd, ldap, mysql, and postgresql as requested by many users. This PHP can only be used with apache 2.2.4, not apache 2.0.59. Dependencies: libiconv, openssl-0.9.8e, curl, expat, fontconfig, freetype, gd, libiconv, jpeg, openldap, mysql, libpng, sasl, libxml2, zlib, postgresql, xpm, and either libgcc-3.4.6 or gcc-3.4.6 be installed. The above packages may have their own extra dependencies.

club_333
質問者

補足

ご回答有難うございます。 http://sunfreeware.com/programlistintel10.html#php のものは試してみましたが、一つ問題がありました。 「mbstring」を使いたいのですが、対応していませんでした。 「mbstring」、「mysql」を使う事に対応したパッケージはあるのでしょうか?

関連するQ&A

  • 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

  • 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
  • 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. ----------------------------------------------------

  • debian arm fsniperのインストール

    buffuloのLS-XHLシリーズにdebianを入れ、fsniperをインストールしようと思っていますが ./configureでエラーが出ます。 root@XXX:/fsniper-1.3.1# ./configure checking whether to enable maintainer-specific portions of Makefiles... no checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking for style of include used by make... GNU 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 dependency style of gcc... gcc3 checking for library containing strerror... none required checking for ranlib... ranlib checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for gcc... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking dependency style of gcc... (cached) gcc3 checking for a BSD-compatible install... /usr/bin/install -c checking for magic_open in -lmagic... no configure: error: libmagic not found 何か前進するための知恵をお借りできませんでしょうか? よろしくお願い致します。

  • 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 どこが問題なのでしょうか?よろしくお願いします。

  • rsyncのインストール(エラー発生)

    solaris9のマシンでデータの同期を行いたい為、rsyncを導入しようと思いました。 http://ash.jp/freebsd/rsync.htm などのサイトを参考にインストールを実行しようとしたところ、 ------------------------------------------------------------ # ./configure configure: Configuring rsync 2.6.8 checking build system type... sparc-sun-solaris2.8 checking host system type... sparc-sun-solaris2.8 checking target system type... sparc-sun-solaris2.8 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. # ------------------------------------------------------------ のようにエラーが発生してしまいました Cコンパイラが見つからない(?) のようなことだと思われるのですが 解決方法として如何すればよいのでしょうか? よろしくお願い致します。   

  • 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. と出てしまうのですが原因がわかりません。 何がいけないんでしょうか?  

  • 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

  • vpopmailのインストール

    qmail関連ツールでvpopmailを入れようとしたところ./configureの部分で 詰まってしまいインストール出来ない状態です。 ./configure --enable-logging=p       --enable-relay-clear-minutes=30       --enable-roaming-users=y       --enable-tcpserver-file=/etc/tcpserver.d/smtp       --enable-default-domain=       --enable-hardquota=100000000 下記のメッセージが出てエラーになってしまいます。 --- loading cache ./config.cache checking for a BSD compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking whether make sets ${MAKE}... yes checking for working aclocal... missing checking for working autoconf... missing checking for working automake... missing checking for working autoheader... missing checking for working makeinfo... found checking host system type... i386-unknown-freebsd4.7 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 checking for ranlib... ranlib checking for POSIXized ISC... no checking how to run the C preprocessor... gcc -E checking for AIX... no No vpopmail user found. Please add the vchkpw group and vpopmail user. Then run configure again yes configure: error: No vpopmail user. --- No vpopmail user. <= ユーザーが作成されていない? # adduser -u 2009 -g vchkpw -d /usr/local/vpopmail -s /bin/false vpopmail ↑一応作ってあるのですが...

  • rubyのインストールについて

    windowsでLinux(ubuntu)を動かしております。 で、rubyをインストールしたいんですが、インストール途中で以下のようなエラーがでました。 $ ./configure checking build system type... i686-pc-linux-gnulibc1 checking host system type... i686-pc-linux-gnulibc1 checking target system type... i686-pc-linux-gnulibc1 checking for gcc... gcc checking for C compiler default output file name... configure: error: C compiler cannot create executables See `config.log' for more details. どのようにすればうまく実行することができますか??