pkg(8) installing got "file not found" and other failed even if it was previously installed

Hi All

I'm using ports-mgmt/pkg to installing got "file not found" failed even if it was previously installed
Example 1:
Code:
...
[54/76] Installing sysconftool-0.22...
[54/76] Extracting sysconftool-0.22: 100%
[55/76] Installing courier-authlib-base-0.72.7...
===> Creating groups
Using existing group 'courier'
===> Creating users
Using existing user 'courier'
[55/76] Extracting courier-authlib-base-0.72.7: 100%
/bin/sh: /usr/local/share/sysconftool/sysconftool: not found
pkg: POST-INSTALL script failed
[56/76] Installing uchardet-0.0.8_1...
...
Later, confirm devel/sysconftool installed as follows
# pkg --rootdir [JAIL] which /usr/local/share/sysconftool/sysconftool and result.
Code:
/usr/local/share/sysconftool/sysconftool was installed by package sysconftool-0.22

Example2
Code:
...
[61/76] Installing courier-imap-5.3.2_1,2...
[61/76] Extracting courier-imap-5.3.2_1,2: 100%
/bin/sh: /usr/local/share/sysconftool/sysconftool: not found
/bin/sh: /usr/local/share/sysconftool/sysconftool: not found
/bin/sh: /usr/local/share/sysconftool/sysconftool: not found
/bin/sh: /usr/local/share/sysconftool/sysconftool: not found
pkg: POST-INSTALL script failed
[62/76] Installing cyrus-sasl-2.1.28_5...
...

Example 3
Code:
...
[62/76] Installing cyrus-sasl-2.1.28_5...
*** Updated user `cyrus'.
[62/76] Extracting cyrus-sasl-2.1.28_5: 100%
/bin/sh: /usr/local/sbin/saslpasswd2: not found
/bin/sh: /usr/local/sbin/sasldblistusers2: not found
WARNING: Failed to create /usr/local/etc/sasldb2
[63/76] Installing krb5-1.22.1...
...
Later, confirm security/cyrus-sasl2 installed as follows
# pkg --rootdir /usr/jail/maild which /usr/local/sbin/saslpasswd2
# pkg --rootdir /usr/jail/maild which /usr/local/sbin/sasldblistusers2
Code:
/usr/local/sbin/saslpasswd2 was installed by package cyrus-sasl-2.1.28_5

Example from other jail
Code:
...
[106/166] Installing apache24-2.4.66...
===> Creating groups
Using existing group 'www'
===> Creating users
Using existing user 'www'
[106/166] Extracting apache24-2.4.66: 100%
cp: /usr/local/share/apache24/misc/index.html: No such file or directory
pkg: POST-INSTALL script failed
..
/usr/local/share/apache24/misc/index.html existence in installation target jail.

Can all help me debug?
Thanks all.
 
Back
Top