有个驱动不知道怎么装。

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
wispher
帖子: 4
注册时间: 2011-04-06 12:03

有个驱动不知道怎么装。

#1

帖子 wispher » 2011-04-06 12:37

我在网上买了一个USB的GPS模块。商家给了我驱动,但是我不知道怎么装,以下是文件截图。



我把文件也放上来了,希望大家帮我看看!
附件
gps driver linux.rar
(20.54 KiB) 已下载 15 次
Screenshot.png
上次由 wispher 在 2011-04-06 19:11,总共编辑 1 次。
头像
lainme
论坛版主
帖子: 7805
注册时间: 2008-09-13 19:17
系统: Arch Linux (x86_64)
联系:

Re: 有个驱动不知道怎么装。

#2

帖子 lainme » 2011-04-06 12:50

先看readme
头像
tenzu
论坛版主
帖子: 36924
注册时间: 2008-11-21 20:26

Re: 有个驱动不知道怎么装。

#3

帖子 tenzu » 2011-04-06 14:09

代码: 全选

sh makefile
试试
头像
懒蜗牛Gentoo
论坛版主
帖子: 7353
注册时间: 2007-03-02 17:36
系统: Linux Mint

Re: 有个驱动不知道怎么装。

#4

帖子 懒蜗牛Gentoo » 2011-04-06 14:45

楼上的,makefile不是这么用的吧。
lz进去那个目录之后直接运行make看看
虽然世上没有完美的东西,但这并不影响我们追求完美,因为只有偏执狂才TMD能成功。
10.04新手入门——笨兔兔讲述自己的故事
头像
tenzu
论坛版主
帖子: 36924
注册时间: 2008-11-21 20:26

Re: 有个驱动不知道怎么装。

#5

帖子 tenzu » 2011-04-06 15:00

:em04
那个makefile不一定就是make生成的,也许只是编译脚本
我就遇到过这样的情况。
一个源码文件和一个makefile,正愁不会编译呢,双击打开了makefile,世界和平了
头像
懒蜗牛Gentoo
论坛版主
帖子: 7353
注册时间: 2007-03-02 17:36
系统: Linux Mint

Re: 有个驱动不知道怎么装。

#6

帖子 懒蜗牛Gentoo » 2011-04-06 16:35

竟然还有这样的啊,学习了 :em06
虽然世上没有完美的东西,但这并不影响我们追求完美,因为只有偏执狂才TMD能成功。
10.04新手入门——笨兔兔讲述自己的故事
wispher
帖子: 4
注册时间: 2011-04-06 12:03

Re: 有个驱动不知道怎么装。

#7

帖子 wispher » 2011-04-06 19:20

Make 的结果

peter@peter-laptop:~/xp/software/backup/gps/Linux$ ls
Makefile pl2303.c pl2303.h readme.txt usbserial.c usb-serial.h
peter@peter-laptop:~/xp/software/backup/gps/Linux$ make
gcc -D__KERNEL__ -I/usr/src/linux/include -DCPU=586 -march=i586 -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -DMODULE -c pl2303.c
pl2303.c:12: fatal error: linux/config.h: No such file or directory
compilation terminated.
make: *** [pl2303.o] Error 1

sh 的结果

peter@peter-laptop:~/xp/software/backup/gps/Linux$ ls
Makefile pl2303.c pl2303.h readme.txt usbserial.c usb-serial.h
peter@peter-laptop:~/xp/software/backup/gps/Linux$ sh
$ ls
Makefile pl2303.c pl2303.h readme.txt usbserial.c usb-serial.h
$ sh Makefile
: not found:
: not found:
: not found2:
Makefile: 13: -DCPU=586: not found
: not found4: pl2303
: not found5: gcc
: not found6:
: not found7:
Makefile: 18: KINCLUDES: not found
Makefile: 18: CPUFLAGS: not found
Makefile: 18: SMPFLAGS: not found
Makefile: 18: -D__KERNEL__: not found
Makefile: 19: -Wall: not found
Makefile: 20: -fno-strict-aliasing: not found
: not found1:
: not found2: -DEXPORT_SYMTAB
: not found3:
: not found5:
Makefile: 26: KERNFLAGS: not found
Makefile: 26: DBGCFLAGS: not found
: not found6:
: not found7:
: not found8:
Makefile: 29: MODULE: not found
Makefile: 29: all::: not found
: not found0:
Makefile: 31: MODULE: not found
Makefile: 31: MODULE: not found
Makefile: 31: .o:: not found
Makefile: 32: CC: not found
Makefile: 32: CFLAGS: not found
: No such filecannot open
Makefile: 32: -c: not found
: not found3:
Makefile: 34: usbserial.o:: not found
Makefile: 35: CC: not found
Makefile: 35: CFLAGS: not found
Makefile: 35: EXTRA_CFLAGS: not found
: No such filecannot open
Makefile: 35: -c: not found
: not found6:
: not found7: inst:
': No such file or directoryial.o
': No such file or directory.o
: not found0:
: not found1: uninst:
does not exist in /proc/modules
does not exist in /proc/modules
: not found4:
: not found5: clean:
$
头像
懒蜗牛Gentoo
论坛版主
帖子: 7353
注册时间: 2007-03-02 17:36
系统: Linux Mint

Re: 有个驱动不知道怎么装。

#8

帖子 懒蜗牛Gentoo » 2011-04-06 20:39

好,说明你的Makefile是个正常的Makefile,你Make没成功的原因是没有安装头文件。运行
sudo apt -get install build-essential
虽然世上没有完美的东西,但这并不影响我们追求完美,因为只有偏执狂才TMD能成功。
10.04新手入门——笨兔兔讲述自己的故事
回复