LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1001|回复: 10

紧急求救!!!

[复制链接]
发表于 2006-9-13 11:18:53 | 显示全部楼层 |阅读模式
请问我装了debian基本系统后要装moxa的4串口驱动在make clean;make install 这里就出错了!!询问了下说要构建编译环境!!请问怎么构建!!我菜鸟一个!!!谢谢了!!
发表于 2006-9-13 12:02:06 | 显示全部楼层
编译的步骤是
configure
make
make install
你先用make clean把编译好的二进制文件全部都删掉了,make install怎么可能会成功呢
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-9-13 12:11:15 | 显示全部楼层
谢谢!!但是http://www.moxa.com.cn/product/CP_104UL_V2.htm这个上面就是那么说的呢!!!

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

发表于 2006-9-13 18:56:58 | 显示全部楼层
上面的那三步是一般步骤。
具体要看Makefile怎么写了。
你把你遇到的错误贴出来吧
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-9-13 21:24:05 | 显示全部楼层
我在redhat下安装了编译环境就可以了!!!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-9-14 02:04:16 | 显示全部楼层
原来debian已经认出了串口卡!!!但是在最后的时候出错了!!!请帮忙看看!!!

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

发表于 2006-9-14 03:38:11 | 显示全部楼层
Look at the bottom of the 3nd picture:
  1. make[1]: Entering directory `/mxser/driver'
  2. make -C /lib/modules/2.6.8-3-386/build SUBDIRS=/mxser/driver modules
  3. make: *** [color="red"]/lib/modules/2.6.8-3-386/build: xxxxx [/color](sorry, I cannot type Chinese here)
  4. ...
复制代码
Seems like you did not install the kernel header files. so you cannot build the driver module.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-9-14 10:23:56 | 显示全部楼层
那到底装什么呀!!我菜鸟呀!!你直接给命令呀!!!
回复 支持 反对

使用道具 举报

发表于 2006-9-14 21:55:19 | 显示全部楼层
the command should be:
  1. apt-get install <package_name>
复制代码
but I don't use debian, I don't know the package name exactly.
its name should be something like "kernel_headers". just be careful its version should match your kernel version.

anyway, you can search the sir bbs, there is a loooooot of people talking about this problem.  you will find the answer! :-)
回复 支持 反对

使用道具 举报

发表于 2006-9-14 22:23:01 | 显示全部楼层
这样安装headers
#apt-get install kernel-headers-2.6.8-3-386
回复 支持 反对

使用道具 举报

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

本版积分规则

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