Cannot build version.h [Solved]

If you are new to Linux or new to Sabayon Linux and just not sure where to post, here ya go. Post without fear of being told to RTFM :-)

Moderator: Moderators

Cannot build version.h [Solved]

Postby Firalus » Fri Jan 25, 2013 20:35

Hello everyone,

I'm fairly new not only to Sabayon, but generally to Linux, so I hope I won't sound stupid asking about this.

A few days ago I decided to install AMD Proprietary 13.1 Legacy Drivers. The installer came up with an error. After reading the log file I identified the cause of the problem - lack of version.h in /include/linux/

I did some research on how to get the file, but after trying:
Code: Select all
# cd /usr/src/linux-3.7.0-sabayon/
# make /include/linux/version.h


all I get is an information that no rules can build the file.

What should I do to solve the issue?
Last edited by Firalus on Sun Jan 27, 2013 18:49, edited 1 time in total.
Firalus
Baby Hen
 
Posts: 5
Joined: Fri Jan 25, 2013 19:34

Re: Cannot build version.h

Postby aia » Fri Jan 25, 2013 21:40

Welcome Firalus,

If i understood, you had already installed the Sabayon 10 with kernel 3.5.0 which is default and you decided to install the newest kernel 3.7.0 version and you found the above problem?

These two links describes how to upgrade the kernel using the Entropy or genkernel. But remember the process does not recommended for the newest user.

http://wiki.sabayon.org/index.php?title ... ng_Entropy
http://wiki.sabayon.org/index.php?title ... _genkernel
aia
Young Hen
 
Posts: 30
Joined: Wed Nov 28, 2012 11:43

Re: Cannot build version.h

Postby Firalus » Fri Jan 25, 2013 23:10

I did upgrade the kernel manually using Entropy, following the instructions in the HOWTO.

I encountered the problem after rebooting with the upgraded kernel.

Edit: Solved, it's just that version.h is in a different location in the new kernel.
All you need to do is create a symlink:
Code: Select all
# ln -s /lib/modules/$(uname -r)/build/include/generated/uapi/linux/version.h /lib/modules/$(uname -r)/build/include/linux/version.h
Firalus
Baby Hen
 
Posts: 5
Joined: Fri Jan 25, 2013 19:34


Return to Beginners|Newbies Area

Who is online

Users browsing this forum: No registered users and 4 guests