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.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」を使う事に対応したパッケージはあるのでしょうか?
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
--------------------------------------------------
にて確認しました。
ライブラリ等のパスの問題なのでしょうか?
お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!
似たような質問が見つかりました
- PostgreSQL PostgreSQL14.6のSSL対応について 1 2023/01/05 15:42
- その他(プログラミング・Web制作) python fbprophetについて 1 2022/09/29 19:44
- MySQL 参考書に従って入力したつもりでしたが、最後はエラーがでました。 1 2022/09/28 03:45
- ビデオカード・サウンドカード DellのPC(xp)に、サウンドカードドライバ(内蔵)をインストールしたい。 1 2023/07/31 11:32
- C言語・C++・C# C++のcase文の書き方 4 2023/02/24 20:50
- Windows 10 VirtualBox 7のゲストOSでの物理HDDパーティションのマウント方法 2 2023/05/04 13:01
- その他(SNS・コミュニケーションサービス) 爆サイやっていたら、下のような文字が出ました! これは何なのでしょうか? nginx error! 1 2023/06/09 12:27
- Gmail 【お助け!】サーバーからのメール送信でGmailに送信されない問題について 1 2023/06/20 22:03
- その他(SNS・コミュニケーションサービス) 自分のpcがハッキングされたようなメールが来たのですがどうすればいいですか? 4 2022/10/02 16:14
- ボランティア ウクライナ人からどういうこと? 6 2022/03/28 07:37
関連するカテゴリからQ&Aを探す
おすすめ情報
デイリーランキングこのカテゴリの人気デイリーQ&Aランキング
-
make pycaffe実行時に発生する#...
-
cygwin上の開発環境構築時のエ...
-
ダウンロードファイルなどは、...
-
PHP5ビルド時のundefined refer...
-
TomcatとApacheの連携(mod_jk2)...
-
gdbをインストールできない
-
make でエラー
-
パソコンでゲームをプレイしよ...
-
Windows2000を最新マシンにイン...
-
Raspberry Pi 3 A+ ブラウザ遅い
-
virtual boxにインストールした...
-
百均で売っていたヘアスタイリ...
-
ubuntu 初期化について
-
M.2 NVME SSDがWindowsからはア...
-
linux mint での無線LANが認識...
-
システムBIOS画面をキャプチャ...
-
メールソフトBecky!について
-
dpkg -lの出力結果について
-
OfficeProfessional2007インス...
-
オフラインのUbuntuにパッケー...
マンスリーランキングこのカテゴリの人気マンスリーQ&Aランキング
-
gccのインクルードパスの確認
-
makeコマンドができない
-
He had his daughter make some...
-
*** ターゲット `all' を make ...
-
Linuxのgccのインクルードパス?
-
make でエラー
-
macos での /usr/local/lib と...
-
glibcバージョンアップ
-
perlのダウングレード方法
-
Mac上でPythonのtkinterを使っ...
-
ソースからmakeした場合の削除方法
-
ダウンロードファイルなどは、...
-
OpensslのVer.ダウン
-
Apacheのバージョンアップ方法
-
Solaris10でCコンパイラが見...
-
C言語ファイルのコンパイルがで...
-
Debianでのmakeコマンドインス...
-
Apache2.2.4のmod_authnz_ldap
-
linuxの/usr/includeについて
-
configure error
おすすめ情報