If you see following error:
SOLUTION
Just run the command by following FTP_PASSIVE_MODE=1:
Related thread:
http://forums.freebsd.org/showthread.php?t=3794
Code:
sudo pkg_add -rv xxx
...
<<< 200 Switching to Binary mode.
binding data socket
>>> PORT 192,168,14,38,251,217
<<< 500 Illegal PORT command.
Error: Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8-stable/Latest/xxx.tbz: [B]Syntax error, command unrecognized[/B]
pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8-stable/Latest/xxx.tbz' by URL
pkg_add: 1 package addition(s) failed
> man pkg_add | less +/FTP_PASSIVE_MODE
Note: If you wish to use passive mode ftp in such transfers, set the
variable FTP_PASSIVE_MODE to some value in your environment. Otherwise,
the more standard ACTIVE mode may be used. If pkg_add consistently fails
to fetch a package from a site known to work, it may be because you have
a firewall that demands the usage of passive mode ftp.
SOLUTION
Just run the command by following FTP_PASSIVE_MODE=1:
Code:
> sudo [B]FTP_PASSIVE_MODE=1[/B] pkg_add -rv kcachegrind
Related thread:
http://forums.freebsd.org/showthread.php?t=3794