Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

driver installation fails of FTDI VCP driver during make install.

Running ElementaryOS with kernel 3.11.0-14-generic

make install
awk: cannot open /lib/modules/3.11.0-14-generic/build/include/linux/version.h     (No such file or directory)
awk: cannot open /lib/modules/3.11.0-14-generic/build/include/linux/version.h (No such file or directory)
install -d /lib/modules//misc
install -c ftdi.o /lib/modules//misc
install: cannot stat `ftdi.o': No such file or directory
make install

The directory exists and it has multiple files in it but no version.h.

Update: After creating a symbolic link from uapi to modules as recommended by @slm

ln -s /usr/src/linux-headers-$(uname -r)/include/generated/uapi/linux/version.h /lib/modules/linux-($uname -r)/generic/build/include/linux/version.h

the awk errors disappear but the sytem still reports:

install -d /lib/modules//misc
install -c ftdi.o /lib/modules//misc
install: cannot stat `ftdi.o': No such file or directory
share|improve this question

1 Answer 1

I found this mentioned in this OpenSUSE forum, in a post titled: Thread: Realtek drivers fail to install, missing linux/version.h. The solution offered up in that thread was this:

With the 3.7 and greter kernel, there was a change to the uapi sources which causes issues with some older drivers which can not locate version.h

You might try:

   # ln -s /usr/src/linux-$(uname -r)/include/generated/uapi/linux/version.h \
         /usr/src/linux-$(uname -r)/include/linux/
share|improve this answer
    
I'll definitely try that. One problem, under /usr/src/ i have linux-headers-3.11.0-14-generic but not linux-3.11.0-14-generic from the uname -r output –  Brandon Kreisel Dec 17 '13 at 5:27
    
i was able to use the headers and link it to the lib/modules directory but now I still get cannot stat:ftdi.o –  Brandon Kreisel Dec 17 '13 at 5:57
    
@BrandonKreisel - please update your Q with this new error message. –  slm Dec 17 '13 at 6:08
    
updated as requested –  Brandon Kreisel Dec 17 '13 at 17:46
    
@BrandonKreisel: Although the system has the kernel headers installed (linux-headers-3.11.0-14-generic) it still seems to be missing the kernel sources, which should go under linux-3.11.0-14-generic. –  alk Dec 17 '13 at 20:09

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.