アプリ版:「スタンプのみでお礼する」機能のリリースについて

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

A 回答 (6件)

こんばんは。



makeは以下のパッケージを使っています。
もう少しですね、がんばって下さい。

make-3.81-sol10-x86-local.gz
http://sunfreeware.com/programlistintel10.html#m …

この回答への補足

ご教授いただき、有難うございます。

上記の make をインストールした場合、パス等の設定はどのようにされているのでしょうか?

補足日時:2007/07/26 09:16
    • good
    • 0

> 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

エラーになったなら、それはどんなエラーですか?

この回答への補足

ご教授いただき、有難うございます。

コンパイルできない理由がわかりました。
原因としましては「ld」の問題でした。

補足日時:2007/07/25 22:00
    • good
    • 0
この回答へのお礼

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

お礼日時:2007/07/25 22:07

こんにちは。



うちでも、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

この回答への補足

ご教授いただき、有難うございます。

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

補足日時:2007/07/25 22:02
    • good
    • 0

重要なのはこっちだと思う


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

この回答への補足

>あと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へ登録して起動させています。

補足日時:2007/07/25 13:14
    • good
    • 0
この回答へのお礼

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

お礼日時:2007/07/25 22:07

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

この回答への補足

ご回答有難うございます。

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

補足日時:2007/07/25 08:46
    • good
    • 0

>どうすればインストール出来るのでしょう



>installation or configuration problem: C compiler cannot create executables.


gccは入ってる?

この回答への補足

>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
--------------------------------------------------
にて確認しました。
ライブラリ等のパスの問題なのでしょうか?

補足日時:2007/07/24 20:14
    • good
    • 0

お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!