我是一个全新安装FreeBSD 10的新手,我正试图安装VIM:
cd /usr/ports/editors/vim && export FLAVOR=no_x11 && make install clean
然后陷入困境,试图下载' 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
我很难过。
建议,想法?
谢谢,Dan
答案 0 :(得分:5)
您的端口树应在使用之前进行更新。
运行portsnap fetch
以获取端口树的最新副本。
第一次运行portsnap extract
来重建整个/ usr / ports目录。
之后,您可以运行portsnap update
来对/ usr / ports进行增量更新。
P.S。
命令可以连接在一起。
首次运行portsnap fetch extract
,每日更新portsnap fetch update
。
最新端口树中的 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
让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
答案 1 :(得分:4)
您可以使用pkg install package_foo
安装软件包。查看webpage(以及手册 - 当然:pkg,pkg-install,pkg-delete和pkg-add)。
如果您想从端口安装vim,请cd
到/usr/ports/editors/vim
和make config
。您可以选择CONSOLE
"用户界面" (选中freshports/vim"配置选项")。在make config
之后,请使用make install clean
,等待几分钟(或几小时 - 取决于您的计算机:)),然后完成。
有关端口系统的更多详情,请查看port documentation和man ports
还有一个建议:你可以使用一些关于处理端口的程序:最受欢迎的是portmaster和portupgrade(我使用portmaster
)。