JoeyDelp / JoSIM

Superconductor Circuit Simulator
MIT License
73 stars 33 forks source link

JoSIM installation CentOS 7 #65

Closed EugenZikiy closed 2 years ago

EugenZikiy commented 2 years ago

Hello!

I did the installation according to your instructions. At the stage "cmake .." I had the first error: cmake At the stage "cmake --build . --config Release" I had the second error: cmake build At the same time, I updated cmake and gcc: version The installation was performed on the CentOS 7 Minimal operating system.

Can you please tell me how this error can be fixed?

JoeyDelp commented 2 years ago

Hi, it seems though your installation of GCC isn't specifying the correct flags for CMake to understand what to add. I don't know how you installed GCC 11 on CentOS 7, I assume from source, since the official repositories only provide up to 4.8.

As a fix I suggest you use software collections to install GCC 8.

$ sudo yum install centos-release-scl
$ sudo yum install devtoolset-8
$ scl enable devtoolset-8 bash
$ gcc --version

This should give you GCC 8 which should understand the flags CMake tries to set. Just delete the CMakeCache.txt after you enable the software collection and regenerate the CMake cache before trying to compile again.

Let me know if this works.

EugenZikiy commented 2 years ago

I followed your instructions and the installation completed successfully. Thank you for your help!