Apache22 Port di FreeBSD 8.2 Stable

| Thursday, December 15, 2011

Kemarin setelah update ke FreeBSD stable 8.2 dan CVsup it coz me trouble.
In da middle on installation i got

/usr/ports/www/apache22/work/httpd-2.2.16/support/htpasswd.c:133: undefined reference to `apr_generate_random_bytes'
*** Error code 1
1 error

it made me frustated, after a day search and following instruction from freebsd forum i got nothing. so i assume that maybe something wrong with the port and i have to fix it.

Here is the solution i've found from the inet to fix a broken port.
It works for me .. :)

# Change into the ports directory
cd /usr/ports/
# First fetch ports index
make fetchindex
# Build the ports database
portsdb -u
# Show out of date ports
pkg_version -l "<"
# Upgrade ports
portupgrade -arR
# Check for stale dependencies
pkgdb -F
# Clean out work directories and delete old distfiles
portsclean -CDD _________________