这两天由于项目需要,在OpenSolaris Nevada build 86上编译了pciutils。具体过程如下:
1. download the source code from:
http://mj.ucw.cz/pciutils.shtml
2. dump the zipped tar achive into a directory:
$ gzcat pciutils-3.0.0.tar.gz | tar xf -
$ cd pciutils-3.0.0
3. change
#ifdef _LITTLE_ENDIAN
to
#ifdef LITTLE_ENDIAN
in lib/sysdep.h
4. install gsed
# pkg-get install gsed
5. gmake CC=gcc
据SUN的工程师说,他们在OpenSolaris中集成pciutils,所以不久就可以直接使用OpenSolaris上集成的pciutils了。
1. download the source code from:
http://mj.ucw.cz/pciutils.shtml
2. dump the zipped tar achive into a directory:
$ gzcat pciutils-3.0.0.tar.gz | tar xf -
$ cd pciutils-3.0.0
3. change
#ifdef _LITTLE_ENDIAN
to
#ifdef LITTLE_ENDIAN
in lib/sysdep.h
4. install gsed
# pkg-get install gsed
5. gmake CC=gcc
据SUN的工程师说,他们在OpenSolaris中集成pciutils,所以不久就可以直接使用OpenSolaris上集成的pciutils了。
在OpenSolaris编译pciutils
本文介绍了在OpenSolaris Nevada build 86上编译pciutils的过程,包括下载源代码、修改sysdep.h文件以适配系统字节序宏、安装gsed以及使用gmake进行编译。
1096

被折叠的 条评论
为什么被折叠?



