QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1021|回复: 13

我下载了“猫”的驱动,但装不上

[复制链接]
发表于 2004-1-31 23:31:34 | 显示全部楼层 |阅读模式
我的电脑用的是pctel芯片的软猫,在网上下载了驱动后,在终端提示符下安装文件目录下输入./configure --with-hal=pct789 --with-kernel-includes=usr/include回车后,最后的错误提示为:modversions.h is missing-you should configure your kernel first.
我用的是redhat 9.0 ,不知kernel是不是在usr/include下面。
请各位高手指点一下,谢谢?
发表于 2004-1-31 23:51:52 | 显示全部楼层
是 /usr/src/linux-2.4 下吧?
回复

使用道具 举报

 楼主| 发表于 2004-2-5 21:40:59 | 显示全部楼层
我去试一下谢谢!
回复

使用道具 举报

 楼主| 发表于 2004-2-8 12:33:29 | 显示全部楼层
是 /usr/src/linux-2.4 下吧?
我的/usr/src/下没有linux-2.4这个目录.怎么办?
回复

使用道具 举报

发表于 2004-2-8 13:51:15 | 显示全部楼层
你没装内核源代码当然没有了,
看看你三张安装盘里哪张有 kernel-xxxx.rpm , 装上就有了.
回复

使用道具 举报

 楼主| 发表于 2004-2-8 17:01:59 | 显示全部楼层
哦!真谢谢你呀,我再去试试。我想再问一下,“猫”装好后,怎样拔号上网呀?拔号程序在哪儿?
回复

使用道具 举报

发表于 2004-2-8 19:09:37 | 显示全部楼层
kppp 吧, 用它的 Query modem 检测一下, 看能否找到你的调制解调器, 这最重要了,
如果找不到就很麻烦~~
//
Redhat 自带的那个网络设备控制程序也可以用, 设置的时候要注意一下 ,
其中填地区, 国家, 电话号码三项 是在一个选项框中的 用 / 分开的, 注意提示他的提示.
回复

使用道具 举报

 楼主| 发表于 2004-2-8 20:21:20 | 显示全部楼层
我在安装光盘上找到了kernel-2.4.20-8.i686.rpm这个文件,安装时提示这个文件已经安装过了。在/usr/src/下只有debug和RedHat两个目录。为什么在linux下装个“猫”的驱动这么麻烦?唉!还请大哥多帮帮忙。谢谢!
回复

使用道具 举报

发表于 2004-2-8 20:42:00 | 显示全部楼层
是这个  kernel-2.4.20-8.src.rpm  !
//
要是安装光盘里没有, 那就在在源代码盘里, 我望了    
是目录 SRPMS 里!
回复

使用道具 举报

 楼主| 发表于 2004-2-22 21:40:52 | 显示全部楼层
我按你教我的方法,在源代码盘找到了kernel-2.4.20-8.src.rpm这个文件,但是执行rpm -ivh kernel-2.4.20-8.src.rpm安装命令后, /usr/src下还是原来的样子,没有什么新东西,我又没招了.
回复

使用道具 举报

发表于 2004-2-23 00:31:23 | 显示全部楼层
用图形工具啊,"添加/删除应用程序"

安装"内核开发"
回复

使用道具 举报

 楼主| 发表于 2004-4-11 23:35:11 | 显示全部楼层
我已经装上的内核源代码,也下载了相应的驱动程序. 但还是装不了"猫"的驱动.执行./configure --with-hal=pct789 --with-kernel-includes=usr/src/linux-2.4.20-8/include,好像是编译了,但一路装下去,驱动还是没装上.我都烦死了.怎么办?怎么办啊?
回复

使用道具 举报

 楼主| 发表于 2004-4-12 16:07:50 | 显示全部楼层
我打入命令后,终端显示的结果如下,高手能帮我解答一下哪里出了问题.
[root@hujx pctel-0.9.6]# ./configure --with-hal=pct789 --with-kernel-includes=/usr/src/linux-2.4/include
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets ${MAKE}... yes
checking build driver for... HAL_PCT789
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 style of include used by make... GNU
checking dependency style of gcc... none
checking whether make sets ${MAKE}... (cached) yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for gawk... (cached) gawk
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking /usr/src/linux-2.4/include/linux/modversions.h usability... yes
checking /usr/src/linux-2.4/include/linux/modversions.h presence... yes
checking for /usr/src/linux-2.4/include/linux/modversions.h... yes
checking for Linux kernel version >= 2.4.0... yes
checking for Linux kernel version >= 2.4.7... yes
checking for mknod... mknod
checking for chgrp... chgrp
checking for chmod... chmod
checking for depmod... depmod
checking for rmmod... rmmod
checking for lsmod... lsmod
checking for modprobe... modprobe
checking for objdump... objdump
checking for objcopy... objcopy
configure: creating ./config.status
config.status: creating Makefile
config.status: creating lib/Makefile
config.status: creating modules/Makefile
config.status: creating include/Makefile
config.status: creating src/Makefile
config.status: creating src/module/Makefile
config.status: creating src/ptserial/Makefile
config.status: creating misc/Makefile
config.status: creating misc/pctel.spec
config.status: creating misc/SlackBuild
config.status: creating misc/build_rpms.sh
config.status: creating m4/Makefile
config.status: executing depfiles commands
config.status: executing default commands
[root@hujx pctel-0.9.6]# make
Making all in src
make[1]: Entering directory `/root/pctel-0.9.6/src'
Making all in module
make[2]: Entering directory `/root/pctel-0.9.6/src/module'
rm -f *~ \#* .*~ .\#*
rm -f ptmodule.o
rm -f ptmodule.o
rm -f ../../modules/pctel.o
gcc    -D__KERNEL__ -Werror -Wno-trigraphs -fno-common -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -DMODULE -DMODVERSIONS -DEXPORT_SYMTAB -DHAL_PCT789  -I../../include -I/usr/src/linux-2.4/include -include /usr/src/linux-2.4/include/linux/modversions.h -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"pctel\" -DVERSION=\"0.9.5\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1   -c -o ptmodule.o ptmodule.c
ld -r -o ../../modules/pctel.o ptmodule.o ../../lib/control.a ../../lib/vuart.o ../../lib/pct789/dsp.a ../../lib/pct789/pcthal.a
make[2]: Leaving directory `/root/pctel-0.9.6/src/module'
Making all in ptserial
make[2]: Entering directory `/root/pctel-0.9.6/src/ptserial'
rm -f *~ \#* .*~ .\#*
rm -f ptserial.o ptserial.c
rm -f ptserial.o
rm -f ../../modules/ptserial.o
ln -s -f ptserial-2.4.7.c ../../src/ptserial/ptserial.c
make ptserial.o
make[3]: Entering directory `/root/pctel-0.9.6/src/ptserial'
gcc    -D__KERNEL__ -Werror -Wno-trigraphs -fno-common -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -DMODULE -DMODVERSIONS -DEXPORT_SYMTAB -DHAL_PCT789  -DBUILD_SYSTEM=\""`uname -s -m -r -p`\"" -DGCC_VERSION=\""`gcc --version | head -1`\"" -I../../include -I/usr/src/linux-2.4/include -include /usr/src/linux-2.4/include/linux/modversions.h -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"pctel\" -DVERSION=\"0.9.5\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1   -c -o ptserial.o ptserial.c
make[3]: Leaving directory `/root/pctel-0.9.6/src/ptserial'
ld -r -o ../../modules/ptserial.o ptserial.o
make[2]: Leaving directory `/root/pctel-0.9.6/src/ptserial'
make[2]: Entering directory `/root/pctel-0.9.6/src'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/root/pctel-0.9.6/src'
make[1]: Leaving directory `/root/pctel-0.9.6/src'
Making all in lib
make[1]: Entering directory `/root/pctel-0.9.6/lib'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/pctel-0.9.6/lib'
Making all in modules
make[1]: Entering directory `/root/pctel-0.9.6/modules'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/pctel-0.9.6/modules'
Making all in include
make[1]: Entering directory `/root/pctel-0.9.6/include'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/pctel-0.9.6/include'
Making all in misc
make[1]: Entering directory `/root/pctel-0.9.6/misc'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/pctel-0.9.6/misc'
Making all in m4
make[1]: Entering directory `/root/pctel-0.9.6/m4'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/pctel-0.9.6/m4'
make[1]: Entering directory `/root/pctel-0.9.6'
make[1]: Nothing to be done for `all-am'.
make[1]: Leaving directory `/root/pctel-0.9.6'
[root@hujx pctel-0.9.6]# make install
Making install in src
make[1]: Entering directory `/root/pctel-0.9.6/src'
Making install in module
make[2]: Entering directory `/root/pctel-0.9.6/src/module'
make[3]: Entering directory `/root/pctel-0.9.6/src/module'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/root/pctel-0.9.6/src/module'
make[2]: Leaving directory `/root/pctel-0.9.6/src/module'
Making install in ptserial
make[2]: Entering directory `/root/pctel-0.9.6/src/ptserial'
make[3]: Entering directory `/root/pctel-0.9.6/src/ptserial'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/root/pctel-0.9.6/src/ptserial'
make[2]: Leaving directory `/root/pctel-0.9.6/src/ptserial'
make[2]: Entering directory `/root/pctel-0.9.6/src'
make[3]: Entering directory `/root/pctel-0.9.6/src'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/root/pctel-0.9.6/src'
make[2]: Leaving directory `/root/pctel-0.9.6/src'
make[1]: Leaving directory `/root/pctel-0.9.6/src'
Making install in lib
make[1]: Entering directory `/root/pctel-0.9.6/lib'
make[2]: Entering directory `/root/pctel-0.9.6/lib'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/root/pctel-0.9.6/lib'
make[1]: Leaving directory `/root/pctel-0.9.6/lib'
Making install in modules
make[1]: Entering directory `/root/pctel-0.9.6/modules'
make[2]: Entering directory `/root/pctel-0.9.6/modules'
/bin/sh ../mkinstalldirs /lib/modules/2.4.20-8/misc
/usr/bin/install -c -o root -g root -m 644 pctel.o /lib/modules/2.4.20-8/misc/pctel.o
/usr/bin/install -c -o root -g root -m 644 ptserial.o /lib/modules/2.4.20-8/misc/ptserial.o
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/root/pctel-0.9.6/modules'
make[1]: Leaving directory `/root/pctel-0.9.6/modules'
Making install in include
make[1]: Entering directory `/root/pctel-0.9.6/include'
make[2]: Entering directory `/root/pctel-0.9.6/include'
make[2]: Nothing to be done for `install-exec-am'.
/bin/sh ../mkinstalldirs /usr/local/include/pctel
/usr/bin/install -c -m 644 pctel.h /usr/local/include/pctel/pctel.h
make[2]: Leaving directory `/root/pctel-0.9.6/include'
make[1]: Leaving directory `/root/pctel-0.9.6/include'
Making install in misc
make[1]: Entering directory `/root/pctel-0.9.6/misc'
make[2]: Entering directory `/root/pctel-0.9.6/misc'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/root/pctel-0.9.6/misc'
make[1]: Leaving directory `/root/pctel-0.9.6/misc'
Making install in m4
make[1]: Entering directory `/root/pctel-0.9.6/m4'
make[2]: Entering directory `/root/pctel-0.9.6/m4'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/root/pctel-0.9.6/m4'
make[1]: Leaving directory `/root/pctel-0.9.6/m4'
make[1]: Entering directory `/root/pctel-0.9.6'
make[2]: Entering directory `/root/pctel-0.9.6'
make[2]: Nothing to be done for `install-exec-am'.
installing FAQ as /usr/local/share/doc/pctel/FAQ
installing README as /usr/local/share/doc/pctel/README
*** Setting device file. ***
make[2]: Leaving directory `/root/pctel-0.9.6'
make[1]: Leaving directory `/root/pctel-0.9.6'
[root@hujx pctel-0.9.6]#
回复

使用道具 举报

发表于 2004-4-12 17:08:37 | 显示全部楼层
/usr/bin/install -c -o root -g root -m 644 pctel.o /lib/modules/2.4.20-8/misc/pctel.o
/usr/bin/install -c -o root -g root -m 644 ptserial.o /lib/modules/2.4.20-8/misc/ptserial.o


你这个不是装上了吗?
你的 readme 文件怎么说啊?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-7 06:37 , Processed in 0.076162 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表