Решение некоторых проблем при компиляции ПО

В категорії Статьї от 15 Липня, 2011. Автор admin

Проблема:     OS FreeBSD. The following error arise during package installation:

./+POST-INSTALL: permission denied
pkg_add: install script returned error status

Решение:     remove noexec options in /var/fstab file on /tmp partition and remount this partition

# mount -u /tmp

Проблема:     Problem during Postgres dump.

template1=# \c test97
FATAL:  SetDatabaseEncoding(): invalid database encoding
Previous connection kept
template1=# \encoding
SQL_ASCII
template1=#
template1=# DROP DATABASE test97;
ERROR:  DROP DATABASE: database is marked as a template
template1=#
template1=# \l
List of databases
Name         |       Owner        | Encoding
———————-+——————–+———–
test97               |                    | SQL_ASCII

Решение:

template1=# update pg_database set datdba=1 where datname=’test97′;
UPDATE 1
template1=#

template1=# \l
List of databases
Name         |       Owner        | Encoding
———————-+——————–+———–
test97               | pgsql              | SQL_ASCII

template1=# DROP DATABASE test97;
DROP DATABASE
template1=#
Більше »

Теги: , ,