I am trying to install this application github appunder tuxedOS which is based in ubuntu tuxedOS 2.the github has a dockerfile, which is based in a debian system dockerFileand I am trying to 'imitate' this instructions to install it directly in my system but I am getting some errors while compiling it.here is my current code (up to the point where it tries to compile the application and fails using cmake)
Nproc=8installationPath=$HOME/Programscd $installationPathrm -fr AlgoHexgit clone --single-branch --branch dev/dockerfile-without-gurobi https://github.com/cgg-bern/AlgoHex.gitsudo apt-get updatesudo apt-get install -y --no-install-recommends binutils build-essential ca-certificates clang cmake curl git libc-dev liblapack-dev libopenblas64-serial-dev libopenmpi-dev libtool locales ninja-build time tzdata wget pkg-config libgmp-dev libomp-dev gfortran clangmkdir -p /usr/src/coin-or mkdir -p /opt/coin-orcd /usr/src/coin-orsudo wget https://raw.githubusercontent.com/coin-or/coinbrew/master/coinbrewsudo chmod +x coinbrewcd /usr/src/coin-or sudo ./coinbrew fetch https://github.com/coin-or-tools/ThirdParty-Mumps@3.0.5sudo ./coinbrew fetch Ipopt@3.14.13 --skip-updatesudo ./coinbrew fetch Bonmin@master --skip-updatesudo ./coinbrew build Ipopt@3.14.13 --verbosity 2 --skip-update --prefix=/opt/coin-or --parallel-jobs $Nproc --tests none sudo ./coinbrew build Bonmin@master --verbosity 2 --skip-update --prefix=/opt/coin-or --parallel-jobs $Nproc --tests none sudo ln -s /opt/coin-or/include/coin-or /opt/coin-or/include/coincd $installationPath/AlgoHexmkdir buildcd buildexport IPOPT_HOME=/opt/coin-orexport CBC_DIR=/opt/coin-orIPOPT_HOME=/opt/coin-orCBC_DIR=/opt/coin-orcmake -G Ninja -D CMAKE_BUILD_TYPE=Release -D CMAKE_CXX_COMPILER=clang++ -D CMAKE_C_COMPILER=clang -D CMAKE_CXX_FLAGS="-march=native" -D BONMIN_ROOT_DIR=/opt/coin-or ..
the error I am getting is the following:
-- The C compiler identification is Clang 14.0.0-- The CXX compiler identification is Clang 14.0.0-- Detecting C compiler ABI info-- Detecting C compiler ABI info - done-- Check for working C compiler: /usr/bin/clang - skipped-- Detecting C compile features-- Detecting C compile features - done-- Detecting CXX compiler ABI info-- Detecting CXX compiler ABI info - failed-- Check for working CXX compiler: /usr/bin/clang++-- Check for working CXX compiler: /usr/bin/clang++ - brokenCMake Error at /usr/share/cmake-3.28/Modules/CMakeTestCXXCompiler.cmake:60 (message): The C++ compiler"/usr/bin/clang++" is not able to compile a simple test program. It fails with the following output: Change Dir: '/home/franco/Programs/AlgoHex/build/CMakeFiles/CMakeScratch/TryCompile-ZLRuCb' Run Build Command(s): /usr/bin/ninja -v cmTC_4363f [1/2] /usr/bin/clang++ -march=native -MD -MT CMakeFiles/cmTC_4363f.dir/testCXXCompiler.cxx.o -MF CMakeFiles/cmTC_4363f.dir/testCXXCompiler.cxx.o.d -o CMakeFiles/cmTC_4363f.dir/testCXXCompiler.cxx.o -c /home/franco/Programs/AlgoHex/build/CMakeFiles/CMakeScratch/TryCompile-ZLRuCb/testCXXCompiler.cxx [2/2] : && /usr/bin/clang++ -march=native CMakeFiles/cmTC_4363f.dir/testCXXCompiler.cxx.o -o cmTC_4363f && : FAILED: cmTC_4363f : && /usr/bin/clang++ -march=native CMakeFiles/cmTC_4363f.dir/testCXXCompiler.cxx.o -o cmTC_4363f && : /usr/bin/ld: cannot find -lstdc++: No such file or directory clang: error: linker command failed with exit code 1 (use -v to see invocation) ninja: build stopped: subcommand failed. CMake will not be able to correctly generate this project.Call Stack (most recent call first): CMakeLists.txt:18 (project)-- Configuring incomplete, errors occurred!
if I run:whereis clang++
I am getting clang++: /usr/bin/clang++