The search target requires INDEX-9. Please run make index or make fetchindex

时间:2019-11-20 08:54:06  来源:igfitidea点击:

在FreeBSD中执行
make search name = nginx命令时,报错:

The search target requires INDEX-9. Please run make index or make fetchindex

解决方法

转到/usr/ports目录,来搜索FreeBSD ports树。

使用root执行下面命令

cd /usr/ports
make index

或者

cd /usr/ports
make fetchindex

然后重新搜索

# make search name=apache
# make search name=lsof

输出示例:

Port:	lsof-4.87,8
Path:	/usr/ports/sysutils/lsof
Info:	Lists information about open files (similar to fstat(1))
Maint:	[email protected]
B-deps:	
R-deps:	
WWW:	http://people.freebsd.org/~abe/
 
Port:	p5-Unix-Lsof-0.0.5_1
Path:	/usr/ports/sysutils/p5-Unix-Lsof
Info:	Unix::Lsof -- a wrapper to the Unix lsof utility
Maint:	[email protected]
B-deps:	p5-IPC-Run3-0.045 perl-5.14.2_2
R-deps:	p5-IPC-Run3-0.045 perl-5.14.2_2
WWW:	http://search.cpan.org/dist/Unix-Lsof/