LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 03-20-2008, 09:21 PM   #1
zeeshan78
LQ Newbie
 
Registered: Mar 2008
Posts: 11

Rep: Reputation: 0
help needed with wireless card set-up


Hi i am new to Linux on a whole, i am trying to install ndiswrapper to get my wireless card working but it does'nt make the files come up with the KBUILD error after going through the forums i think its the development tools and libraries needed are not installed and those have to be installed i can't do a yum install because my box does'nt have a ethernet card i can just download it and do it i am looking for the kernel-smp-devel i think but where do i download it from and how do i install it? another thing is i have a dell old lcd monitor linux just does'nt like it the GUI starts fine but then its not fitted to the screen and sometimes the gui crashes as well.

any help will be really appreciated.

PS I am using centos 2.6.9-36elsmp kernel
zeeshan
 
Old 03-21-2008, 01:20 AM   #2
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
I have Fedora 7 with KDE desktop installed in VMware in Windows. Centos shouldn't be much different. These are the steps I take to install the kernel-devel package. I'll jot down the steps in writing and post the contents from the terminal I use to show the commands and outputs.

I mount the installation DVD by clicking the OK when a auto-mount window appears asking if I want to "Open in new window" after inserting the DVD.
Then I open a terminal, swith user to root, navigate my way to where I know all the .rpm files are that came on the DVD, listing the contents along the way to figure out what is the next command, (to enter the DVD itself, I only typed cd Fe then hit the Tab key on the keyboard and bash completed the command properly, you'll notice it's different than what is written in the output of the previous command).
Code:
[jo@localhost ~]$ su
Password:
[root@localhost jo]# cd /media
[root@localhost media]# ls
Fedora 7 i386 DVD
[root@localhost media]# cd Fedora\ 7\ i386\ DVD/
[root@localhost Fedora 7 i386 DVD]# ls
Fedora                         RELEASE-NOTES-en_US.html    RPM-GPG-KEY-fedora-test
fedora.css                     repodata                    RPM-GPG-KEY-rawhide
GPL                            RPM-GPG-KEY                 stylesheet-images
images                         RPM-GPG-KEY-beta            TRANS.TBL
isolinux                       RPM-GPG-KEY-fedora
README-BURNING-ISOS-en_US.txt  RPM-GPG-KEY-fedora-rawhide
[root@localhost Fedora 7 i386 DVD]# cd Fedora/
[root@localhost Fedora]#
Then I figure out which kernel I'm using, I then list all packages starting with the word kernel using a wildcard in the command, and try to install the kernel-devel package for a missing kernel because I've got a newer one than what came on the installation DVD.
Code:
[root@localhost Fedora]# uname -a
Linux localhost.localdomain 2.6.22.9-91.fc7 #1 SMP Thu Sep 27 23:10:59 EDT 2007 i686 i686 i386 GNU/Linux
[root@localhost Fedora]# ls kernel*.rpm
kernel-2.6.21-1.3194.fc7.i586.rpm
kernel-2.6.21-1.3194.fc7.i686.rpm
kernel-debug-2.6.21-1.3194.fc7.i686.rpm
kernel-debug-devel-2.6.21-1.3194.fc7.i686.rpm
kernel-devel-2.6.21-1.3194.fc7.i586.rpm
kernel-devel-2.6.21-1.3194.fc7.i686.rpm
kernel-doc-2.6.21-1.3194.fc7.noarch.rpm
kernel-headers-2.6.21-1.3194.fc7.i386.rpm
kernel-PAE-2.6.21-1.3194.fc7.i686.rpm
kernel-PAE-debug-2.6.21-1.3194.fc7.i686.rpm
kernel-PAE-debug-devel-2.6.21-1.3194.fc7.i686.rpm
kernel-PAE-devel-2.6.21-1.3194.fc7.i686.rpm
kernel-xen-2.6.20-2925.9.fc7.i686.rpm
kernel-xen-2.6-doc-2.6.20-2925.9.fc7.noarch.rpm
kernel-xen-devel-2.6.20-2925.9.fc7.i686.rpm
[root@localhost Fedora]# rpm -ivh kernel-devel-2.6.21-1.3194.fc7.i686.rpm
Preparing...                ########################################### [100%]
        package kernel-devel-2.6.22.5-76.fc7 (which is newer than kernel-devel-2.6.21-1.3194.fc7) is already installed
        package kernel-devel-2.6.22.9-91.fc7 (which is newer than kernel-devel-2.6.21-1.3194.fc7) is already installed
[root@localhost Fedora]#
As you should see, I have a newer kernel install and it won't leave me install the original from the DVD.
But at this point, the output you would probably get would give you an error telling you there are un-met dependencies, and bash will list the package names needed to be installed first which should be on the installation disk if your installation is fresh off the disk(s). If you get such an error, list all packages named like the missing dependencies and install the appropriate one(s) for your architecture. Some of those dependencies may also have more dependencies. But those might just be in the first dependency list anyway, install it first etc.
If you get stuck, or are hesitant, best not to take chances, just post again with your query.

Last edited by Junior Hacker; 03-21-2008 at 01:23 AM.
 
Old 03-21-2008, 08:11 AM   #3
zeeshan78
LQ Newbie
 
Registered: Mar 2008
Posts: 11

Original Poster
Rep: Reputation: 0
Thank you so much for the detailed answer, gonna try this out and post back whats happens!!! fingers crossed
 
Old 03-21-2008, 01:55 PM   #4
zeeshan78
LQ Newbie
 
Registered: Mar 2008
Posts: 11

Original Poster
Rep: Reputation: 0
Dude Tried it but it does'nt come up with the devel kernel on the cd where can i download the new kernel for centos 2.6.9
 
Old 03-23-2008, 11:37 AM   #5
zeeshan78
LQ Newbie
 
Registered: Mar 2008
Posts: 11

Original Poster
Rep: Reputation: 0
i am getting this error when i upgraded my kernel and tried to make file

make -C driver
make[1]:Entering directory '/home/deraven/ndiswrapper/ndiswrapper-1.51/driver'
make -C /usr/kernels/2.6.9-34.EL-smp-i686 SUBDIRS=/home/deraven/ndiswrapper/ndiswrapper-1.51/driver
/usr/kernels/2.6.9-34.EL-smp-i686/scripts/gcc-version.sh: line 11: gcc :command not found

/usr/kernels/2.6.9-34.EL-smp-i686/scripts/gcc-version.sh: line 12: gcc :command not found
make[2]:Entering directory '/usr/src/kernels/2.6.9-34.EL-smp-i686'
CC [M] /home/deraven/ndiswrapper/ndiswrapper-1.51/driver/crt.o
/bin/sh: gcc :command not found
make[3]: *** [/home/deraven/ndiswrapper/ndiswrapper-1.51/driver/crt/o] Error 127
make[2]: *** [_module_/home/deraven/ndiswrapper/ndiswrapper-1.51/driver] Error 2
make[2]: Leaving directory '/usr/src/kernels/2.6.9-34.EL-smp-i686'
make[1]: *** [default] Error 2
make[1]: Leaving directory '/home/deraven/ndiswrapper/ndiswrapper-1.51/driver'
make: *** [all] Error 2
 
Old 03-23-2008, 02:41 PM   #6
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
When you install fresh off the installation disk, you will have all proper version development packages on the disk also allowing you to compile drivers for networks and video cards etc. Which means you should have the kernel-devel package whose version matches the version of kernel installed fresh off the disk. If not (I don't have CentOS) (you may only have first of multiple disk set), check their web sites.
Normally with RPM, when you install kernel-devel and kernel-headers, gcc and the likes will also be installed as dependencies. The error you're getting occurs because you don't have development packages installed.
Check CentOS documentation on-line to find how to prepare your OS for compiling drivers/modules. You should also be able to find all the documentation in /usr/share/doc directory.
 
  


Reply



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
Help needed to set up wireless connection on laptop tfm1 Linux - Laptop and Netbook 4 06-25-2006 02:07 PM
how I set up my wireless card vasil Linux - Wireless Networking 13 11-30-2005 01:06 AM
Battery and, of course, wireless card help needed Jaster Linux - Laptop and Netbook 1 07-24-2004 01:02 PM
Best wireless card for Mandrake 9.1 - Experts needed lenseboy Linux - Wireless Networking 2 06-03-2004 07:29 AM

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

All times are GMT -5. The time now is 11:38 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
Open Source Consulting | Domain Registration