UBUNTU如何编译安装??
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了UBUNTU如何编译安装??相关的知识,希望对你有一定的参考价值。
我的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$
这到底是什么问题?是少安装了什么软件 还是什么原因?
本人菜鸟,麻烦高手说清楚点,谢谢了!
所以./configure --with-kernel=/usr/src/你的内核版本/
内核源码在/usr/src目录下,一般是linux-headers-2.6.3x-xx-generic
看你的版本吧,你的grub启动linux的时候注意一下启动的内核版本,要再不行就到www.kernel.org下一个对应版本的内核源码包。如果提示权限不够就sudo。
Ubuntu何必这么折磨自己呢,apt-get 不就好了? 参考技术A 干嘛不下deb的,那个跟windows下.exe文件安装类似,双击便可。进入.bz2的存放目录,再用命令解压对那几个.bz2文件解压,再进目录./configure 再make。试试
以上是关于UBUNTU如何编译安装??的主要内容,如果未能解决你的问题,请参考以下文章