CMake no detect C++ Compilier
I asked this question at ROS. I am looking for someone know to solve it.
https://answers.ros.org/question/294883/catkin_make-error-melodic/
currently, I try to list the g++: "which g++" and "echo echo $CXX".
sudo apt-get install build-essential g++
[sudo] password for than:
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version (12.4ubuntu1).
g++ is already the newest version (4:7.2.0-1ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
I also try to upgrade g++
sudo apt-get upgrade g++
Reading package lists... Done
Building dependency tree
Reading state information... Done
g++ is already the newest version (4:7.2.0-1ubuntu1).
Calculating upgrade... Done
The following packages have been kept back:
wireshark-common wireshark-qt
The following packages will be upgraded:
libssl-dev libssl-doc libssl1.0.0 openssl
4 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Need to get 0 B/4,002 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
(Reading database ... 774251 files and directories currently installed.)
Preparing to unpack .../libssl-doc_1.0.2g-1ubuntu13.6_all.deb ...
Unpacking libssl-doc (1.0.2g-1ubuntu13.6) over (1.0.2g-1ubuntu13.5) ...
Preparing to unpack .../libssl-dev_1.0.2g-1ubuntu13.6_amd64.deb ...
Unpacking libssl-dev:amd64 (1.0.2g-1ubuntu13.6) over (1.0.2g-1ubuntu13.5) ...
Preparing to unpack .../libssl1.0.0_1.0.2g-1ubuntu13.6_amd64.deb ...
Unpacking libssl1.0.0:amd64 (1.0.2g-1ubuntu13.6) over (1.0.2g-1ubuntu13.5) ...
Preparing to unpack .../openssl_1.0.2g-1ubuntu13.6_amd64.deb ...
Unpacking openssl (1.0.2g-1ubuntu13.6) over (1.0.2g-1ubuntu13.5) ...
Setting up libssl1.0.0:amd64 (1.0.2g-1ubuntu13.6) ...
Setting up libssl-dev:amd64 (1.0.2g-1ubuntu13.6) ...
Processing triggers for libc-bin (2.26-0ubuntu2.1) ...
Setting up openssl (1.0.2g-1ubuntu13.6) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up libssl-doc (1.0.2g-1ubuntu13.6) ...