o_xyz 发表于 2005-7-28 17:13:42

请教:我安装声卡时出现这个该怎么解决?

deb:/home/xyp/alsa-driver-1.0.9b# ./configure --with-cards=opl3-sa2 --with-sequencer=yes;make;make install
checking for gcc... gcc
checking for C compiler default output... 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 ANSI C... 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 egrep... 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/xyp/alsa-driver-1.0.9b
checking cross compile...
checking for directory with kernel source... /lib/modules/2.6.8-2-386/source
checking for directory with kernel build... /lib/modules/2.6.8-2-386/build
checking for kernel version... The file /lib/modules/2.6.8-2-386/source/include/linux/version.h does not exist.
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 /lib/modules/2.6.8-2-386/source).
make all-deps
make: Entering directory `/home/xyp/alsa-driver-1.0.9b'
make: Nothing to be done for `all-deps'.
make: Leaving directory `/home/xyp/alsa-driver-1.0.9b'

月下刀客 发表于 2005-7-28 17:28:17


checking for kernel version... The file /lib/modules/2.6.8-2-386/source/include/linux/version.h does not exist.
Please, install the package with full kernel sources for your distribution
or use --with-kernel=dir option to specify another directory with kernel

内核源码包安装不完整?

它还提示你可以在配置时使用--with-kernel=内核源码目录 参数来指定,试试吧。

不行的话,你可以重新完整安装一遍安装盘上的源码包或安装发行版主页下载的同版本(切记)内核源码包。

o_xyz 发表于 2005-7-28 17:32:56

啊,多谢,我找到方法了,是不是下面这各种?
Living with Linux
Jump to navigation
15 August, 2004
Getting a Debian kernel source tree for driver compilation

I have stumbled into this a few times, so I'd better write it down. Here is how you get a kernel source tree setup for compilation of drivers under Debian, assuming you're using a Debian provided kernel package.

The information is shamelessly stolen from Martin List-Petersen:

Lets assume you've installed kernel-image-2.x.y-z-arch. It could be kernel-image-2.4.25-1-386 in which case x=4, y=25, z=1, arch=386. These numbers are need in the following.

The procedure is this:

Download the kernel source package:

apt-get install kernel-source-2.x.y

Unpack it:

cd /usr/src
tar -xjvf kernel-source-2.x.y.tar.bz2

Install the correct config-file:

cd kernel-source-2.x.y
cp /boot/config-2.x.y-z-arch .config

Generate dependencies and Makefiles:

make-kpkg --append-to-version "-z-arch" --revision 2.x.y-z --config old configure

Check build link:

rm -f /lib/modules/2.x.y-z-arch/build
ln -s /usr/src/kernel-source-2.x.y /lib/modules/2.x.y-z-arch/build

Most drivers will use the build link to find the correct kernel source tree for include files and Makefiles.

With this in place many drivers can be installed with a simple "make install".

…   …   …
posted on 2004-08-15 at 18:32 by René Seindal - Category: Debian
Comments
Thorbjørn wrote:
I had some problems, when I followed your short description... it does not tell you what other packages you need to do the trick...

According to http://newbiedoc.sourceforg... you also need:
1. gcc
2. kernel-package
3. kernel-source-2.4.18 (or whatever kernel sources you will be using)
4. libc6-dev
5. tk8.0 or tk8.1 or tk8.3
6. libncurses5-dev
7. fakeroot
8. bin86 (for building 2.2.x kernels on PCs)

Without these packages, make-dpkp stops during execution... it took me some time to figure out what was wrong :(
posted on 2005-01-16 at 22:04
marcel wrote:
Maybe it was not complete but that was the most useful advice I have found after hours of search!

Marcel
posted on 2005-07-02 at 18:57
puchatek wrote:
I have this:
make-kpkg --revision 2.6.11 --config old configure
/usr/bin/make \
ARCH=i386 oldconfig
make: Entering directory `/usr/src/kernel-source-2.6.11'
HOSTCC scripts/basic/fixdep
In file included from /usr/include/sys/socket.h:35,
from /usr/include/netinet/in.h:24,
from /usr/include/arpa/inet.h:23,
from scripts/basic/fixdep.c:115:
/usr/include/bits/socket.h:305:24: asm/socket.h: Nie ma takiego pliku ani katalogu
make: *** Błąd 1
make: *** Błąd 2
make: Leaving directory `/usr/src/kernel-source-2.6.11'
make: *** Błąd 2

Why?? I have installed
1. gcc
2. kernel-package
3. kernel-source-2.4.18 (or whatever kernel sources you will be using)
4. libc6-dev
5. tk8.0 or tk8.1 or tk8.3
6. libncurses5-dev
7. fakeroot
8. bin86 (for building 2.2.x kernels on PCs)
posted on 2005-07-27 at 14:32
puchatek wrote:
*** 3. kernel-source-2.6.11-7
# uname -a
Linux boomcak 2.6.11 #2 SMP Thu May 26 20:53:11 CEST 2005 i686 GNU/Linux
posted on 2005-07-27 at 14:34

月下刀客 发表于 2005-7-28 17:39:34

试试安装其头文件有没有用:
# apt-get install kernel-headers-$(uname -r)

o_xyz 发表于 2005-7-28 18:13:19

装上了头文件可以编译下去了,可是又有点问题。。
我的声卡芯片是yamaha ymf719e-s
应该就是./configure --with-cards=opl3-sa2 --with-sequencer=yes;make;make install
吧,但是怎么编不过去呢?
checking for which soundcards to compile driver for... configure: error: Unknown soundcardopl3-sa2
make all-deps
make: Entering directory `/home/xyp/alsa-driver-1.0.9b'
make: Nothing to be done for `all-deps'.
make: Leaving directory `/home/xyp/alsa-driver-1.0.9b'

Please, run the configure script as first...

rm -f /snd*.*o /persist.o /isapnp.o
make: Entering directory `/home/xyp/alsa-driver-1.0.9b/acore'
Makefile:6: /home/xyp/alsa-driver-1.0.9b/Makefile.conf: 没有那个文件或目录
make: *** 没有规则可以创建目标“/home/xyp/alsa-driver-1.0.9b/Makefile.conf”。 停止。
make: Leaving directory `/home/xyp/alsa-driver-1.0.9b/acore'
make: *** 错误 1

jozhu 发表于 2005-7-28 18:58:34

你是在root下操作的?

o_xyz 发表于 2005-8-2 15:32:41

是啊,

jozhu 发表于 2005-8-2 22:43:09

Please, run the configure script as first...
看到了吗?
先运行./configure在make啊
页: [1]
查看完整版本: 请教:我安装声卡时出现这个该怎么解决?