lpr fixed, but the wrong-way... [?]
bf
bf2006a at yahoo.com
Fri Feb 6 12:29:57 PST 2009
> it lookas as tho i need to upgrade this
> libgs.so.8 shared library. but *how* do i find who/what build this
> library?
It is from one of the ghostscript ports, as you might expect when
using postscript for printing. It probably failed because one of the
libraries was corrupted, or someone updated a port/package without also
updating the ports/packages that depend upon it.
If, in the future, you install a file from a package or a port, and your
package database files (by default, in /var/db/pkg ) aren't damaged (and no
committer has screwed up by not adding files to a pkg-plist or not properly
determining CONFLICTS in a port Makefile), then you can use:
pkg_info -W <path to file>
to determine the port or package to which the file belongs. In this case,
for my machine:
pkg_info -W /usr/local/lib/libgs.so.8
/usr/local/lib/libgs.so.8 was installed by package ghostscript8-8.63
although it could be something like ghostscript8-nox11-* on yours.
pkg_which, from the ports-mgmt/portupgrade port, also does this ( see
pkgdb(1) if you have this installed ).
To get the path in the first place, use locate(1), find(1), or, for a
shared library, something like:
ldconfig -vr | grep 'libgs.so.8'
349:-lgs.8 => /usr/local/lib/libgs.so.8
There is a section on printing in the FreeBSD handbook, which you
may find useful.
Regards,
b.
More information about the freebsd-questions
mailing list