make : cc : command not found
I am trying to build a sample kernel module called to print "hello world" .
I want to generate a .ko file from the .c file so i type the command % make hello I get the following error. % make : cc : command not found % make : *** [hello] Error 127 I think that this error might be because may be cc compiler might not be installed . but how do i check whether it is installed or not ? and in case i find that it is not installed then what do i do and how do i install it? |
the process varies depending on your distro
for Fedora 8 or 9 it would be ~]# yum install kernel-devel just install the your currant kernel source packages and the dev tools for your distro |
As John VV pointed out, it all depends on your distro. If you're using Ubuntu, you could just do the following:
sudo apt-get install build-essential Alternatively, you could simply do this to just get the compiler: sudo apt-get install gcc |
yum localinstall gcc
i am working on fedora core 8 installed as a guest OS on a vmware server
I tried using yum install gcc but it give the following error: Could not retrieve mirrorlist http://mirrors.fedoraproject.org/mir...ra-8&arch=i386 error was [Errorno 4]IOError: <urlopen error (-2, 'Name or service not known')> Erro: Cannot retrieve repository metadata (repomd.xml)for repository : fedora. Please verify its path and try again. |
as to the error
1) mirror may be down , it happens try tomorrow 2) wrong mirror , there has been a change it the last 7 months [code] su - gedit /etc/yum.repo.d/fedora.repo mine Quote:
Development / Development Libraries Development / Development Tools if using Gnome Development / GNOME software Development Development / Legacy Software Development and install |
when i tried to save the fedora.repomine file ,it gives the error "File Not Found"
|
hey well i could find the file in the yum.repos.d directory
but the file already contains the same code which u gave. and so when i install it it gives the same error. |
Is the networking set-up right for your VM? Can you contact the
host OS, can you ping anything on the network? |
also you can try uncommenting the baseurl in fedora.repo and fedora_update.repo
Code:
#baseurl=http://do... |
All times are GMT -5. The time now is 06:57 PM. |