Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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 am trying to compile new drivers for my geforce that I got from Nvidia's site. I untared them and am trying to "make", but for some reason make can't find any of the "include" files. How can I fix this?
I am using RH 6.2 with kernel 2.2.16-3. I believe that I installed the kernel headers, it was one of the packages that I RPM'ed in. The error messages that I am getting is:
.....
linux/fs.h: no such file or directory
linux/errno.h: no such file or directory
.....
and so on
I found these files in /usr/src/linux2.2.16, I believe, so I am assuming that that is the reason. How can I put these files in the right place so make can find them, or what can I do to fix this problem.
Way back in the day a linux kernel would typically untar itself into a directory with a naming structure of linux-X.XX.XX within /usr/src/. Also, within this dir there would be a softlink called linux pointing to the linux-X.XX.XX directory. Now they seem to have gone back to a system where if you untar a kernel it simply untars itself to /usr/src/linux. In either case, there is always a directory (or a link) in /usr/src named linux. Is there in fact a "linux" directory within /usr/src/? I understand that you found the header files within /usr/src/linux-2.2.16 but perhaps there is no softlink called "linux" pointing to that directory? If there isn't type "ln -s /usr/src/linux-2.2.16 /usr/src/linux" which will create a file called "linux" which when cd'd to will put you in the linux-2.2.16 directory. Your other option is to actually edit the .c file which is including the header files to look in the linux-2.2.16 directory, i.e. linux-2.2.16/fs.h. Making the softlink is probably a better idea. Let us know how it goes, k? =)
Sorry it took this long to give you my results, I work alot. I had no luck in compiling anything. I made sure there was a linux directory in /usr/src, and it is linked to linux-2.2.16. I think that so I can get the drivers compiled, I am going to edit the *.c file, though I still want to figure out what the problem is. Any other ideas would be helpful. BTW, I re-installed RH6.2 and rpm'ed the new kernel in. Look at my sig for machine specs.
got it working, thanks for the help. I edited the .c file and everything works now, X looks great. Now to get the SBLive to work, my next project. I will do the hd thing a little later on tonight and post results here. Still new to Linux so I have to revert back to windows every so often, but now that I got X running, I won't have to use Lynx, or windows any more.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.