Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 11-21-2009, 03:08 PM   #1
LQ Newbie
Registered: Nov 2009
Posts: 2

Rep: Reputation: 0
problem while building a driver /lib/modules/'kernel-ver-default'/build: No such file

I am trying to install a data acquisition A2D card from General Standards Corporation. I am new to installing drivers for linux.

I am using opensuse 11.2 kernel

Installed linux from scratch (KDE4) on a 32-bit pentium 4 machine.
opensuse 11.2 seems to be working fine.

Downloaded the kernel sources, the "make" application, gcc (which required the kernel headers).

The sources are in /usr/src ... as expected (?)

There is a broken link in /lib/modules/ called "build" that points to the inexistent


FYI - only /usr/src/linux- exists

Question 1 - where did this broken link come from?

It so happens that the "make_all" that comes with the linux drivers for my A2D card looks for that precise broken link. I imagine this is pretty common but I didn't know that.

Question 2 - what is supposed to be in that broken link and how can I fix it so that it points to the correct directory.

If I just "fix the link" and make it point to, say

the "make_all" application of the A2D card keeps going a little further, but then it tells me that autoconf.h and auto.conf couldn't be found, and that I could try to use "make oldconfig && make prepare".

Q3 should I do this?

Thank you for any time spent on this, really.
Old 11-22-2009, 11:18 AM   #2
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 8,689

Rep: Reputation: 886Reputation: 886Reputation: 886Reputation: 886Reputation: 886Reputation: 886Reputation: 886
What kernel are you on? (uname -r tells you)
I am on, so the magic for me would be

cd /lib/modules/
ln -s /usr/src/linux- build

Substitute your kernel version, and check it points at a directory.
Old 11-23-2009, 05:04 AM   #3
LQ Newbie
Registered: Nov 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks business_kid.

My kernel version is

Through a bit of trial and error, I got my data acquisition card to work.

In summary, what I needed to do is to compile the kernel source files and modules.

I am not sure why, but it worked.

Of course, I also had to fix the broken link as business_kid mentions, but that was just the beginning of the problem.

This has now been resolved.

Thank you for all who spent time on this.


drivers, kernel, sources

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
/lib/modules/kernel/build file broken vaishalicoep Linux - General 2 02-04-2009 03:53 AM
make: File not found: /lib/modules/2.6.18-elive/build/ clhona Linux - Software 3 08-08-2007 01:09 PM
FATAL: Could not load /lib/modules/2.6.14-default/modules.dep no such file exist dr_zayus69 Linux - Software 3 12-26-2005 07:44 PM
No build file in lib/modules/* Mlehliw Linux - Newbie 1 08-06-2004 10:40 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:30 AM.

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