Open LapinFou opened 3 years ago
What's the CMake version you're using? It's very likely it's too old and incompatible with the current GNUInstallDirs.cmake
we're shipping.
@lpereira
First of all, thanks a lot for helping me. 👍
I think it is cmake version 2.8.12. I well check tomorrow morning when I will be back at the office.
What would be the minimum required version?
Maybe , I can install and use cmake3
from the EPEL repo instead `cmake?
@lpereira Indeed, it was an issue with cmake being too old (version 2.8.12.2). It is unbelievable that CentOS7/RHEL7 are packed with this "jurassic" version.... 😖
To summarize, here is the procedure for CentOS7/RHEL7 system:
## Install EPEL
sudo yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
## Install cmake3 from EPEL repo
sudo yum install cmake3
## Install required source code:
sudo yum install glib-devel gtk+-devel zlib-devel libsoup-devel json-glib-devel
## Prepare the build folder:
git clone https://github.com/lpereira/hardinfo.git
cd hardinfo
mkdir build
cd build
## Compile and install hardinfo to a dedicated path:
cmake3 .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=[YOURCUSTOM_PATH]/hardinfo/[VERSION]
make
make install
## Compile and install hardinfo to the default path:
cmake3 .. -DCMAKE_BUILD_TYPE=Release
make
sudo make install
Maybe this procedure could be added in your Wiki page?
Just a suggestion; maybe a cmake version check could be added in the makefile?
I ran into the same issue @ ubuntu 21.10 impish. cmake version 3.18.4 was checked. needed to run make install command as root. For beginners like me it is not a matter of course.
sudo make install
instead of make install
after this, Alt+F2
write hardinfo
press enter
have fun
Hi Folks,
I'm trying to build
hardinfo
for RedHat 7. Here are the commands I used on one of our compute server:Unfortunately, I got the following errors:
Off course the
cmake ..
command without any arguments gives the same result and the file/home/cad/tmp/hardinfo/cmake/GNUInstallDirs.cmake
does exist.I tried few things, however I'm not a dev, thus I'm short of ideas. Any help would be very very welcome. 😊
Here are the details of our Linux server:
Seb