Hi Friends

I am a regular Linux user but mostly of apps from software center and have no experience in any type of programming or making/installing any apps from git etc..

I am trying to install Hardinfo app from https://github.com/lpereira/hardinfo.git as its not avaaliable in the software center of Solus.

But when i try cmake i get the below error

$ sudo cmake .. CMakeLists.txt
-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc - broken
CMake Error at /usr/share/cmake-3.17/Modules/CMakeTestCCompiler.cmake:60 (message):
The C compiler

"/usr/bin/cc"

is not able to compile a simple test program.

It fails with the following output:

Change Dir: /home/lokesh/build/hardinfo/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_fbbf5/fast && /usr/bin/gmake  -f CMakeFiles/cmTC_fbbf5.dir/build.make CMakeFiles/cmTC_fbbf5.dir/build
gmake[1]: Entering directory '/home/lokesh/build/hardinfo/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_fbbf5.dir/testCCompiler.c.o
/usr/bin/cc    -o CMakeFiles/cmTC_fbbf5.dir/testCCompiler.c.o   -c /home/lokesh/build/hardinfo/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTC_fbbf5
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_fbbf5.dir/link.txt --verbose=1
/usr/bin/cc      -rdynamic CMakeFiles/cmTC_fbbf5.dir/testCCompiler.c.o  -o cmTC_fbbf5 
/usr/bin/ld: cannot find /usr/lib64/libc_nonshared.a
collect2: error: ld returned 1 exit status
gmake[1]: *** [CMakeFiles/cmTC_fbbf5.dir/build.make:107: cmTC_fbbf5] Error 1
gmake[1]: Leaving directory '/home/lokesh/build/hardinfo/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:141: cmTC_fbbf5/fast] Error 2



CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:1 (project)

-- Configuring incomplete, errors occurred!
See also "/home/lokesh/build/hardinfo/CMakeFiles/CMakeOutput.log".
See also "/home/lokesh/build/hardinfo/CMakeFiles/CMakeError.log".

I tried installing g++ and gcc but no luck

So please help me to install this software as i am very much excited to learn some new tricks 🙂

Regards
Lokesh

JoshStrobl
Hi
Thank you for your reply.

i tried the command sudo eopkg install -c system.devel and now iam gettin the below error for gtk+-2.0 not found

$ sudo cmake .. CMakeLists.txt
-- LOCALEDIR = /usr/local/share/locale
-- Building HardInfo for architecture: linux-x86
-- Building for GTK2
-- Checking for modules 'gtk+-2.0>=2.10;glib-2.0>=2.10;gthread-2.0>=2.10;gmodule-export-2.0>=2.10'
-- No package 'gtk+-2.0' found
CMake Error at /usr/share/cmake-3.17/Modules/FindPkgConfig.cmake:497 (message):
A required package was not found
Call Stack (most recent call first):
/usr/share/cmake-3.17/Modules/FindPkgConfig.cmake:681 (_pkg_check_modules_internal)
CMakeLists.txt:88 (pkg_check_modules)

-- Configuring incomplete, errors occurred!
See also "/home/lokesh/build/hardinfo/CMakeFiles/CMakeOutput.log".
See also "/home/lokesh/build/hardinfo/CMakeFiles/CMakeError.log".

i tried searching gtk2.0 but cant find via eopkg or software center

so please suggest what i do next ?

Thank You

    algent
    Hi
    Thank You for your reply

    after installing the libgtk-2-devel. My "cmake" command was executed successfully

    but now i am stuck at "make" command and getting the below error

    $ sudo make
    [ 12%] Built target sysobj_early
    [ 17%] Built target network
    [ 35%] Built target computer
    [ 52%] Built target devices
    [ 53%] Linking C executable hardinfo
    /usr/bin/ld: cannot open output file hardinfo: Is a directory
    collect2: error: ld returned 1 exit status
    make[2]: *** [CMakeFiles/hardinfo.dir/build.make:497: hardinfo] Error 1
    make[1]: *** [CMakeFiles/Makefile2:235: CMakeFiles/hardinfo.dir/all] Error 2
    make: *** [Makefile:150: all] Error 2

    please dont mind i have no idea about programming so maybe i am doing many mistakes etc..

    please let me know what to do next ?

    Thank You

      lookse Try to start this again, and do:

      git clone https://github.com/lpereira/hardinfo.git
      sudo eopkg it libsoup-devel libgtk-2-devel  libjson-glib-devel -c system.devel
      cd hardinfo
      mkdir build
      cd build
      cmake ..
      make

      Just built it.
      If you want to package it, this is the package.yml: https://hasteb.in/kiqolena.sql

        Also please read the output, Google your error, use eopkg search for looking up packages, etc. so people don't have to hold your hand step-by-step 🙂

          algent

          Hi

          Thank your very much.

          After following your steps i was able to install the software successfully.

          Thank you once again 😀

          JoshStrobl

          Hi

          Thank you for the suggestion.

          I tried searching on google first but i cant find much help related to Solus Linux online, so had to ask here for help.

          Maybe i am searching in a wrong way i guess, Next time will be more careful 🙂

          Thank you.

            lookse Your errors aren't specific to Solus (it's just Solus btw, not Solus Linux).