linux安装驱动报错权限没有,linux系统下安装显卡驱动程序.doc

前言:

当用户执行下列操作有不能执行的时候或许是权限不够。遇到这个问题可以用命令:

[ilykty@bogon ~] su root #切换到root用户

password : 输入root密码

[root@localhost ~] chmod 777 文件名 赋予文件最大权限。

linux 安装显卡驱动程序:

百度输入nvidia or amd 找到官网

在官网中找到显卡驱动程序(包括显卡型号、操作系统位数)如下图

点击搜索、进入下载页面。但是有时候会出现网页。可能因为31M太大,网页会出现未能响应的情况。所以在点前一个按钮的时候可以选择右键。使用迅雷下载连接

复制下载包到linux 目录下面。可以用u盘考,推荐使用winSCP 工具。这个在windows和linux系统直接传送文件还是很好用的。当然还有好用的远程执行linux 命令的工具——putty

(1-4步是在windows系统下完成的)

linux下切换到命令行页面:init 3

执行安装命令

[root@localhost ~] sh NVIDIA-Linux-x86-173.14.18-pkg1.run,系统弹出安装页面

如果出现错误报警如: unable to find the development tool 'cc' in your path 需要安装GCC 。

错误原因是我这里没有安装gcc 编译器。

如果没有报错请跳过番外篇1和番外篇2

番外篇1 :关于gcc编译器

gcc 是什么呢?

我的理解是一个编译器。来运行nvidia 编写的显卡驱动程序。后来我在安装配置tomcat6服务的时候,我发现如果没有安装gcc也不能执行/etc/init.d/tomcat6的文件。关于怎么安装tomcat6并配置成开机启动的服务我将在下一篇百度文库中介绍。

---------------------------------------------------------------------------------------------

在debian系统中有这样的解决方法:

一、下载NVIDIA-Linux-x86-173.14.18-pkg1.run二、sh NVIDIA-Linux-x86-173.14.18-pkg1.run1、报错:没安装binutils,apt-get intall binutils2、报错:No precompiled kernel interface was found to match your kernel..??????????? apt-get install 3、上一步安装后仍然报错,继续往下走:???? unable to find the development tool 'cc' in your path;please make sure that you have the package 'gcc' installed.If gcc is installed on your system,then please check that 'cc' is in your PATH.???? apt-get install gcc4、unable to find the development tool 'make' in your path……??? apt-get install make5、继续:The compiler used to compile the kernel (gcc 4.1) does not exactly match thecurrent compiler (gcc 4.2). 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.

---------------------------------------------------------------------------------------------------------------------

但是我的并不是德班的系统。是redhat linux ——oracle enterprise linux

还好apt-get 这个容易找到 原来是在线安装的意思。redhat linux 好像木有这样的命令,唉。我曾经尝试过yum这个命令,也没有好用。无奈之下,那么我就去我的盘里找gcc文件吧。

原来我并不知

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值