Обсуждение: Postgre compiling error

Поиск
Список
Период
Сортировка

Postgre compiling error

От
rahimeh khodadadi
Дата:
Hi,

Finally,I could configure the sourse of postgresql 8.4.1, but still there is problem
It gives error, when I run make check.
error is :

pg_regress: initdb failed
Examine /root/Desktop/postgresql-8.4.1/src/test/regress/log/initdb.log for the reason.
Command was: "/root/Desktop/postgresql-8.4.1/src/test/regress/./tmp_check/install//usr/local/pgsql/bin/initdb" -D "/root/Desktop/postgresql-8.4.1/src/test/regress/./tmp_check/data" -L "/root/Desktop/postgresql-8.4.1/src/test/regress/./tmp_check/install//usr/local/pgsql/share" --noclean > "/root/Desktop/postgresql-8.4.1/src/test/regress/log/initdb.log" 2>&1

I search this error, some suggest set LD_LIBARARY_PATH to openssl library, but it does not useful solution.
Please help me.




--
With Best Regards
Miss.KHodadadi

Re: Postgre compiling error

От
Scott Marlowe
Дата:
On Sat, Oct 10, 2009 at 2:27 AM, rahimeh khodadadi
<rahimeh.khodadadi@gmail.com> wrote:
> Hi,
>
> Finally,I could configure the sourse of postgresql 8.4.1, but still there is
> problem
> It gives error, when I run make check.
> error is :
>
> pg_regress: initdb failed
> Examine /root/Desktop/postgresql-8.4.1/src/test/regress/log/initdb.log for
> the reason.
> Command was:
> "/root/Desktop/postgresql-8.4.1/src/test/regress/./tmp_check/install//usr/local/pgsql/bin/initdb"
> -D "/root/Desktop/postgresql-8.4.1/src/test/regress/./tmp_check/data" -L
> "/root/Desktop/postgresql-8.4.1/src/test/regress/./tmp_check/install//usr/local/pgsql/share"
> --noclean > "/root/Desktop/postgresql-8.4.1/src/test/regress/log/initdb.log"
> 2>&1
>
> I search this error, some suggest set LD_LIBARARY_PATH to openssl library,
> but it does not useful solution.

So, what does /root/Desktop/postgresql-8.4.1/src/test/regress/log/initdb.log
say?

Also, what OS are you running?

Re: Postgre compiling error

От
rahimeh khodadadi
Дата:
Hi,
Thanks your quick reply.
in initdb.log is :
"Running in noclean mode.  Mistakes will not be cleaned up.
initdb: cannot be run as root
Please log in (using, e.g., "su") as the (unprivileged) user that will
own the server process."

and my OS is centos5 .

Please help me.


On Sat, Oct 10, 2009 at 12:04 PM, Scott Marlowe <scott.marlowe@gmail.com> wrote:
On Sat, Oct 10, 2009 at 2:27 AM, rahimeh khodadadi
<rahimeh.khodadadi@gmail.com> wrote:
> Hi,
>
> Finally,I could configure the sourse of postgresql 8.4.1, but still there is
> problem
> It gives error, when I run make check.
> error is :
>
> pg_regress: initdb failed
> Examine /root/Desktop/postgresql-8.4.1/src/test/regress/log/initdb.log for
> the reason.
> Command was:
> "/root/Desktop/postgresql-8.4.1/src/test/regress/./tmp_check/install//usr/local/pgsql/bin/initdb"
> -D "/root/Desktop/postgresql-8.4.1/src/test/regress/./tmp_check/data" -L
> "/root/Desktop/postgresql-8.4.1/src/test/regress/./tmp_check/install//usr/local/pgsql/share"
> --noclean > "/root/Desktop/postgresql-8.4.1/src/test/regress/log/initdb.log"
> 2>&1
>
> I search this error, some suggest set LD_LIBARARY_PATH to openssl library,
> but it does not useful solution.

So, what does /root/Desktop/postgresql-8.4.1/src/test/regress/log/initdb.log
say?

Also, what OS are you running?



--
With Best Regards
Miss.KHodadadi

Re: Postgre compiling error

От
Scott Marlowe
Дата:
On Sat, Oct 10, 2009 at 4:29 AM, rahimeh khodadadi
<rahimeh.khodadadi@gmail.com> wrote:
> Hi,
> Thanks your quick reply.
> in initdb.log is :
> "Running in noclean mode.  Mistakes will not be cleaned up.
> initdb: cannot be run as root

So, can you try running make test as a different user then?

(add an account like postgres if needs be and use that)