我已经安装了FreeBSD 9,我需要安装phantomjs 。 它在/usr/ports/lang/phantomjs但版本是1.0,而我需要更新的版本。 有一个补丁更新到1.4.1版本,但我不知道如何应用这个补丁。 我search了这个,几次阅读了FreeBSD Porter's Handbook ,但是我仍然迷失了。
在/usr/ports/UPDATING文件中也没有关于phantomjs的条目。
谢谢你的帮助。
你需要更新你的端口树。 跑:
portsnap fetch update
如果要定期更新端口树,可以创build一个定期脚本。
这是我在开发机器上使用的脚本/usr/local/etc/periodic/weekly/910.portsnap
#!/bin/sh - # # # If there is a global system configuration file, suck it in. # if [ -r /etc/defaults/periodic.conf ] then . /etc/defaults/periodic.conf source_periodic_confs fi case "$weekly_portsnap_enable" in [Yy][Ee][Ss]) echo "" echo "Updating ports tree via portsnap:" portsnap cron update | grep -v /;; *) rc=0;; esac exit $rc
不要忘了chmod+x 910.portsnap并将weekly_portsnap_enable="YES"添加到/etc/periodic.conf文件中。