Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Feb 2009 12:03:14 -0800 (PST)
From:      bf <>
Subject:   lpr fixed, but the wrong-way... [?]
Message-ID:  <>

Next in thread | Raw E-Mail | Index | Archive | Help
> it lookas as tho i need to upgrade this
> 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/
/usr/local/lib/ 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 ''
        349:-lgs.8 => /usr/local/lib/

There is a section on printing in the FreeBSD handbook, which you
may find useful.



Want to link to this message? Use this URL: <>