Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Feb 2001 16:02:27 -0600
From:      Mike Meyer <mwm@mired.org>
To:        Daniel Holliman <danh@jihad.to>
Cc:        questions@freebsd.org
Subject:   Re: installing postgresql in freebsd 4.2
Message-ID:  <14988.20979.513721.678199@guru.mired.org>
In-Reply-To: <34536053@toto.iv>

next in thread | previous in thread | raw e-mail | index | archive | help
Status: RO
X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil]
	["1355" "Wednesday" "14" "February" "2001" "18:08:27" "GMT" "Daniel Holliman" "danh@jihad.to" "<34536053@toto.iv>" "38" "installing postgresql in freebsd 4.2" "^From:" nil nil "2" "2001021418:08:27" "installing postgresql in freebsd 4.2" (number " " mark "     Daniel Holliman   Feb 14   38/1355  " thread-indent "\"installing postgresql in freebsd 4.2\"\n") nil nil]
	nil)
X-VM-Labels: nil
X-VM-Summary-Format: "%n %*%a %-17.17F %-3.3m %2d %4l/%-5c %I\"%s\"\n"
X-VM-IMAP-Retrieved: nil
X-VM-POP-Retrieved: nil
X-VM-Last-Modified: (14988 20656 634257)
X-Digest: questions-digest V5 #110
From: Daniel Holliman <danh@jihad.to>
Subject: installing postgresql in freebsd 4.2
Date: Wed, 14 Feb 2001 18:08:27 GMT

I have a freebsd 4-2 machine, I have recently cvsuped and
updated /usr/ports, I'm trying to install postgres from the ports,
I get the following error.  At first I thought it was because
I tried installing the jdk 1.2 beta port, or maybe I mangled
my jdk installation, so with pkg_delete I ripped out any
java related ports and did a make reinstall of the jdk1.1 port,
but that didn't help, same error:
obviously I need libxpg4.so.2, but where should I be finding
the missing shared library?


----
make[1]: Entering directory `/usr/ports/databases/postgresql7/work/postgresql-7.0.3/src/interfaces/jdbc'
/usr/local/jdk1.1.8/bin/javac org/postgresql/DriverClass.java
/usr/libexec/ld-elf.so.1: Shared object "libxpg4.so.2" not found

This pretty much zeros in on the problem. It looks like your jdk port
was built on FreeBSD 3.x and you didn't install the 3.x compatibility
libraries on your 4.2 system. Check it by doing running ldd on your
javac binary, and verifying that it shows libxpg4.so.2 as not found
(probably some others as well). If that's the case, you can fix it be
rebuilding and reinstalling the jdk port on a 4.2 system, or by
installing the 3.x compatibility libraries.

As an aside, I would *seriously* recommend rebuilding all the ports
when you upgrade across a version number. Even if you install the
compatability libraries some things are liable to break (nuts, they
can break between releases, much less versions..).

	<mike
--
Mike Meyer <mwm@mired.org>			http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14988.20979.513721.678199>