Hello,

I have an install.site script which calls (among others) these commands:-
[…]
packages="git letsencrypt postgresql-server vim—no_x11"
[…]
pkg_add $packages
[…]

When the script is executed, the following errors appears:-
[…]
git-2.7.0:libiconv-1.14p3 (installing) […] 3%
ldconfig: /var/run/ld.so.hints: No such file or directory
[…]
postgresql-server-9.4.6:libxml-2.9.3 (installing) […] 100%
/usr/local/bin/xmlcatalog: can’t load library ‘libxml2.so.15.1’
[…]

I am not sure if these are harmful errors, but I am operating on the
assumption they are (particularly the second one).

My thinking at this stage is either to:
(1) Move the pkg_add(1) command to /etc/rc.firsttime. This which would also
mean moving a whole lot of other scripted commands that depends on these
packages to /erc/rc.firsttime as well so I am keen to avoid this approach if
possible.
(2) Figure out a way to fix ldconfig(8) so it works during the execution of
install.site. I’ve read the ldconfig(8) man page. Despite that I’m still
not confident that it’s wise to call ldconfig(8) during the execution of
install.site. And even if would work, I am not sure which flags, if any, would
be appropriate.

I would appreciate any tips. :)

Regards,
James

Reply via email to