Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
481 views
in Technique[技术] by (71.8m points)

compiler errors - LinuxBrew does not install latest version of gcc?

When I do g++ --versionon my Linux Ubuntu I get g++ (Home-brew GCC 5.5.0_7) 5.5.0. This was installed via brew install gcc.

As the latest version of gcc is 10.2, why has brew not installed this version? I had also tried sudo apt update sudo apt install build-essential sudo apt install gcc-9and gcc --version

but it did not change the version. Any advice?

Also, when I try to run an installation script I get the following error

error: command 'home/linuxbrew/.linuxbrew/bin/g++ failed with exit code 1

but

which gcc

gives

/home/linuxbrew/.linuxbrew/bin/g++

so I am not sure what happened.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...