g++のインストール方法について

このQ&Aのポイント
  • FedoreCore3にjikestというソフトをインストールしようとしていますが、g++のインストールに問題が発生しています。
  • g++がインストールされていないため、configureエラーが発生しています。
  • g++のインストール方法についてアドバイスをお願いします。
回答を見る
  • ベストアンサー

g++について

FedoreCore3にjikestというソフトをインストールしようとしています。 このソフトをダウンロードしてきてconfigureしようとするとエラーがでてきてしまい先にすすめません。 ターミナルではこのように出力されます。 checking for C++ compiler default output file name... configure: error: C++ compiler cannot create executables See `config.log' for more details. そしてconfig.logをみてみると configure:2023: checking for C++ compiler version configure:2026: g++ --version </dev/null >&5 ./configure: line 2027: g++: command not found configure:2029: $? = 127 configure: failed program was: というように記述されています g++がどうやらインストールされていないのでこのようなことになっているようなのですが、 g++をどこからどのようにインストールすればいいのかわかりません。 どなたかアドバイスおねがいします。

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

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

rootになって、 yum install gcc-c++ でg++をインストールできます。 または「パッケージの追加と削除」(メニューでは「アプリケーションの追加/削除」?)で「開発ツール」を選ぶと標準パッケージに入っているはずです。

naokanak
質問者

お礼

ありがとうございます。 無事にg++をインストールすることができました。 本当にたすかりました。感謝です!!

関連するQ&A

  • Linuxによるapacheのインストール

    ./configure --enable-so とすると、エラーがでました。 configure: error: C compiler cannot create executables See `config.log' for more details. config.logの中身のどこをみればわかるのでしょうか?

  • 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. どのようにすればうまく実行することができますか??

  • VirtualPCにてCentOs5を使用しています。

    VirtualPCにてCentOs5を使用しています。 mono2.6.4を導入しようと考えているのですが、configureの時点でエラーが発生します。 以下参考サイト http://ameblo.jp/ishina/entry-10505426107.html 以下エラー内容 [root@localhost mono-2.6.4]#./configure ・・・ checking for C compiler default output file name... configure: error: in '/root/mono-2.6.4: configure: error: C compiler cannot create executables See 'config.log' for more details. 原因がまったくわかりません。 どこが問題か教えていただけないでしょうか。

  • fodora10でのソフトウェアのインストール

    linux初心者です。 タイトルの通り、現在使用しているfedora10で、ソフトウェアのインストールができず、困っています。 具体的に言うと、xxx.tar.gzのようなものをインストールしようとすると、./configureのところで #./configure 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 gawk... gawk checking for a BSD-compatible install... /usr/bin/install -c checking whether ln -s works... yes checking for ranlib... ranlib 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 g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking how to run the C++ preprocessor... g++ -E checking for wx-config... no configure: error: Please check that wx-config is in path, the directory where wxWindows libraries are installed (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH or equivalent variable and wxWindows is version 2.6.0 or above. のようになり、その後makeをすると # make make: *** ターゲットが指定されておらず, makefile も見つかりません. 中止. となってしまいます。./configure でエラーが出ている様なのですが、よく分かりません。 どなたか知っていましたら解決法を教えていただければありがたいです。お願いします。

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

  • VineLinux3.2でのMRTG(こちらで回答ねがいます)

    こんばんわ MRTGを導入しようと思ってダウンロード→tar.gz解凍→./configureを打ったら以下のエラーメッセージが出てきます。 [root@localhost mrtg-2.12.2]# ./configure 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. このときはどうすればよいのでしょうか。 尚参考ページとして、http://vine.1-max.net/net-snmp+MRTG.htmlを見てやりました。

  • 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コンパイラが見つからない(?) のようなことだと思われるのですが 解決方法として如何すればよいのでしょうか? よろしくお願い致します。   

  • Linuxにおけるoctaveのインストール

    CentOSでoctaveをインストールしようと思い、 以下のURLを参考にインストールしようとしました。 http://www.obihiro.ac.jp/~suzukim/masuda/octave/octave_version3_compile.html が、最後のOctaveの./configureを実行する際に 以下のようなエラーが出てしまいました。(抜粋) checking for long long int... yes checking for unsigned long long int... yes checking for sigset_t... yes checking for sig_atomic_t... yes checking for short... yes checking size of short... configure: error: cannot compute sizeof (short) See `config.log' for more details. config.logは以下のようになっていました。(抜粋) configure:17378: checking size of short configure:17728: gcc -o conftest -g -O2 -I/usr/local/include conftest.c -lhdf5 -lz -lm >&5 configure:17731: $? = 0 configure:17737: ./conftest ./conftest: error while loading shared libraries: libhdf5.so.0: cannot open shared object file: No such file or directory configure:17740: $? = 127 configure: program exited with status 127 configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" (中略) | return 0; | } configure:17751: error: cannot compute sizeof (short) See `config.log' for more details. 参考URLに書いてあることは一通りやっています。 octaveのバージョンを変えてみてもダメでした。 何か解決策がわかる方いらっしゃいましたら、回答お待ちしております。

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