Solved pkg: unknown command: provides

Hello,

I'm trying to fix the boot error that you see below :
Code:
# php

PHP Warning:  PHP Startup: Unable to load dynamic library 'intl.so' (tried: /usr/local/lib/php/20190902/intl.so (Shared object "libicuio.so.72" not found, required by "intl.so"), /usr/local/lib/php/20190902/intl.so.so (Cannot open "/usr/local/lib/php/20190902/intl.so.so")) in Unknown on line 0
 
[marietto@marietto /]$ pkg provides libicuio.so.72
pkg: unknown command: provides

how to fix it ? (I'm using FreeBSD 13.2-RELEASE).

thanks.
 
this looks like php74 which is gone
the 'correct' way is to install php8.whatever is default now
the quick and dirty way is to try to link a current version of libicuio to the missing one and hope it works (in most cases it does)
 
Code:
# pkg install pkg-provides

Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The most recent versions of packages are already installed

# pkg provides
pkg: unknown command: provides

# pkg-provides
pkg-provides: Command not found.
 
fixed the problem by installing the port :

/usr/ports/devel/php74-intl

(the package does not exists anymore)

not fixed yet the "pkg-provides" problem.
 
In order to use the pkg-provides plugin we need to enable plugins in pkg. To do this, I have uncommented the following lines in /usr/local/etc/pkg.conf file and I've added pkg-provides to the supported plugin list:

Code:
PKG_PLUGINS_DIR = "/usr/local/lib/pkg/";
PKG_ENABLE_PLUGINS = true;
PLUGINS [ provides ];
 
Back
Top