LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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?

Notices


Reply
  Search this Thread
Old 05-14-2007, 11:20 AM   #1
[KIA]aze
Member
 
Registered: Jun 2006
Distribution: Debian, Ubuntu, Windows XP
Posts: 146

Rep: Reputation: 16
Logitech Quickcam Messenger: 2.6.20-9-generic/build missing


I am trying to install the driver for my Logitech Quickcam Messenger webcam.
I downloaded the driver here:
http://home.mag.cx/messenger/

However, when I execute ./quickcam.sh, I get this error message:

Quote:
awk: cannot open /lib/modules/2.6.20-9-generic/build/include/linux/version.h (No such file or directory)
[: 1: 132608: unexpected operator
[: 1: 132608: unexpected operator
Kernel source directory: /lib/modules/2.6.20-9-generic/build
[!] Can not find kernel source or even headers.
Make sure that they are installed (install with e.g. rpm or apt-get
if necessary) and ensure that you have read rights to the files.
WARNING: If you press Enter, I'll try to continue anyway,
but this probably will fail. You SHOULD press Ctrl+C now.
Press Ctrl+C to quit, Enter to continue --->
Here's what's in my /lib/modules:
Code:
>ls /lib/modules/*/
/lib/modules/2.6.17-10-generic/:
initrd  madwifi        modules.ccwmap  modules.ieee1394map  modules.isapnpmap  modules.pcimap    modules.symbols  volatile
kernel  modules.alias  modules.dep     modules.inputmap     modules.ofmap      modules.seriomap  modules.usbmap

/lib/modules/2.6.17-11-generic/:
initrd  madwifi        modules.ccwmap  modules.ieee1394map  modules.isapnpmap  modules.pcimap    modules.symbols  volatile
kernel  modules.alias  modules.dep     modules.inputmap     modules.ofmap      modules.seriomap  modules.usbmap

/lib/modules/2.6.20-13-generic/:
initrd  madwifi        modules.ccwmap  modules.ieee1394map  modules.isapnpmap  modules.pcimap    modules.symbols  volatile
kernel  modules.alias  modules.dep     modules.inputmap     modules.ofmap      modules.seriomap  modules.usbmap

/lib/modules/2.6.20-15-generic/:
build   kernel   modules.alias   modules.dep          modules.inputmap   modules.ofmap   modules.seriomap  modules.usbmap
initrd  madwifi  modules.ccwmap  modules.ieee1394map  modules.isapnpmap  modules.pcimap  modules.symbols   volatile

/lib/modules/2.6.20-6-generic/:
initrd  madwifi        modules.ccwmap  modules.ieee1394map  modules.isapnpmap  modules.pcimap    modules.symbols  volatile
kernel  modules.alias  modules.dep     modules.inputmap     modules.ofmap      modules.seriomap  modules.usbmap

/lib/modules/2.6.20-8-generic/:
build   kernel   modules.alias   modules.dep          modules.inputmap   modules.ofmap   modules.seriomap  modules.usbmap
initrd  madwifi  modules.ccwmap  modules.ieee1394map  modules.isapnpmap  modules.pcimap  modules.symbols   volatile

/lib/modules/2.6.20-9-generic/:
initrd  madwifi        modules.ccwmap  modules.ieee1394map  modules.isapnpmap  modules.pcimap    modules.symbols  volatile
kernel  modules.alias  modules.dep     modules.inputmap     modules.ofmap      modules.seriomap  modules.usbmap

/lib/modules/2.6.22-1-generic/:
build
Why does the script look in 2.6.20-9-generic and why is there no build directory in it?
What should I do to get this build directory?

Here's the complete output so far:
Code:
>./quickcam.sh
-=- Logitech QuickCam USB camera driver installer -=-
Hello! I am the (hopefully) easy-to-use, fully automated
qc-usb driver installation script.
At the moment, this is experimental, and if it doesn't work,
don't hesitate to quit this with Ctrl+C and install the
driver manually.

The driver is provided in source code form, so it has to be
compiled. This should happen automatically, but it does mean
that there are some steps required before installation.

You also need to know "root" user password to test and
install the driver.

Basically you need only to keep hitting Enter whenever you
see this prompt: --->. Sometimes you're asked root password.
Pay special attention to lines beginning with [!].
It means that some trouble has been detected.

To most important location is the path to your kernel source
or headers. This can be guessed, but you can specify it by
giving it as an argument to this script like this:
        ./quickcam.sh LINUX_DIR=/usr/src/linux

If you haven't done it yet, now it would be a good moment to
take a look at file README.

Next I'm going to check if you have some important programs installed
and if they and the kernel are of suitable version.
Press Ctrl+C to quit, Enter to continue --->

./quickcam.sh
/usr/bin/whoami
/bin/su
/bin/ls
/bin/cat
/usr/bin/gcc
/usr/bin/gcc
/usr/bin/make
/bin/grep
/bin/egrep
/usr/bin/awk
/bin/sed
/usr/bin/tail
/usr/bin/head
/usr/bin/install
/usr/bin/ld
/bin/uname
/usr/bin/tr
/usr/bin/xawtv
/usr/bin/xdpyinfo
/bin/dmesg
/usr/bin/wc
/bin/readlink
gcc version: gcc version 4.1.3 20070429 (prerelease) (Ubuntu 4.1.2-5ubuntu3)
gcc version: gcc version 4.1.3 20070429 (prerelease) (Ubuntu 4.1.2-5ubuntu3)
Make version: GNU Make 3.81
Linker version: GNU ld (GNU Binutils for Ubuntu) 2.17.50.20070426
Kernel compiler: gcc version 4.1.2 (Ubuntu 4.1.2-0ubuntu3)
[!] Kernel compiler and gcc seem to be different versions.
Instead, they should be the same. If you have many compilers
installed, you can specify the correct one with command (in bash)
        export CC=kgcc
before trying to install the driver. Replace kgcc with the command
required for compiling kernels (kgcc is often used in Red Hat systems).
WARNING: If you press Enter, I'll try to continue anyway,
but this probably will fail. You SHOULD press Ctrl+C now.
Press Ctrl+C to quit, Enter to continue --->

Looking for more necessary programs...
Found program /sbin/depmod
Found program /sbin/insmod
Found program /sbin/rmmod
Found program /sbin/modprobe
Found program /bin/mount
Found program /usr/sbin/lsusb
depmod version: module-init-tools 3.3-pre2
insmod version: module-init-tools version 3.3-pre2
rmmod version: module-init-tools version 3.3-pre2
modprobe version: module-init-tools version 3.3-pre2
Checking whether we're root... kiaaze
Checking for driver source code...
Checking for write permission...

Previous round done. Now checking if you have kernel source installed.
Press Ctrl+C to quit, Enter to continue --->

awk: cannot open /lib/modules/2.6.20-9-generic/build/include/linux/version.h (No such file or directory)
[: 1: 132608: unexpected operator
[: 1: 132608: unexpected operator
Kernel source directory: /lib/modules/2.6.20-9-generic/build
[!] Can not find kernel source or even headers.
Make sure that they are installed (install with e.g. rpm or apt-get
if necessary) and ensure that you have read rights to the files.
WARNING: If you press Enter, I'll try to continue anyway,
but this probably will fail. You SHOULD press Ctrl+C now.
Press Ctrl+C to quit, Enter to continue --->
I passed the part about the kernel compiler supposing it wouldn't cause any problems.

OS: Ubuntu Gutsy Gibbon

Last edited by [KIA]aze; 05-14-2007 at 11:25 AM.
 
  


Reply


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
Logitech QuickCam Messenger install tramni1980 Slackware 7 12-11-2006 03:47 PM
Logitech Quickcam Messenger dudeman41465 Linux - Hardware 0 09-23-2006 07:31 AM
Logitech QuickCam Messenger cootetom SUSE / openSUSE 39 05-20-2006 05:04 AM
Logitech QuickCam Messenger Mic ntskelvin Linux - Hardware 0 09-20-2005 11:34 PM
Logitech quickcam messenger in mdk10.1 simeandrews Linux - Hardware 10 03-20-2005 08:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:26 AM.

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