[英]Installing VIM in FreeBSD
I'm a newbie with a fresh install of FreeBSD 10 and am trying to install VIM thusly: 我是全新安装FreeBSD 10的新手,我正试图安装VIM:
cd /usr/ports/editors/vim && export FLAVOR=no_x11 && make install clean
It then gets bogged down trying to download 'libpng': 然后陷入困境,试图下载'libpng':
===> Verifying install for png15 in /usr/ports/graphics/png
===> Found saved configuration for png-1.5.17
===> png-1.5.17 depends on file: /usr/local/sbin/pkg - found
=> libpng-1.5.17.tar.xz doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch http://heanet.dl.sourceforge.net/project/libpng/libpng15/1.5.17/libpng-1.5.17.tar.xz
fetch: http://heanet.dl.sourceforge.net/project/libpng/libpng15/1.5.17/libpng-1.5.17.tar.xz: Moved Temporarily
....
=> Attempting to fetch ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/libpng-1.5.17.tar.xz
fetch: ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/libpng-1.5.17.tar.xz: File unavailable (e.g., file not found, no access)
=> Couldn't fetch it - please try to retrieve this
=> port manually into /usr/ports/distfiles/ and try again.
*** Error code 1
Stop.
make[7]: stopped in /usr/ports/graphics/png
*** Error code 1
I'm stumped on this. 我很难过。
Suggestions, ideas? 建议,想法?
Thanks, Dan 谢谢,丹
Your ports tree should be updated before taking it into use. 您的ports树在使用之前应该更新。
Run portsnap fetch
to fetch the newest copy of ports tree. 运行portsnap fetch
以获取端口树的最新副本 。
And for the first time, run portsnap extract
to rebuild the whole /usr/ports directory. 并且第一次运行portsnap extract
来重建整个/ usr / ports目录。 After that, you can run portsnap update
instead to do incremental update to /usr/ports . 之后,您可以运行portsnap update
来对/ usr / ports进行增量更新。
PS Commands can be concatenated. PS命令可以连接。 Run portsnap fetch extract
for the first time, and portsnap fetch update
for daily update. 首次运行portsnap fetch extract
, portsnap fetch update
以进行每日更新。
The version of png in the newest ports tree is 1.5.18 最新端口树中的png版本是1.5.18
xiami@bsd:/usr/ports/graphics/png % head -5 Makefile
# Created by: ache
# $FreeBSD: head/graphics/png/Makefile 349670 2014-03-30 19:44:48Z dinoex $
PORTNAME= png
PORTVERSION= 1.5.18
And make fetch runs well. 并使fetch运行良好。
xiami@bsd:/usr/ports/graphics/png % sudo make fetch
Password:
===> png-1.5.18 depends on file: /usr/local/sbin/pkg - found
=> libpng-1.5.18.tar.xz doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch http://downloads.sourceforge.net/project/libpng/libpng15/1.5.18/libpng-1.5.18.tar.xz
libpng-1.5.18.tar.xz 100% of 713 kB 960 kBps 00m01s
=> libpng-1.5.18-apng.patch.gz doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch http://downloads.sourceforge.net/project/apng/libpng/libpng15/libpng-1.5.18-apng.patch.gz
libpng-1.5.18-apng.patch.gz 100% of 9580 B 29 MBps 00m00s
===> Fetching all distfiles required by png-1.5.18 for building
You can install packages with pkg install package_foo
. 您可以使用pkg install package_foo
安装软件包。 Check webpage (and manuals - of course: pkg , pkg-install , pkg-delete and pkg-add ). 检查网页 (和手册 - 当然: pkg , pkg-install , pkg-delete和pkg-add )。
If you want install vim from port please cd
to /usr/ports/editors/vim
and make config
. 如果你想从端口安装vim请cd
到/usr/ports/editors/vim
并make config
。 You can choose CONSOLE
"User interface" (check freshports/vim "Configuration Options"). 您可以选择CONSOLE
“用户界面”(检查freshports / vim “配置选项”)。 After make config
please use make install clean
, wait some minutes (or hours - depends on your machine :) ), and done. 在make config
请使用make install clean
,等待几分钟(或几小时 - 取决于你的机器:)),并完成。
More details about port system please check port documentation and man ports 有关端口系统的更多详细信息,请查看端口文档和man端口
One more suggestion: you can use some programs about dealing with ports: the most popular are portmaster and portupgrade (I'm using portmaster
). 还有一个建议:你可以使用一些关于处理端口的程序:最流行的是portmaster和portupgrade (我正在使用portmaster
)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.