Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cannot install nvidia-drivers
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
micha77
n00b
n00b


Joined: 22 Mar 2025
Posts: 1

PostPosted: Sat Mar 22, 2025 12:29 pm    Post subject: Cannot install nvidia-drivers Reply with quote

Hi, it's my first time setting up Gentoo, and everything went fine until I tried to install x11-drivers/nvidia-drivers. The installation halts, because Module.symvers file was not found

Code:

'/usr/src/linux/Module.symvers' was not found implying that the
 * linux-6.12.16-gentoo tree at that location has not been built.
 *
 * Please verify that this is the intended kernel version, then perform
 * a full build[1] (i.e. make && make modules_install && make install).


The answer I found is to rebuild the kernel, but I have already built it during installation according to the handbook using distribution kernels. Is it really necessary?

Code:

gentoohost / # uname -a
Linux gentoohost 6.12.16-gentoo-dist #1 SMP PREEMPT_DYNAMIC Sat Mar 22 03:02:40 CET 2025 x86_64 AMD Ryzen 9 5900X 12-Core Processor AuthenticAMD GNU/Linux
Back to top
View user's profile Send private message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 1955
Location: Germany

PostPosted: Sat Mar 22, 2025 4:12 pm    Post subject: Reply with quote

Hello and welcome.

Well, it sure like you build but somehow the needed files are missing or a symlink was pointing to the wrong src dir of the kernel.
So, you it should not have been necessary, but if the files are missing you need to do it.
_________________
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Back to top
View user's profile Send private message
mf2
n00b
n00b


Joined: 14 Jun 2007
Posts: 51

PostPosted: Thu Mar 27, 2025 7:27 am    Post subject: Reply with quote

Maybe /usr/src/linux does not point to the correct directory.

What is the output of

Code:

eselect kernel list
readlink -f /usr/src/linux
[/code]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum