{"id":4,"date":"2014-07-18T17:10:54","date_gmt":"2014-07-18T17:10:54","guid":{"rendered":"http:\/\/xmoexdev.com\/wordpress\/?p=4"},"modified":"2018-05-02T17:44:30","modified_gmt":"2018-05-02T17:44:30","slug":"proprietary-nvidia-driver-debian-7","status":"publish","type":"post","link":"https:\/\/xmoexdev.com\/wordpress\/proprietary-nvidia-driver-debian-7\/","title":{"rendered":"Installing proprietary nvidia graphics driver on debian wheezy amd64"},"content":{"rendered":"<p>When I first tried to manually install the proprietary nvidia driver I encountered the following error: <!--more  The CC version check failed--><\/p>\n<pre>The CC version check failed:\r\n\r\nThe compiler used to compile the kernel (gcc 4.6) does not exactly match the current compiler (gcc 4.7). The Linux 2.6 kernel module loader rejects kernel modules built with a version of gcc that does not exactly match that of the compiler used to build the running kernel.\r\n<\/pre>\n<p>After some digging I found a <a title=\"Credit goes to bettylou\" href=\"http:\/\/forums.debian.net\/viewtopic.php?f=17&amp;t=106134#p507068\">nice solution<\/a> for this problem:<\/p>\n<h2>Download proprietary nvidia driver<\/h2>\n<p>Download the latest 64-bit version of the proprietary nvidia driver. I got the following file:<\/p>\n<pre>NVIDIA-Linux-x86_64-331.67.run<\/pre>\n<h2>Prepare your system<\/h2>\n<ol>\n<li>Install the desired version of gcc:\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">sudo apt-get install gcc-4.6<\/pre>\n<\/li>\n<li>Enable gcc to be switched between versions via update-alternatives\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">sudo update-alternatives --install \/usr\/bin\/gcc gcc \/usr\/bin\/gcc-4.6 10\r\nsudo update-alternatives --install \/usr\/bin\/gcc gcc \/usr\/bin\/gcc-4.7 20<\/pre>\n<\/li>\n<li>Switch to gcc version 4.6\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">sudo update-alternatives --config gcc<\/pre>\n<\/li>\n<\/ol>\n<h2>Install the driver<\/h2>\n<p>\tYou should be able to install the proprietary nvidia driver now without a warning about a wrong gcc version<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">sudo .\/NVIDIA-Linux-x86_64-331.67.run<\/pre>\n<h2>Clean up<\/h2>\n<p>\tSwitch back to the original version of gcc:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">sudo update-alternatives --config gcc<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>When I first tried to manually install the proprietary nvidia driver I encountered the following error:<\/p>\n","protected":false},"author":1,"featured_media":175,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[3,7,11,12,2,5,6,4],"class_list":["post-4","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorial","tag-debian","tag-gcc","tag-gcc-4-6","tag-gcc-4-7","tag-linux","tag-nvidia","tag-proprietary","tag-wheezy"],"_links":{"self":[{"href":"https:\/\/xmoexdev.com\/wordpress\/wp-json\/wp\/v2\/posts\/4","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xmoexdev.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xmoexdev.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xmoexdev.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xmoexdev.com\/wordpress\/wp-json\/wp\/v2\/comments?post=4"}],"version-history":[{"count":34,"href":"https:\/\/xmoexdev.com\/wordpress\/wp-json\/wp\/v2\/posts\/4\/revisions"}],"predecessor-version":[{"id":254,"href":"https:\/\/xmoexdev.com\/wordpress\/wp-json\/wp\/v2\/posts\/4\/revisions\/254"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xmoexdev.com\/wordpress\/wp-json\/wp\/v2\/media\/175"}],"wp:attachment":[{"href":"https:\/\/xmoexdev.com\/wordpress\/wp-json\/wp\/v2\/media?parent=4"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xmoexdev.com\/wordpress\/wp-json\/wp\/v2\/categories?post=4"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xmoexdev.com\/wordpress\/wp-json\/wp\/v2\/tags?post=4"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}