永发信息网

linux如何编译安装???

答案:4  悬赏:40  手机版
解决时间 2021-08-12 09:12

我的HP笔记本装的是ubuntu9.04,没有声音,想重新安装ALSA看看,已经下载了alsa-driver-1.0.23.tar.bz2、alsa-lib-1.0.23.tar.bz2、和alsa-utils-1.0.23.tar.bz2 三个文件,不过我不会编译安装

网上看的教程是  先./configure   再make

可是我的怎么不行啊,下面是我终端的信息!

lsq@lsq-laptop:~/alsa-driver-1.0.23$ ./configure
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for ranlib... ranlib
checking for a BSD-compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether time.h and sys/time.h may both be included... yes
checking whether gcc needs -traditional... no
checking for current directory... /home/lsq/alsa-driver-1.0.23
checking cross compile...
checking for directory with ALSA kernel sources... ../alsa-kmirror
checking for directory with kernel source... Please install the package with full kernel sources for your distribution
or use --with-kernel=dir option to specify another directory with kernel
sources (default is /usr/src/linux).
lsq@lsq-laptop:~/alsa-driver-1.0.23$ make
make all-deps
make[1]: 正在进入目录 `/home/lsq/alsa-driver-1.0.23'
make[1]: 没有什么可以做的为 `all-deps'。
make[1]:正在离开目录 `/home/lsq/alsa-driver-1.0.23'

Please, run the configure script as first...

lsq@lsq-laptop:~/alsa-driver-1.0.23$


 

这到底是什么问题?是少安装了什么软件 还是什么原因?

本人菜鸟,麻烦说清楚点,谢谢了!高手赶紧冒个泡!!!

最佳答案

make[4]: patch:命令未找到


你手动执行一下


看看有这个命令没有!


没有的话


你apt-get一下

全部回答

先安装内核源代码(sudo aptitude install linux-source)  然后进入解包后的源码目录 ./configure 和 make 进行编译 这两个不要用sudo 也没必要 在最后的编译安装必须使用sudo 因为需要权限写入分区..

Please install the package with full kernel sources for your distribution
请为你的发行版安装完整内核源码包。。。。

应该是在你的系统里找不到内核的源码。。。

sudo apt-get install linux-source  试试吧。。。

在configure 的最后几句中 有

checking for directory with kernel source... Please install the package with full kernel sources for your distribution or use --with-kernel=dir option to specify another directory with kernel

说明 configure 脚本 需要 你现在的 linux的内核的源文件

你需要 安装你的发行版的内核源文件 或者是 使用--with-kernel=dir选项 告诉程序 内核源文件的目录

我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
上海4流星落最低价、
奥林匹克公主套装
如何与喜欢的人交往
金蛙怎么过冬
龙亭区开封西湖社区卫生服务站这个地址在什么
一些人在房间里打麻将。警察来了,却只带走三
找一个能和这个配的情侣头像
求avast!证书文件 最好是完整版的
川汇区周口宜家布艺(中原二路)这个地址在什么
三星品牌的手机要多少钱?
<秦時明月>
江苏省郭村镇吉港村是否要划分给泰州市吗?
伤别人好还是伤自己好呢
火线的金色武器怎么有的?
分开两地聊天没话题、打电话没话说、难道我们
推荐资讯
在魔秀网自己制作的手机主题怎么免费下载到手
帮我把这个图做成40*40像素的图
惠阳中山中学高一新生入学准备
请问叫了房屋契税可以退还吗?
哪个专业比较好。以长远的眼光看。
关于WLK盗贼和采药的问题
鑫海味大连老菜馆这个地址在什么地方,我要处
手机连接电脑上网具体是怎样弄的?
Orz求动漫阿基拉下载地址
人善被人欺么
极光世界三品药剂有出售的么、
李弘基、 张根锡、郑荣华、朴信惠的Q版屏保
正方形一边上任一点到这个正方形两条对角线的
阴历怎么看 ?