2017-04-12 40 views
0

https://sourceforge.net/projects/sserver/?source=typ_redirectからRobocupシミュレータをインストールしようとしています。ビルドするためのフォルダ内のREADMEファイルで述べたように、私は/.configureを実行する必要がありますが、このエラーが発生します。configure:error:C++コンパイラが実行可能ファイルを作成できません

[email protected]:~/intelligent_systems/project/rcssserver-15.3.0$ ./configure 
checking for a BSD-compatible install... /usr/bin/install -c 
checking whether build environment is sane... yes 
checking for a thread-safe mkdir -p... /bin/mkdir -p 
checking for gawk... no 
checking for mawk... mawk 
checking whether make sets $(MAKE)... yes 
checking whether make supports nested variables... yes 
checking for g++... no 
checking for c++... no 
checking for gpp... no 
checking for aCC... no 
checking for CC... no 
checking for cxx... no 
checking for cc++... no 
checking for cl.exe... no 
checking for FCC... no 
checking for KCC... no 
checking for RCC... no 
checking for xlC_r... no 
checking for xlC... no 
checking whether the C++ compiler works... no 
configure: error: in `/home/saurabh/intelligent_systems/project/rcssserver-15.3.0': 
configure: error: C++ compiler cannot create ex 

今、g ++コンパイラをチェックしました。

[email protected]:~/intelligent_systems/project/rcssserver-15.3.0$ g++ -v 
The program 'g++' is currently not installed. You can install it by typing: 
sudo apt install g++ 

しかし、私はグラムをインストールしようとしたとき++ compilier私はこれだ:、今

[email protected]:~/intelligent_systems/project/rcssserver-15.3.0$ sudo apt install g++ 
Reading package lists... Done 
Building dependency tree  
Reading state information... Done 
g++ is already the newest version (4:5.3.1-1ubuntu1). 
The following packages were automatically installed and are no longer required: 
    cpp-4.8 libcloog-isl4 xserver-xorg-legacy 
Use 'sudo apt autoremove' to remove them. 
0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded. 

を、私は、シミュレータをインストールするために何をすべきでしょうか?ありがとう!

答えて

1

apt-getがG ++の複数のバージョンを見つけ、さらにはそれらを並べてインストールすることができます再インストールしてみてください、助けていない場合。しかし、明らかにコマンドライン上の "g ++"はそれらのうちの1つのショートカットでなければなりません。ショートカットはsudo update-alternatives --config g++で変更できます。

+0

ねえ!はい、これは動作しますが、とにかくg ++バージョンの1つを削除しました。今、すべて正常に動作します。 – talos1904

0

まず、g ++がPATH変数に含まれていることを確認します。 echo $PATHに少なくとも/bin:/usr/binが含まれているかどうか確認してください。

次に、find/-name g++を見つけたら、そのフォルダをPATHに追加してください。

ことがg ++ apt-get remove g++; apt-get install g++

+0

g ++を再インストールし、g ++の2つのバージョンがインストールされているため、システムがクラッシュしていました。だから、私はそれらの1つを削除し、すべてが今は大丈夫です。ありがとう! – talos1904

関連する問題