下载
下载好net-snmp源码包解压后进入文件夹。
./configure -h 可以看到编译配置
配置
Configuration: |
|
|
-h, --help |
显示此帮助并退出 |
display this help and exit |
–help=short |
显示此包的特定选项 |
display options specific to this package |
–help=recursive |
显示所有包含包的简短帮助 |
display the short help of all the included packages |
-V, --version |
显示版本信息并退 |
display version information and exit |
-q, --quiet, --silent |
不打印“checking…”信息 |
do not print `checking …’ messages |
–cache-file=FILE |
缓存测试结果在FILE [disabled] |
cache test results in FILE [disabled] |
-n, --no-create |
不创建输出Makefile |
do not create output files |
–srcdir=DIR |
在sources寻找DIR |
find the sources in DIR [configure dir or `…'] |
Installation directories: |
安装的程序的具体目录,通过指定这2个选项后,程序就完全的被安装在你指定的目录下面了,此时以后删除该程序,只需要简单的移除该目录下所有内容就可以了。 |
区别就只有是否平台相关性 |
–prefix=PREFIX |
|
install architecture-independent files in PREFIX [/usr/local] |
–exec-prefix=EPREFIX |
|
install architecture-dependent files in EPREFIX [PREFIX] |
Fine tuning of the installation directories: |
进一步指定软件安装后的具体目录(如可执行文件的目录,共享库的目录等),可以使用如下选项来配置 |
|
–bindir=DIR |
|
user executables [EPREFIX/bin] |