C compiler broken / Check for working C compiler: /usr/bin/cc - broken
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
- Edited
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
- Edited
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
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).