x11-drivers/nvidia-drivers

This wiki page is about a gentoo ebuild. Include any information about how to install it (emerge it), potential problems and how to resolve them. Be bold and improve it!

If you have any questions or experience any problem related to this ebuild, don't hesitate to open a new ticket and we'll do our best to assist you.

* Messages for package x11-drivers/nvidia-drivers:

* You must be in the video group to use the NVIDIA device
* For more info, read the docs at
* https://www.gentoo.org/doc/en/nvidia-guide.xml#doc_chap3_sect6
*
* This ebuild installs a kernel module and X driver. Both must
* match explicitly in their version. This means, if you restart
* X, you must modprobe -r nvidia before starting it back up
*
* To use the NVIDIA GLX, run "eselect opengl set nvidia"
*
* To use the NVIDIA CUDA/OpenCL, run "eselect opencl set nvidia"
*
* NVIDIA has requested that any bug reports submitted have the
* output of nvidia-bug-report.sh included.
*
* (Note: Above message is only printed the first time package is
* installed. Please look at /usr/share/doc/nvidia-drivers-375.26/README.gentoo*
* for future reference)

https://wiki.gentoo.org/wiki/NVidia/nvidia-drivers
https://packages.gentoo.org/packages/x11-drivers/nvidia-drivers

The uvm USE flag is necessary to use nvenc:
http://linux.overshoot.tv/wiki/nvidia_nvenc

Troubleshooting

Could not find a Makefile in the kernel source directory

Sample error message:

* Messages for package x11-drivers/nvidia-drivers-396.45:

* Could not find a Makefile in the kernel source directory.
* Please ensure that /usr/src/linux points to a complete set of Linux sources
* Unable to calculate Linux Kernel version for build, attempting to use running version
* Could not find a usable .config in the kernel source directory.
* Please ensure that /usr/src/linux points to a configured set of Linux sources.
* If you are using KBUILD_OUTPUT, please set the environment var so that
* it points to the necessary object directory so that it might find .config.
* ERROR: x11-drivers/nvidia-drivers-396.45::gentoo failed (setup phase):
*   Kernel not configured; no .config found in
*
* Call stack:
*                      ebuild.sh, line 124:  Called pkg_setup
*   nvidia-drivers-396.45.ebuild, line 135:  Called linux-mod_pkg_setup
*               linux-mod.eclass, line 586:  Called linux-info_pkg_setup
*              linux-info.eclass, line 965:  Called check_extra_config
*              linux-info.eclass, line 773:  Called require_configured_kernel
*              linux-info.eclass, line 307:  Called die
* The specific snippet of code:
*              die "Kernel not configured; no .config found in ${KV_OUT_DIR}"
*
* If you need support, post the output of `emerge --info '=x11-drivers/nvidia-drivers-396.45::gentoo'`,
* the complete build log and the output of `emerge -pqv '=x11-drivers/nvidia-drivers-396.45::gentoo'`.
* The complete build log is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-396.45/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-396.45/temp/die.env'.
* Working directory: '/var/tmp/portage/x11-drivers/nvidia-drivers-396.45/homedir'
* S: '/var/tmp/portage/x11-drivers/nvidia-drivers-396.45/work/'

Find cause and solution here:

External resources