LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-06-2009, 04:59 AM   #1
Jani64
LQ Newbie
 
Registered: May 2009
Posts: 9

Rep: Reputation: 0
Question Make doesn't work in Fedora


Hello!

I only know the basics of Linux really, and now I'm trying to install the driver for my IWL3945 wireless card. And I tried following a tutorial that said I had to do this:

% tar xzvf ieee80211-1.1.14.tgz
% cd ieee80211-1.1.14
% make
# make install <--- You may need to be root
% cd ..

And now when I tried to use the make command, I get this error:
Code:
[root@subcane ieee80211-1.1.14]# make
Checking in /lib/modules/2.6.29.4-167.fc11.i686.PAE for ieee80211 components...
find: `/lib/modules/2.6.29.4-167.fc11.i686.PAE/build/': No such file or directory
egrep: /lib/modules/2.6.29.4-167.fc11.i686.PAE/build//.config: No such file or directory
egrep: /lib/modules/2.6.29.4-167.fc11.i686.PAE/build//include/linux/autoconf.h: No such file or directory
find: `/lib/modules/2.6.29.4-167.fc11.i686.PAE/build/': No such file or directory
make -C /lib/modules/2.6.29.4-167.fc11.i686.PAE/build M=/tmp/ieee80211-1.1.14 modules
make: *** /lib/modules/2.6.29.4-167.fc11.i686.PAE/build: No such file or directory.  Stop.
make: *** [modules] Error 2
[root@subcane ieee80211-1.1.14]#
This was also the case when I had Fedora 9 and 10 on the same system. Even with other packages. I tried installing gcc but I do not know if I even need it for the make command.

Thanks in advance!
 
Old 08-06-2009, 05:04 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
It looks like you need to install the kernel source (and probably kernel headers) package for Fedora. You also don't need to run "make" as root, just "make install".
 
Old 08-06-2009, 05:09 AM   #3
Jani64
LQ Newbie
 
Registered: May 2009
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Nylex View Post
It looks like you need to install the kernel source (and probably kernel headers) package for Fedora. You also don't need to run "make" as root, just "make install".
How would I go about installing the kernel source? I tried googling it and it said yum install kernel-sourcecode works, but it didn't work on this end.
 
Old 08-06-2009, 06:07 AM   #4
jf.argentino
Member
 
Registered: Apr 2008
Location: Toulon (France)
Distribution: FEDORA CORE
Posts: 493

Rep: Reputation: 50
try "yum install kernel-devel" and "yum install kernel-headers"
 
Old 08-06-2009, 06:27 AM   #5
Jani64
LQ Newbie
 
Registered: May 2009
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jf.argentino View Post
try "yum install kernel-devel" and "yum install kernel-headers"
Well it installed, but make still won't work:

Code:
[root@subcane ieee80211-1.1.14]# yum install kernel-devel
Loaded plugins: refresh-packagekit
Setting up Install Process

Resolving Dependencies
--> Running transaction check
---> Package kernel-devel.i586 0:2.6.29.6-217.2.3.fc11 set to be installed
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================
 Package               Arch          Version                           Repository        Size
==============================================================================================
Installing:
 kernel-devel          i586          2.6.29.6-217.2.3.fc11             updates          6.2 M

Transaction Summary
==============================================================================================
Install      1 Package(s)
Update       0 Package(s)
Remove       0 Package(s)

Total download size: 6.2 M
Is this ok [y/N]: y
Downloading Packages:
kernel-devel-2.6.29.6-217.2.3.fc11.i586.rpm                            | 6.2 MB     02:30
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : kernel-devel                                                           1/1

Installed:
  kernel-devel.i586 0:2.6.29.6-217.2.3.fc11

Complete!
Code:
[root@subcane ieee80211-1.1.14]# yum install kernel-headers
Loaded plugins: refresh-packagekit
Existing lock /var/run/yum.pid: another copy is running as pid 22846.
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: PackageKit
    Memory :  73 M RSS ( 84 MB VSZ)
    Started: Thu Aug  6 13:25:46 2009 - 00:10 ago
    State  : Sleeping, pid: 22846
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: PackageKit
    Memory :  73 M RSS ( 84 MB VSZ)
    Started: Thu Aug  6 13:25:46 2009 - 00:12 ago
    State  : Sleeping, pid: 22846
Setting up Install Process
Package kernel-headers-2.6.29.6-217.2.3.fc11.i586 already installed and latest version
Nothing to do
Code:
[root@subcane ieee80211-1.1.14]# make
Checking in /lib/modules/2.6.29.4-167.fc11.i686.PAE for ieee80211 components...
find: `/lib/modules/2.6.29.4-167.fc11.i686.PAE/build/': No such file or directory
egrep: /lib/modules/2.6.29.4-167.fc11.i686.PAE/build//.config: No such file or directory
egrep: /lib/modules/2.6.29.4-167.fc11.i686.PAE/build//include/linux/autoconf.h: No such file or directory
find: `/lib/modules/2.6.29.4-167.fc11.i686.PAE/build/': No such file or directory
make -C /lib/modules/2.6.29.4-167.fc11.i686.PAE/build M=/tmp/ieee80211-1.1.14 modules
make: *** /lib/modules/2.6.29.4-167.fc11.i686.PAE/build: No such file or directory.  Stop.
make: *** [modules] Error 2
[root@subcane ieee80211-1.1.14]#
 
Old 08-06-2009, 06:32 AM   #6
jf.argentino
Member
 
Registered: Apr 2008
Location: Toulon (France)
Distribution: FEDORA CORE
Posts: 493

Rep: Reputation: 50
You haven't installed the good version of kernel-devel:
Quote:
kernel-devel-2.6.29.6-217.2.3.fc11.i586.rpm
but you're running
Quote:
2.6.29.4-167.fc11.i686.PAE
Try
Code:
yum install kernel-devel-2.6.29.6-217.2.3.fc11.i686.PAE
, if it doesn(t work install yumex, a yum GUI, search for "kernel-devel" with it and install the good one.
 
Old 08-06-2009, 06:47 AM   #7
Jani64
LQ Newbie
 
Registered: May 2009
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jf.argentino View Post
You haven't installed the good version of kernel-devel:
but you're running
Try
Code:
yum install kernel-devel-2.6.29.6-217.2.3.fc11.i686.PAE
, if it doesn(t work install yumex, a yum GUI, search for "kernel-devel" with it and install the good one.
I can't find anything with i686 in it, only i586.

Code:
[root@subcane ieee80211-1.1.14]# yum install kernel-devel-2.6.29.6-*
Loaded plugins: refresh-packagekit
Setting up Install Process
Package kernel-devel-2.6.29.6-217.2.3.fc11.i586 already installed and latest version
Nothing to do
I'll try the GUI thing later though, I don't have access to the physical computer for a while.

Last edited by Jani64; 08-06-2009 at 06:52 AM.
 
Old 08-06-2009, 07:25 AM   #8
jf.argentino
Member
 
Registered: Apr 2008
Location: Toulon (France)
Distribution: FEDORA CORE
Posts: 493

Rep: Reputation: 50
If you're accessing the linux box through ssh, add -X option to enabling remote graphical session, be sure that server side;, in the sshd_config file (somewhere under /etc or /etc/ssh), the line
Code:
X11Forwarding yes
appears.
Another solution is to reboot the linux box with the 2.6.29.6-217.2.3.fc11.i686.PAE kernel, just edit "/boot/grub/menu.lst" file and change the "default=" to the proper kernel (first one is 0)
 
  


Reply

Tags
error, fedora, make


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make HP scanner work on Fedora 7 ? SharpyWarpy Fedora 1 11-30-2007 09:15 PM
Can't make Nvidia driver work on Fedora 7! tauro_kpo Linux - Software 3 06-04-2007 04:08 AM
WG111T on Fedora cant make it work! imagined Linux - Wireless Networking 1 08-01-2006 01:44 PM
Can't make JAVA to work in Fedora Core 4 jun_tuko Fedora 9 01-10-2006 03:36 AM
how do I make gDesklets work in Fedora? gradedcheese Fedora 0 01-26-2004 11:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration