I'm a newbie with a fresh install of FreeBSD 10 and am trying to install VIM thusly:
cd /usr/ports/editors/vim && export FLAVOR=no_x11 && make install clean
It then gets bogged down trying to download '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.
Run portsnap fetch
to fetch the newest copy of ports tree.
And for the first time, run portsnap extract
to rebuild the whole /usr/ports directory.
After that, you can run portsnap update
instead to do incremental update to /usr/ports .
P.S.
Commands can be concatenated.
Run portsnap fetch extract
for the first time, and portsnap fetch update
for daily update.
The version of png in the newest ports tree is 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.
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
. Check webpage (and manuals - of course: pkg, pkg-install, pkg-delete and pkg-add).
If you want install vim from port please cd
to /usr/ports/editors/vim
and make config
. You can choose CONSOLE
"User interface" (check freshports/vim "Configuration Options"). After make config
please use make install clean
, wait some minutes (or hours - depends on your machine :) ), and done.
More details about port system please check port documentation and man ports
One more suggestion: you can use some programs about dealing with ports: the most popular are portmaster and portupgrade (I'm using portmaster
).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With