Please execute following command to install make in your system
sudo yum install build-essential
Answer from Rahul R Dhobi on Stack OverflowCommand not recognised
Fedora command not working
Customise bash "command not found"
Make command fails on Fedora 36 plasma version
I want to print a custom message instead of bash: command not found. The solutions I have seen works only for debian. Is there a way?
Are you including the dollar sign ($) when pasting the command. The error message indicates that bash can't find a command called $. You should only paste from gcc and forward.
$=user #=root
For some actions you need a root promission.
You can use sudo to get into root from a user profile. Do that by place a sudo infront of your action or access the sudo cell with sudo -i.
If that doesn't solve it, you should
- update the database with sudo dnf upgrade --refresh
- install gcc when gcc isn't pre installed at feora
So, I am trying to learn to code by using the Learn the Hard Way books. While trying the first practice in the C book I get an error that I can not seem to google.
here is what I see in terminal
$ make ex1
....
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/5.3.1/../../../libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /lib/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/bin/ld: cannot find -lc
collect2: error: ld returned 1 exit status
<builtin>: recipe for target 'ex1' failed
make: *** [ex1] Error
Sorry if my formatting is wrong