Solved Can't load driver file apr_dbd_pgsql.so

Hi, ran # pkg upgrade
It removed :
p5-DBD-Pg: 3.10.0, php74-pgsql: 7.4.0.r6 and postgresql-odbc: 11.01.0000_1

After completion of pkg upgrade, ran # portmaster -y --packages for the 3 above removed packages.

Ran # /usr/local/etc/rc.d/apache24 restart
Syntax error on line 529 of /usr/local/etc/apache24/httpd.conf:
Can't load driver file apr_dbd_pgsql.so

httpd.conf line 529 has:
DBDriver pgsql

The file was located in /usr/local/lib/apr-util-1/apr_dbd_pgsql.so prior to running pkg upgrade, now its gone.

The hint is above, apr.
The fix is:
# cd /usr/ports/devel/apr1
# make deinstall reinstall

It seems the case is pkg upgrade doesn't install apr_dbd_pgsql.so

If one just runs # make install it will fail because it's already installed!

Hope this helps someone else who runs into this.
 
Back
Top