Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?


  Search this Thread
Old 05-20-2007, 08:33 PM   #1
LQ Newbie
Registered: May 2007
Posts: 6

Rep: Reputation: 0
Need help

I downloaded the gspav1-20070110 and extracted the files. When I tried make, I get this

make -C /lib/modules/'uname -r'/build SUBDIRS=root/test/gspcav1-20070110 CC=cc modules

make:*** /lib/modules/2.6.18-1.2798.fc6/build: No such file or directory. Stop.

Please help.

I'm trying to install the driver for a webcam. Do I have to install v4l or is it already in the kernel? If it's in the kernel, how do I use it? Otherwise, can I know how to install v4l?

Thank you.
Old 05-20-2007, 08:42 PM   #2
LQ Guru
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Install the headers or the kernel source code and try again. Make sure the directory /lib/modules/2.6.18-1.2798.fc6 exist.

The ' in the make syntax is wrong. It should be `.

Fedora 6 should already have V4L, so you do not have to worry about it.
Old 05-20-2007, 08:51 PM   #3
LQ Newbie
Registered: May 2007
Posts: 6

Original Poster
Rep: Reputation: 0
Kernel header or source code

Sorry, I'm too new to Linux.

I downloaded kernel-2.6.18-1.2798.fc6.rpm according to How to Compile A Kernel from onto Desktop.

I moved the file into /usr/src and did
rpm -ivh kernel-2.6.18-1.2798.fc6.src.rpm

Howeve, it turns out with this error.
error: cannot create %sourcedir /usr/src/redhat/SOURCES

I'm using VMware Player with Fedora Core 6.

Last edited by AngZangGui; 05-20-2007 at 09:23 PM.
Old 05-20-2007, 09:33 PM   #4
Senior Member
Registered: Jul 2003
Posts: 1,257

Rep: Reputation: 48
trying as su?

Not being able to create a file often means you don't have sufficient permissions. Try the installation either after you have logged in as root or after you have issued the command "su" and supply the root password.

Read any INSTALLATION files which accompany the download.

The process normallly goes

make install
Old 05-21-2007, 08:09 AM   #5
LQ Newbie
Registered: May 2007
Posts: 6

Original Poster
Rep: Reputation: 0
I did the above steps as a root user.

I even tried installing a new kernel kernel-2.6.20-1.2948.fc6.src.rpm
What I did was:
- yum install yum-utils
- yumdownloader --source kernel --enablerepo updates-source
according to

However, when I did the second step: Install the Kernel Source
using rpm -ivh kernel-2.6.20-1.2948.fc6.src.rpm
it still shows the same error: cannot create %sourcedir /usr/src/redhat/SOURCES

keeping in mind that I did all these as root.

Some more questions:
- Why are the words for the new kernel in red unlike the "kernel-2.6.18-1.2798.fc6.i686.rpm" which is in green?
- The words for "build" and "source" in "lib/modules/kernel-2.6.18-1.2798.fc6" are highlighted over with red. Why is this so?
Old 05-22-2007, 10:27 PM   #6
LQ Newbie
Registered: May 2007
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks for all the help given. I have managed to compile a new kernel.


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 > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:37 PM.

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