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.
/usr/include/linux/version.h:2:2 #error
"==========================="
/usr/include/linux/version.h:2:2 #error "You should not include /usr/include/{linux,asm}/header"
/usr/........................................... #error "....................
....
(Sorry I don't save it.)
....
It installed kernel2.4.19.16mdk (#rpm -q kernel2.4.19.16mdk)
but it is not in /usr/src/linux... where is it? why do I install driver?what does the error mean? Help me pls.
thanks
jeppe
It looks like you do not have the sources for your kernel installed on your system. Look for a package called kernel-src or linux-src in your distribution's package installation tool. (Sorry, I don't use Mandrake so I don't know what tool that is). You need the kernel sources installed to compile any drivers.
The kernel2.4.19.16mdk package you installed is probably the kernel itself, not the sources for that kernel. The sources are usually pretty large compared to the kernel itself. On RedHat, the source RPM for the kernel is around 30MB.
Or is it the old version ? (because I found it in Linux as *.c *.h *.o)
Can I install a new kernel version (linux-2.4.20) instead the old ?
Will it fine ? And you help me to how installation ? (./configure --?=?,make , make install and anyelse)
You can certainly install sources for a newer kernel than the one you are running, then build and install it, and add it to your boot-loader's configuration so that you can choose the new or old kernel when you boot. There's lot's of docs around on building and installing the kernel. You don't use ./configure because this isn't a GNU package. It has it's own configuration and install process. I like the interactive configuration.
Forgive me for hijacking your thread but we seem to have the same problem so I thought that there was no point in starting a new one. My problem is that I am trying to install a driver for my Aztech 56k USB Modem. I have downloaded a tar.gz driver from the official website.
Links have been deleted as indeed it is the same problem. Solved by installing the required files.
Jongi, you do have the same problem: you don't have the sources for the kernel on your system. To compile kernel modules, you must have the kernel's include files available. These are not installed by default on most distributions, you must locate the kernel source package and install it. Then you'll be able to compiler your driver.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.