当前位置: 技术问答>linux和unix
OpenSolaris如何编译pciutils
来源: 互联网 发布时间:2016-03-27
本文导语: 下载了pciutils,README文件上说支持Solaris x86。 请问是否有可以使用的binary下载,如何从源代码编译? | 1. Download the pciutils tarball and unroll it in your source tree 2. The configure script uses sed...
下载了pciutils,README文件上说支持Solaris x86。
请问是否有可以使用的binary下载,如何从源代码编译?
请问是否有可以使用的binary下载,如何从源代码编译?
|
1. Download the pciutils tarball and unroll it in your source tree
2. The configure script uses sed to mash up some variables for the the lib/Makefile include (config.mk), but Solaris sed falls down on the job. Fix the configure script to use gsed, or have a functional sed in front of /usr/bin in the PATH variable.
3. The install program has problems with the constructs in the pciutils Makefile for targets install and install-lib. Just replace install with ginstall, or make sure a GNU install is ahead of /usr/bin and /usr/ucb (since /usr/ucb/install is much more aligned with open source "install programs", than /usr/bin/install) in your PATH variable.
4. The libpci.pc.in prototype in pciutils-2.2.10/lib doesn't have Libs correctly set, so add "-R${libdir}" to the line starting with Libs:
5. gmake is required for pciutils, and you'll need to set CC=gcc to make it compile on Solaris.
2. The configure script uses sed to mash up some variables for the the lib/Makefile include (config.mk), but Solaris sed falls down on the job. Fix the configure script to use gsed, or have a functional sed in front of /usr/bin in the PATH variable.
3. The install program has problems with the constructs in the pciutils Makefile for targets install and install-lib. Just replace install with ginstall, or make sure a GNU install is ahead of /usr/bin and /usr/ucb (since /usr/ucb/install is much more aligned with open source "install programs", than /usr/bin/install) in your PATH variable.
4. The libpci.pc.in prototype in pciutils-2.2.10/lib doesn't have Libs correctly set, so add "-R${libdir}" to the line starting with Libs:
5. gmake is required for pciutils, and you'll need to set CC=gcc to make it compile on Solaris.