Print View

Fix Gettext Dependancies (portupgrade)
Created: 11/03/2003


General Information

Something I've noticed recently after updating my ports tree and trying to install something is that the latest version of gettext is causing compiles to fail on anything that relies on it.  This has been happening on both my FreeBSD 4.8-RELEASE and 5.1-RELEASE machines so it doesn't seem to be something just specific to a certain release.  The easiest way to fix these annoyances is to install portupgrade and just update everything that depends on gettext.

Requirements

  1. Local root access on the box or having your user in the wheel group so you can su to root.
  2. A SSH client like puTTy or SecureCRT (only if not logging on locally).

Installation

Install portupgrade and the latest version of gettext which is fairly simple.  With gettext you make need to "make deinstall" the current version you have installed.  Login as root or su to root.
#
#
#
#
cd /usr/ports/sysutils/portupgrade
make install clean; rehash
cd /usr/ports/devel/gettext
make install clean; rehash
To update everything and tell it to use the latest version of gettext simply run
# portupgrade -rf gettext -m BATCH=3Dyes
and then wait a while.


Author: Kyle Symonds
ksymonds at gmail dot com



3 Comments

Posted by X-Istence on August 11, 2004 at 1:40:33 pm EEST

Or if you figured out like me, that it was just a matter of the programs looking for libintl.so.4, which was now replaced by libintl.so.5 this command would do the job:

cd /usr/local/lib/ && ln -s libintl.so libintl.so.4

It just symlinks the old version to a symlink that links to the newest and latest and greatest version, so the next time they update, and it becomes libintl.so.6, compilers can still find libintl.so.4 if needed :)

Works just as well, and is probably faster than waiting for that all to compile.


Posted by boinkie on August 11, 2004 at 1:40:33 pm EEST


hmm, I got a rather nasty problem when trying to update the gettext pkg. Firstly, under "pkg_version -L =" is appears twice! I tried the above, but there was an error which forced it to go back to the old version.

Then I tried re-installing the port and I got the same error. The error is:

cd /usr/ports/devel/gettext/work/gettext-0.13.1/gettext-tools/doc && make install-info-am
env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= makeinfo --no-split  -I ../../gettext-runtime/doc --no-split -I .  -o gettext.info gettext.texi
/bin/sh ../../config/mkinstalldirs /usr/local/info
install -c -o root -g wheel -m 444 ./gettext.info /usr/local/info/gettext.info
install-info --info-dir=/usr/local/info /usr/local/info/gettext.info
cd /usr/ports/devel/gettext/work/gettext-0.13.1/gettext-runtime/doc && make install-data-local
make: don't know how to make install-data-local. Stop
*** Error code 2

Stop in /usr/ports/devel/gettext.

hmm, can't "make install-data-local".

any clues here ... I don't know

b.


Posted by StealthNinja on August 11, 2004 at 1:40:33 pm EEST

try this
cd /var/db/pkg
pkg_delete gettext*

then rebuild
gettext and update


Copyright 2003 - 2008 BSD Guides.  All rights reserved.

About | Terms of Use | Privacy | Contact