1
がインストールされていない聞いています:私はそれを使用しようとすると、グラムの++がインストールされているが、私はそれを実行しようとすると、私はそれが私はUbuntuの16.04を使用していると私はG ++インストールされている
~$ 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).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
しかし、コンパイルします私が呼び出すと、g ++がインストールされていないというエラーメッセージが表示されます。
~$ g++
The program 'g++' is currently not installed. You can install it by typing:
sudo apt install g++
私はすでにapt update
とapt upgrade
を試みたが、何も変化します。ビルドに必要なパッケージもインストールされています:
~$ sudo apt-get install build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version (12.1ubuntu2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
g ++はどのように動作させることができますか?
しようとしています 'gcc --version' – Bl4ckb0ne
削除して再インストールしましたか? –
@ Bl4ckb0ne:gcc(Ubuntu 6.2.0-3ubuntu11〜16.04)6.2.0 20160901 – rvbarreto