Results 1 to 3 of 3
SOLVED
Hello to all scary Linux people!
I am porting a Python program to Linux (which I'm a first time user of). The program uses ADAM modules for which I ...
- 06-16-2011 #1Just Joined!
- Join Date
- Jun 2011
- Posts
- 2
Installing driver from 2002, header issues
SOLVED
Hello to all scary Linux people!
I am porting a Python program to Linux (which I'm a first time user of). The program uses ADAM modules for which I need the driver installed. My problem is compiling a file "usbserial.c" into "usbserial.o" in order to do makefile install.
I've replaced the config.h with autoconf.h. I entered "sudo apt-get upgrade", though I don't know why. Now my src folder looks like this:
linux-headers-2.6.38-8
linux-headers-2.6.38-8-generic
linux-headers-2.6.38-8-generic-pae
ERROR MESSAGE from typing "gcc usbserial.c":
"
In file included from usbserial.c 270:0:
/usr/src/linux-headers-2.6.38-8-generic/include/linux/init.h :4:28: Fatal error
:linux/compiler.h No such file or directory
"
/usr/src/linux-headers-2.6.38-8-generic/include/linux/compiler.h does in fact exist.
Thank you for any and all help.Last edited by sebastr; 06-16-2011 at 01:47 PM. Reason: SOLVED
- 06-16-2011 #2
.o is the commonly used suffix for 2.4 kernels.
These are old. Or rather: ancient
As kernel code has evolved since then, I donīt think one can easily compile a 2.4 module for a 2.6 kernel.
On the good side: usbserial.ko is a standard kernelmodule.
*Any* distribution has this.
It should already be loaded, if you have a "usb to serial" device connected.
Check with
If not, try:Code:lsmod |grep serial
and watch dmesg and tail -f /var/log/syslogCode:modprobe usbserial
You must always face the curtain with a bow.
- 06-16-2011 #3Just Joined!
- Join Date
- Jun 2011
- Posts
- 2
Thanks for the reply, Irithori
The commands seems helpful for the future.
Turns out we didn't even need the driver (usb-to-serial device)! Starting to like this OS.


Reply With Quote