Wiki Tip: After other updates, I appeared to be left without a gettext library, libintl.so.8, which is specifically required by postgresql. After much searching I found a tip on the web suggesting a symlink as such:
# cd /usr/local/lib # ln -s libintl.so.9 libintl.so.8So far so good!
$ cd /usr/local/share/postgresql/contrib
# sudo curl -O [http://www.joeconway.com/plr/plr-8.3.0.10.tar.gz] Password:
sh-3.2# tar -xzf plr-8.3.0.10.tar.gz
sh-3.2# cd plr
(actually, I've now put these into ~/.profile)
sh-3.2# setenv USE_PGXS 1
The trick here is to use gmake (gnu make), not the normal make command, which invokes FreeBSD's entire make process.
sh-3.2# gmake sh-3.2# gmake install
sh-3.2# su pgsql
Password:
sh-3.2$ pg_ctl -D /usr/local/pgsql/data stop
waiting for server to shut down.... done
server stopped
sh-3.2$ pg_ctl -D /usr/local/pgsql/data start
server starting
sh-3.2$ exit
From the command line:
$ psql -d mydatabase -U myowner -f /usr/local/share/postgresql/contrib/plr/plr.sql
or reading the file into the database:
$ psql mydatabase mydatabase=# \i /usr/local/share/postgresql/contrib/plr.sql
Średnia (0 Głosy) ![]() ![]() ![]() ![]() |