11
回答
alsa-driver安装时,make install时出现错误,求解决办法
利用AWS快速构建适用于生产的无服务器应用程序,免费试用12个月>>>   

由于我刚装了fedora13后,没有声音,所有我就装alsa-driver-1.0.23驱动,我开始是在/tmp目录下进行安装的,./configure没问题,make install出现下列问题,后来在root目录下进行按装,还是出现同样的问题,我想的话可能不成在权限问题

[root@hzau alsa-driver-1.0.23]# make install
if [ -L /include/sound ]; then \
        rm -f /include/sound; \
        ln -sf /root/alsa-driver-1.0.23/include/sound /include/sound; \
    else \
        rm -rf /include/sound; \
        install -d -m 755 -g root -o root /include/sound; \
        for f in include/sound/*.h; do \
            install -m 644 -g root -o root $f /include/sound; \
        done \
    fi
install: 无法获取"include/sound/*.h" 的文件状态(stat): 没有那个文件或目录
make: *** [install-headers] 错误 1
不知道时什么原因?有知道的能帮帮兄弟吗?谢谢了

举报
yanjiang666
发帖于7年前 11回/4K+阅
共有11个答案 最后回答: 7年前

引用来自#2楼“”的帖子

./configure的信息帖出来看看

谢谢您,蔡华江

./configure的运行结果

[root@hzau 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... /root/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 /lib/modules/2.6.33.3-85.fc13.i686.PAE/source).

下面时安装每步的信息提示:

[root@hzau 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... /root/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 /lib/modules/2.6.33.3-85.fc13.i686.PAE/source).
[root@hzau alsa-driver-1.0.23]# make
make all-deps
make[1]: Entering directory `/root/alsa-driver-1.0.23'
make[1]: Nothing to be done for `all-deps'.
make[1]: Leaving directory `/root/alsa-driver-1.0.23'

Please, run the configure script as first...
[root@hzau alsa-driver-1.0.23]# make install
if [ -L /include/sound ]; then \
        rm -f /include/sound; \
        ln -sf /root/alsa-driver-1.0.23/include/sound /include/sound; \
    else \
        rm -rf /include/sound; \
        install -d -m 755 -g root -o root /include/sound; \
        for f in include/sound/*.h; do \
            install -m 644 -g root -o root $f /include/sound; \
        done \
    fi
install: 无法获取"include/sound/*.h" 的文件状态(stat): 没有那个文件或目录
make: *** [install-headers] 错误 1

以上是所有的信息提示,请高手指点

引用来自#4楼“蔡华江”的帖子

可能是没安装kernel-header

谢谢您,./configure的提示是表明成功了吗?我是新手,能否告诉我应该怎样安装kernel-header吗?

首先你确定/lib/modules/2.6.33.3-85.fc13.i686.PAE/source文件夹是否存在,如果存在且里面存在/include/sound/*.h之类的头文件的话,使用./configure --with-kernel=/lib/modules/2.6.33.3-85.fc13.i686.PAE/source配置

fedora我不知道具体包名是什么,不过总体来说也不过是kernel-header  linux-header之类的。

你通过包管理器直接安装就是了。

/lib/modules/2.6.33.3-85.fc13.i686.PAE/source这个文件夹不存在,那我在怎么办?

引用来自#7楼“蔡华江”的帖子

首先你确定/lib/modules/2.6.33.3-85.fc13.i686.PAE/source文件夹是否存在,如果存在且里面存在/include/sound/*.h之类的头文件的话,使用./configure --with-kernel=/lib/modules/2.6.33.3-85.fc13.i686.PAE/source配置

fedora我不知道具体包名是什么,不过总体来说也不过是kernel-header  linux-header之类的。

你通过包管理器直接安装就是

引用来自#8楼“yanjiang666”的帖子

/lib/modules/2.6.33.3-85.fc13.i686.PAE/source这个文件夹不存在,那我在怎么办?

引用来自#7楼“蔡华江”的帖子

首先你确定/lib/modules/2.6.33.3-85.fc13.i686.PAE/source文件夹是否存在,如果存在且里面存在/include/sound/*.h之类的头文件的话,使用./configure --with-kernel=/lib/modules/2.6.33.3-85.fc13.i686.PAE/source配置

fedora我不知道具体包名是什么,不过总体来说也不过是kernel-header  linux-header之类的。

你通过包管理器直接安装就是

[root@hzau linux]# rpm -qa |grep kernel
abrt-addon-kerneloops-1.1.0-1.fc13.i686
kernel-PAE-2.6.33.3-85.fc13.i686
kernel-headers-2.6.34.7-56.fc13.i686

这表明有kernel-headers啊?

[root@hzau linux]# find / -name sound
/home/yj/.gconf/desktop/gnome/sound
/root/alsa-driver-1.0.23/sound
/root/alsa-driver-1.0.23/include/sound
/lib/modules/2.6.33.3-85.fc13.i686.PAE/kernel/sound
/usr/include/sound
/etc/sound
/sys/devices/virtual/sound
/sys/devices/pci0000:00/0000:00:1b.0/sound
/sys/class/sound
/include/sound
/tmp/alsa-driver-1.0.23/sound
/tmp/alsa-driver-1.0.23/include/sound

引用来自#8楼“yanjiang666”的帖子

/lib/modules/2.6.33.3-85.fc13.i686.PAE/source这个文件夹不存在,那我在怎么办?

引用来自#7楼“蔡华江”的帖子

首先你确定/lib/modules/2.6.33.3-85.fc13.i686.PAE/source文件夹是否存在,如果存在且里面存在/include/sound/*.h之类的头文件的话,使用./configure --with-kernel=/lib/modules/2.6.33.3-85.fc13.i686.PAE/source配置

fedora我不知道具体包名是什么,不过总体来说也不过是kernel-header  linux-header之类的。

你通过包管理器直接安装就是

/lib/modules/2.6.33.3-85.fc13.i686.PAE/source是压缩包不是文件夹

引用来自#10楼“yanjiang666”的帖子

引用来自#8楼“yanjiang666”的帖子

/lib/modules/2.6.33.3-85.fc13.i686.PAE/source这个文件夹不存在,那我在怎么办?

引用来自#7楼“蔡华江”的帖子

首先你确定/lib/modules/2.6.33.3-85.fc13.i686.PAE/source文件夹是否存在,如果存在且里面存在/include/sound/*.h之类的头文件的话,使用./configure --with-kernel=/lib/modules/2.6.33.3-85.fc13.i686.PAE/source配置

fedora我不知道具体包名是什么,不过总体来说也不过是kernel-header  linux-header之类的。

你通过包管理器直接安装就是

/lib/modules/2.6.33.3-85.fc13.i686.PAE/source是压缩包不是文件夹

顶部