linux+g++: コマンドが見つかりません

linux+g++: コマンドが見つかりません

私のLinux Redhatコンピュータにインストールしたいと思いますgettext-0.19.1.tar.xz

まず、次のようにします。

cd gettext-0.19.1
./configure
make

make失敗しましたg++: command not found

libtool: compile:  g++ -DIN_LIBASPRINTF -DHAVE_CONFIG_H -I. -c autosprintf.cc  - o .libs/autosprintf.o
./libtool: line 1128: g++: command not found
make[5]: *** [autosprintf.lo] Error 1
make[5]: Leaving directory `/var/tmp/gettext-0.19.1/gettext-runtime/libasprintf'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/var/tmp/gettext-0.19.1/gettext-runtime/libasprintf'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/gettext-0.19.1/gettext-runtime'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/gettext-0.19.1/gettext-runtime'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/gettext-0.19.1'
make: *** [all] Error 2

どうすれば解決できますか?

注 - GCCがあります。

which gcc
/usr/bin/gcc

ベストアンサー1

開発ツールバーをインストールして起動します。次に、戻ってソフトウェアをコンパイルします。

yum groupinstall 'Development Tools'

単純なコンパイラ異常が必要な場合があります。開発キットにはautomake、、、、、、、、、などのコア開発ツールが含まれています。パッケージグループ内のすべてのソフトウェアを一覧表示するには、次のコマンドを使用します。gccperlpythonflexmakegdbbisonyum

yum group info 'Development Tools'

Fedora 20(最小)の場合gcc-c++

Debian ベースのシステムでは、次のように開発ツールバーをインストールします。

apt-get install build-essential

存在するボイドLinux、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、xbps-install -Su base-develおよびm4autoconfautomakebcbinutilsbisonedlibfl-develflexlibgcc-develkernel-libc-headersglibc-develislcloogmpfrlibmpcgcclibstdc++-develgcc-c++gettext-libsgettextgrofflibtoolmakepatchpkg-configtexinfounzipxz

おすすめ記事