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.
--------------------------------------------------
No.1ベストアンサー
- 回答日時:
>どうすればインストール出来るのでしょう
>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
--------------------------------------------------
にて確認しました。
ライブラリ等のパスの問題なのでしょうか?
No.6
- 回答日時:
こんばんは。
makeは以下のパッケージを使っています。
もう少しですね、がんばって下さい。
make-3.81-sol10-x86-local.gz
http://sunfreeware.com/programlistintel10.html#m …
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
エラーになったなら、それはどんなエラーですか?
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
この回答への補足
ご教授いただき、有難うございます。
上記を参考に再インストール(コンパイル)してみます。
ちなみに、make は gmake を使ってインストール(コンパイル)しているのでしょうか?
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/
この回答への補足
>あと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へ登録して起動させています。
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.
この回答への補足
ご回答有難うございます。
http://sunfreeware.com/programlistintel10.html#php
のものは試してみましたが、一つ問題がありました。
「mbstring」を使いたいのですが、対応していませんでした。
「mbstring」、「mysql」を使う事に対応したパッケージはあるのでしょうか?
お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!
関連するカテゴリからQ&Aを探す
おすすめ情報
- ・漫画をレンタルでお得に読める!
- ・人生のプチ美学を教えてください!!
- ・10秒目をつむったら…
- ・あなたの習慣について教えてください!!
- ・牛、豚、鶏、どれか一つ食べられなくなるとしたら?
- ・【大喜利】【投稿~9/18】 おとぎ話『桃太郎』の知られざるエピソード
- ・街中で見かけて「グッときた人」の思い出
- ・「一気に最後まで読んだ」本、教えて下さい!
- ・幼稚園時代「何組」でしたか?
- ・激凹みから立ち直る方法
- ・1つだけ過去を変えられるとしたら?
- ・【あるあるbot連動企画】あるあるbotに投稿したけど採用されなかったあるある募集
- ・【あるあるbot連動企画】フォロワー20万人のアカウントであなたのあるあるを披露してみませんか?
- ・映画のエンドロール観る派?観ない派?
- ・海外旅行から帰ってきたら、まず何を食べる?
- ・誕生日にもらった意外なもの
- ・天使と悪魔選手権
- ・ちょっと先の未来クイズ第2問
- ・【大喜利】【投稿~9/7】 ロボットの住む世界で流行ってる罰ゲームとは?
- ・推しミネラルウォーターはありますか?
- ・都道府県穴埋めゲーム
- ・この人頭いいなと思ったエピソード
- ・準・究極の選択
デイリーランキングこのカテゴリの人気デイリーQ&Aランキング
-
gccのインクルードパスの確認
-
perlのダウングレード方法
-
FedoraCore4にfirefoxをインス...
-
make でエラー
-
makeコマンドができない
-
Mac OS X, X11 で、pkg-config ...
-
HP-UXでImageMagick起動時にエラー
-
Mac上でPythonのtkinterを使っ...
-
MYSQLのmakeができない!(Redha...
-
glibcバージョンアップ
-
ubuntu 初期化について
-
パソコンでゲームをプレイしよ...
-
外部レポジトリとは
-
「クラスが登録されていません 」
-
PUTTYでログインしたコンソール...
-
Linux Mint 20に重複ファイルを...
-
Linux mintを消してWindows10を...
-
virtual boxにインストールした...
-
CPANでインストールしたモジュ...
-
Apacheとtomcatの削除
マンスリーランキングこのカテゴリの人気マンスリーQ&Aランキング
-
gccのインクルードパスの確認
-
makeコマンドができない
-
Solaris10でCコンパイラが見...
-
*** ターゲット `all' を make ...
-
Debianでのmakeコマンドインス...
-
Linuxのgccのインクルードパス?
-
make でエラー
-
perlのダウングレード方法
-
ソースからmakeした場合の削除方法
-
ダウンロードファイルなどは、...
-
C言語ファイルのコンパイルがで...
-
macos での /usr/local/lib と...
-
linuxの/usr/includeについて
-
glibcバージョンアップ
-
./configureの次にmakeが出来ま...
-
opensslのrpmインストールとsou...
-
LinuxにPHPをソースからインス...
-
ツールのインストールができません
-
solarisのmakeについて
-
phpで再度configureする方法
おすすめ情報