Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I tried to install madwifi, so I could get my TEW-441PC working, but when I went to make, this is the error I got:
/bin/sh: line 0: cd: /lib/modules/2.6.18-5-486/build: No such file or directory
Makefile.inc:66: *** /lib/modules/2.6.18-5-486/build is missing, please set KERNELPATH. Stop.
I echoed kernelpath, and it wasn't set to anything! I tried to figure out what to set it to, but I can't figure out how to find "build".
So instead I went and tried to install ndiswrapper after that, but when I tried to make that, it gave a gazillion errors, but basically acted like it didn't understand basic C commands. Some examples are:
loadndisdriver.c:527: warning: implicit declaration of function ‘atoi’
loadndisdriver.c:542: warning: implicit declaration of function ‘atof’
loadndisdriver.c:549: warning: implicit declaration of function ‘strcmp’
I know that I have gcc 4.1 installed (I checked with gnome-apt). I'm not even really sure where to start in this problem... Anyone have any ideas for me?
I loaded linux-header, but I couldn't find a linux-source or kernel-source anywhere. I tried downloading linux-image and that changed things, but now when I try to make madwifi, it couldn't find the headers, so it of course gave a bunch of errors like ndiswrapper did. How do I tell it where to find the proper header files? Or did I download the wrong thing?
home/mama/Desktop/madwifi-0.9.3.2/ath_hal/uudecode.c:26:19: error: stdio.h: No such file or directory
/home/mama/Desktop/madwifi-0.9.3.2/ath_hal/uudecode.c:27:19: error: errno.h: No such file or directory
/home/mama/Desktop/madwifi-0.9.3.2/ath_hal/uudecode.c:28:20: error: getopt.h: No such file or directory
/home/mama/Desktop/madwifi-0.9.3.2/ath_hal/uudecode.c:29:20: error: string.h: No such file or directory
/home/mama/Desktop/madwifi-0.9.3.2/ath_hal/uudecode.c:30:20: error: stdlib.h: No such file or directory
/home/mama/Desktop/madwifi-0.9.3.2/ath_hal/uudecode.c:32:23: error: sys/fcntl.h: No such file or directory
/home/mama/Desktop/madwifi-0.9.3.2/ath_hal/uudecode.c:33:22: error: sys/stat.h: No such file or directory
So no one knows what might be the problem here? Whatever is going on, I can't seem to install anything except what I use aptitude to get. Is there some path that I need to set? Or a header file or something that I'm missing? This seems like a fairly fundamental problem, so I'm sure that someone else has run across this before...
Yes, I have "libc6-dev" installed. I also have "libc6" and "libc6-i686" installed. I'm running an Intel dual core processor, so the "i686" should apply to me (I think).
GCC looks in several different places for headers. On a normal Unix system, if you do not instruct it otherwise, it will look for headers requested with #include <file> in:
I managed to get it to make properly. I went and installed "linux-headers 2.18-5" rather than "linux-headers 2.18-5-686", and it installed without error.
Now I just have to get it to work... I try to follow the instructions on the madwifi website, and it breaks down when I get to trying to scan. It simply says:
ioctl[unknown???]: No such device
wlanconfig: unable to get scan results
I try to create a ath0 device, (which shouldn't be necessary wit hthe newer build, but I tried anyway) and it said:
wlanconfig: ioctl: No such device
So I went to check what devices are in the system, and all there were was eth0, eth1, and lo. Shouldn't there be a wifi0 or a device like that in the system already? Or is this another patch that I need to install?
If you're running Debian, in the future, you'll find it better to use Module-Assistant to compile and install kernel modules. As root, just type Module-Assistant or m-a. There will be an ncurses-type graphical interface to walk you through installing available kernel modules. You might have to install the package first using apt-get install module-assistant. It's the "Debian Way".
Try an lsmod and see if the ath_pci module is installed. If not, you'll have to install using modprobe ath_pci.
The modprobe ath_pci did put a couple modules on the list when I typed lsmod, but it didn't seem to make a difference. I have tried reading through the madwifi documentation. It's quite extensive, but I can't find where it address any problems like what I'm seeing here.
Here's what I tried; Any more suggestions?
----------------------
David-Debian:/home/david# modprobe ath_pci
David-Debian:/home/david# modprobe wlan_scan_sta
David-Debian:/home/david# wlanconfig ath0 list scan
ioctl[unknown???]: No such device
wlanconfig: unable to get scan results
David-Debian:/home/david# wlanconfig ath0 create wlandev wifi0 wlanmode sta
wlanconfig: ioctl: No such device
David-Debian:/home/david# iwconfig
bash: iwconfig: command not found
David-Debian:/home/david# ifconfig
eth1 Link encap:Ethernet HWaddr 00:1B:FC:E1:56:A5
inet addr:192.168.1.165 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::21b:fcff:fee1:56a5/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5202 errors:0 dropped:0 overruns:0 frame:0
TX packets:4160 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5334538 (5.0 MiB) TX bytes:723228 (706.2 KiB)
Interrupt:225 Base address:0x6000
eth2 Link encap:Ethernet HWaddr 00:1B:FC:E1:5D:21
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:233 Base address:0xe000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:560 (560.0 b) TX bytes:560 (560.0 b)
David-Debian:/home/david# lsmod
Module Size Used by
wlan_scan_sta 12160 0
ath_pci 82688 0
wlan 177764 2 wlan_scan_sta,ath_pci
ath_hal 191504 1 ath_pci
Does the computer have two different wired Ethernet NICs? There's an eth1 and eth2. Don't see the expected wlan0 or ath0 or something similar.
Is the wifi card a PCI card or what? Try lspci to see what it is reporting.
There is a Wireless networking forum here. You might want to post a question listing the details of your computer, wifi card, and the results of what you've done so far.
I suspect there may be some installation issues with the madwifi module installation.
*nods* Yes, there are 2 ethernet ports built into the motherboard. I'll post a question over on the wireless forum. The lspci says that I have a "unknown device" so you're probably right about it being a installation issue.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.