Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Aug 2011 10:41:54 +0200
From:      Ewald Jenisch <>
To:        <>
Subject:   Re: portupgrades fail because of missing /usr/local/lib/
Message-ID:  <>
In-Reply-To: <>
References:  <>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Thu, Aug 04, 2011 at 01:45:02PM -0400, b. f. wrote:
> > o) What can I do to get ports recognize the correct location of the
> > xz-libraries?
> As I wrote above, some more information would help.  I'm guessing that
> you have a port that (unfortunately) uses libtool to perform linking,
> and has an erroneous /usr/local/lib/ entry in a libtool archive
> file (*.la), or is using some combination of uncommon  linker flags
> and sloppy use of -L/usr/local/lib.  Does a search like:
> fgrep -e lzma -nHr /usr/local/lib --include='*.la'
> yield any results?  If you see any references in a libtool archive to
> the nonexistent "/usr/local/lib/", try removing and then
> rebuilding the port that owns that libtool archive -- you should be
> able to determine the port by running "pkg_info -W" with the full path
> of the libtool archive as an argument.


First of all I'm posting my reply to both -questions where I sent my
original question to as well as -ports where you sent your reply so
others are seeing this too.

In short - thanks to your hints everything's healthy again :-))

Here's what I did (in case others are suffering from this problem too):

fgrep -e lzma -nHr /usr/local/lib --include='*.la' yielded a bunch of
results - grep-ed for "/usr/local/lib/".  Then feeded these
into pkg_info -W which nicely pointed me to the corresponding port
where this library comes from. The only thing I had to do then was to
make deinstall;make clean; make install this port.

In my case it was e.g. the "ImageMagick-" port causing all
the mess.

So thanks to you all who responded. It's great to have such a
knowledgeable and helpful community out there - you indeed learn
something new every day.


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