2017-02-15 12 views
-1

でGCCをインストールすることができ、私はソースからのgccをビルドしようとすると、それが次のエラーで失敗します。ないカスタムLinux環境

checking build system type... x86_64-pc-linux-gnu 
checking host system type... x86_64-pc-linux-gnu 
checking target system type... x86_64-pc-linux-gnu 
checking for a BSD-compatible install... /usr/bin/install -c 
checking whether ln works... yes 
checking whether ln -s works... yes 
checking for a sed that does not truncate output... /bin/sed 
checking for gawk... gawk 
checking for libatomic support... yes 
checking for libcilkrts support... yes 
checking for libitm support... yes 
checking for libsanitizer support... yes 
checking for libvtv support... yes 
checking for libmpx support... yes 
checking for gcc... no 
checking for cc... no 
checking for cl.exe... no 
configure: error: in `/home/admin/test/gcc-6.3.0': 
configure: error: no acceptable C compiler found in $PATH 
See `config.log' for more details. 

この問題を解決する方法を..?

+1

をベースあなたはGCCをビルドするためにインストールCコンパイラが必要であることを知っていますか? –

+1

https://gcc.gnu.org/install/、特にhttps://gcc.gnu.org/install/prerequisites.htmlを読む必要があります.GCCをビルドするためには、すでにインストールされているコンパイラが必要です。 –

+0

ありがとうジョナサン、私はそれらのリンクを通過しました。コンパイラが既にそこにインストールされているかどうかをチェックする方法..? – jithin

答えて

1

のためにインストールCコンパイラ:

CentOSの/ RedHatの

yum install gcc gcc-c++ autoconf automake 

または

Debianの

sudo apt-get install build-essential  
+0

Hey Samuel、私のマシンで利用できるパッケージマネージャーはありません。ありがとう。 – jithin

関連する問題