complie postgresql with kerberos in centos

--001636c5b1fa95c5ef046f4751cc
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Hi readers,

I have problem in compiling of postgresql with krb5 in CentOS;

My compiling statement is :
../configure --with-krb5 --without-readline --without-zlib --with-openssl
--with-ldap
because of the fact that Postgresql need ldap in compile with krb5, I have
to add --with-openssl , --with-ldap parameters in configuration.
On the other hand, using this parameters in configuration, is send
following error:
" checking for SSL_library_init in -lssl... no
configure: error: library 'ssl' is required for OpenSSL"

Please help me.


Thanks
Miss.R.KH

--001636c5b1fa95c5ef046f4751cc
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi readers,<br><br>I have problem in compiling of postgresql with krb5 in C=
entOS;<br><br>My compiling statement is :<br>./configure=A0 --with-krb5 --w=
ithout-readline=A0 --without-zlib=A0 --with-openssl --with-ldap<br>because =
of the fact that Postgresql need ldap in compile with krb5, I have to add=
=A0 --with-openssl , --with-ldap parameters in configuration.<br>
On the other hand, using=A0 this parameters in configuration, is send follo=
wing error:<br>" <span dir=3D"ltr" id=3D":1qd">checking for SSL_librar=
y_init in -lssl... no<br>configure: error: library 'ssl' is require=
d for OpenSSL</span>"<br>
<br>Please help me.<br><br><br>Thanks<br><a href=3D"http://Miss.R.KH">Miss.=
R.KH</a><br><br>

--001636c5b1fa95c5ef046f4751cc--
rahimeh khodadadi [ Mi, 22 Juli 2009 10:40 ] [ ID #2009446 ]

Re: complie postgresql with kerberos in centos

rahimeh khodadadi <rahimeh.khodadadi [at] gmail.com> writes:
> I have problem in compiling of postgresql with krb5 in CentOS;

It should pretty much just work, if you have the appropriate packages
installed. On RHEL-5 I see the RPMs requiring
BuildPrereq: krb5-devel
BuildPrereq: e2fsprogs-devel
so make sure you have those installed.

> because of the fact that Postgresql need ldap in compile with krb5,

There is no such interaction that I'm aware of.

> On the other hand, using this parameters in configuration, is send
> following error:
> " checking for SSL_library_init in -lssl... no
> configure: error: library 'ssl' is required for OpenSSL"

Sure looks like you haven't got openssl-devel installed, either.

On the whole, it sounds like you have little experience building
software in the RHEL environment. Perhaps you should consider
grabbing the Red Hat or PGDG RPMs instead of building your own
version.

regards, tom lane

--
Sent via pgsql-admin mailing list (pgsql-admin [at] postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Tom Lane [ Mi, 22 Juli 2009 16:05 ] [ ID #2009450 ]

Re: complie postgresql with kerberos in centos

--001636c5ada8859b22046f57ee63
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

I already installed krb5-devel-1.6.1-31.el5_3.3,
e2fsprogs-devel-1.39-20.el5, openssl-devel-0.9.8e-7.el5, But it is not
compiled.
Please help
Thanks


On Wed, Jul 22, 2009 at 6:35 PM, Tom Lane <tgl [at] sss.pgh.pa.us> wrote:

> rahimeh khodadadi <rahimeh.khodadadi [at] gmail.com> writes:
> > I have problem in compiling of postgresql with krb5 in CentOS;
>
> It should pretty much just work, if you have the appropriate packages
> installed. On RHEL-5 I see the RPMs requiring
> BuildPrereq: krb5-devel
> BuildPrereq: e2fsprogs-devel
> so make sure you have those installed.
>
> > because of the fact that Postgresql need ldap in compile with krb5,
>
> There is no such interaction that I'm aware of.
>
> > On the other hand, using this parameters in configuration, is send
> > following error:
> > " checking for SSL_library_init in -lssl... no
> > configure: error: library 'ssl' is required for OpenSSL"
>
> Sure looks like you haven't got openssl-devel installed, either.
>
> On the whole, it sounds like you have little experience building
> software in the RHEL environment. Perhaps you should consider
> grabbing the Red Hat or PGDG RPMs instead of building your own
> version.
>
> regards, tom lane
>

--001636c5ada8859b22046f57ee63
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

I already installed krb5-devel-1.6.1-31.el5_3.3, e2fsprogs-devel-1.39-20.el=
5, openssl-devel-0.9.8e-7.el5, But it is not compiled.<br>Please help <br>T=
hanks<br><br><br><div class=3D"gmail_quote">On Wed, Jul 22, 2009 at 6:35 PM=
, Tom Lane <span dir=3D"ltr"><<a href=3D"mailto:tgl [at] sss.pgh.pa.us">tgl [at] s=
ss.pgh.pa.us</a>></span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, =
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class=3D"im"=
>rahimeh khodadadi <<a href=3D"mailto:rahimeh.khodadadi [at] gmail.com">rahim=
eh.khodadadi [at] gmail.com</a>> writes:<br>

> I have problem in compiling of postgresql with krb5 in CentOS;<br>
<br>
</div>It should pretty much just work, if you have the appropriate packages=
<br>
installed. =A0On RHEL-5 I see the RPMs requiring<br>
BuildPrereq: krb5-devel<br>
BuildPrereq: e2fsprogs-devel<br>
so make sure you have those installed.<br>
<div class=3D"im"><br>
> because of the fact that Postgresql need ldap in compile with krb5,<br=
>
<br>
</div>There is no such interaction that I'm aware of.<br>
<div class=3D"im"><br>
> On the other hand, using =A0this parameters in configuration, is send<=
br>
> following error:<br>
> " checking for SSL_library_init in -lssl... no<br>
> configure: error: library 'ssl' is required for OpenSSL"<=
br>
<br>
</div>Sure looks like you haven't got openssl-devel installed, either.<=
br>
<br>
On the whole, it sounds like you have little experience building<br>
software in the RHEL environment. =A0Perhaps you should consider<br>
grabbing the Red Hat or PGDG RPMs instead of building your own<br>
version.<br>
<br>
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0regards, tom lane<br>
</blockquote></div><br>

--001636c5ada8859b22046f57ee63--
rahimeh khodadadi [ Do, 23 Juli 2009 06:29 ] [ ID #2009635 ]

Re: complie postgresql with kerberos in centos

--001636c5ada81b8ca2046f9c1790
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Nobody does me help. Please.

On Thu, Jul 23, 2009 at 8:59 AM, rahimeh khodadadi <
rahimeh.khodadadi [at] gmail.com> wrote:

> I already installed krb5-devel-1.6.1-31.el5_3.3,
> e2fsprogs-devel-1.39-20.el5, openssl-devel-0.9.8e-7.el5, But it is not
> compiled.
> Please help
> Thanks
>
>
>
> On Wed, Jul 22, 2009 at 6:35 PM, Tom Lane <tgl [at] sss.pgh.pa.us> wrote:
>
>> rahimeh khodadadi <rahimeh.khodadadi [at] gmail.com> writes:
>> > I have problem in compiling of postgresql with krb5 in CentOS;
>>
>> It should pretty much just work, if you have the appropriate packages
>> installed. On RHEL-5 I see the RPMs requiring
>> BuildPrereq: krb5-devel
>> BuildPrereq: e2fsprogs-devel
>> so make sure you have those installed.
>>
>> > because of the fact that Postgresql need ldap in compile with krb5,
>>
>> There is no such interaction that I'm aware of.
>>
>> > On the other hand, using this parameters in configuration, is send
>> > following error:
>> > " checking for SSL_library_init in -lssl... no
>> > configure: error: library 'ssl' is required for OpenSSL"
>>
>> Sure looks like you haven't got openssl-devel installed, either.
>>
>> On the whole, it sounds like you have little experience building
>> software in the RHEL environment. Perhaps you should consider
>> grabbing the Red Hat or PGDG RPMs instead of building your own
>> version.
>>
>> regards, tom lane
>>
>
>

--001636c5ada81b8ca2046f9c1790
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Nobody does me help. Please.<br><br><div class=3D"gmail_quote">On Thu, Jul =
23, 2009 at 8:59 AM, rahimeh khodadadi <span dir=3D"ltr"><<a href=3D"mai=
lto:rahimeh.khodadadi [at] gmail.com">rahimeh.khodadadi [at] gmail.com</a>></span>=
wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, =
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I already install=
ed krb5-devel-1.6.1-31.el5_3.3, e2fsprogs-devel-1.39-20.el5, openssl-devel-=
0.9.8e-7.el5, But it is not compiled.<br>
Please help <br>Thanks<div><div></div><div class=3D"h5"><br><br><br><div cl=
ass=3D"gmail_quote">On Wed, Jul 22, 2009 at 6:35 PM, Tom Lane <span dir=3D"=
ltr"><<a href=3D"mailto:tgl [at] sss.pgh.pa.us" target=3D"_blank">tgl [at] sss.pgh=
..pa.us</a>></span> wrote:<br>

<blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, =
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>rahimeh khod=
adadi <<a href=3D"mailto:rahimeh.khodadadi [at] gmail.com" target=3D"_blank">=
rahimeh.khodadadi [at] gmail.com</a>> writes:<br>


> I have problem in compiling of postgresql with krb5 in CentOS;<br>
<br>
</div>It should pretty much just work, if you have the appropriate packages=
<br>
installed. =A0On RHEL-5 I see the RPMs requiring<br>
BuildPrereq: krb5-devel<br>
BuildPrereq: e2fsprogs-devel<br>
so make sure you have those installed.<br>
<div><br>
> because of the fact that Postgresql need ldap in compile with krb5,<br=
>
<br>
</div>There is no such interaction that I'm aware of.<br>
<div><br>
> On the other hand, using =A0this parameters in configuration, is send<=
br>
> following error:<br>
> " checking for SSL_library_init in -lssl... no<br>
> configure: error: library 'ssl' is required for OpenSSL"<=
br>
<br>
</div>Sure looks like you haven't got openssl-devel installed, either.<=
br>
<br>
On the whole, it sounds like you have little experience building<br>
software in the RHEL environment. =A0Perhaps you should consider<br>
grabbing the Red Hat or PGDG RPMs instead of building your own<br>
version.<br>
<br>
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0regards, tom lane<br>
</blockquote></div><br>
</div></div></blockquote></div><br>

--001636c5ada81b8ca2046f9c1790--
rahimeh khodadadi [ So, 26 Juli 2009 15:48 ] [ ID #2009885 ]

Re: complie postgresql with kerberos in centos

rahimeh khodadadi schrieb:
> Nobody does me help. Please.

first it's sunday - so maybe some of the people who may answer your
questions have an off day ;-). On the other hand you should be patient.

As Tom allready mentioned, all dependent packges have to be installed. I
was running in some problems while compiling postgresql 8.4 with these
options.

$ ./configure --prefix=3D/usr/local/pgsql --with-tcl =96with-perl \
--with-python --with-krb5 --with-pam --with-openssl =96with- \ libxslt
--with-gssapi --with-tclconfig=3D/usr/lib/tcl8.5 =96with- \
includes=3D/usr/include/libxml2

I made a small trick. I was installing all dependencies for postgresql
8.3 with

$ apt-get build-dep postgresql-8.3

But hey this is just a hack ;-)

And finally I had to install these packages in advance:

$ apt-get install libreadline5-dev libghc6-zlib-dev

It really took a while but worked out. The final advice from one of our
sysadmins was "take the package from your distro" (in this case Debain).

So the only reason I see that you take the walk through hell is that you
have to use the latest postgresql version 8.4. Ubuntu has 8.4 allready,
Debian will have it hopefully soon in backports. I don't know when it
will be available in CentOS ...

Cheers

Andy

--
Sent via pgsql-admin mailing list (pgsql-admin [at] postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Andreas Wenk [ So, 26 Juli 2009 18:57 ] [ ID #2009886 ]

Re: complie postgresql with kerberos in centos

--=-MvLeIOslN0MzmBm4tFzo
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Sun, 2009-07-26 at 18:57 +0200, Andreas Wenk wrote:
> Ubuntu has 8.4 allready, Debian will have it hopefully soon in
> backports. I don't know when it will be available in CentOS ...

CentOS/Red Hat/Fedora has (development snapshots of) 8.4 since Sep 3,
2008. :)

http://archives.postgresql.org/pgsql-hackers/2008-09/msg0020 8.php
--
Devrim G=C3=9CND=C3=9CZ, RHCE
Command Prompt - http://www.CommandPrompt.com
devrim~gunduz.org, devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr
http://www.gunduz.org

--=-MvLeIOslN0MzmBm4tFzo
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEABECAAYFAkptm+YACgkQtl86P3SPfQ64HACgjlo/B7dILMSY47EVb6Hs J+3+
4NkAn1/xOWykBwdQ4f/Loj3WxgYtpRYd
=kkmA
-----END PGP SIGNATURE-----

--=-MvLeIOslN0MzmBm4tFzo--
devrim [ Mo, 27 Juli 2009 14:22 ] [ ID #2009938 ]

Re: complie postgresql with kerberos in centos

--=-2CWL+k1jB89VV5fTKlLZ
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Wed, 2009-07-22 at 13:10 +0430, rahimeh khodadadi wrote:
> " checking for SSL_library_init in -lssl... no
> configure: error: library 'ssl' is required for OpenSSL"

Do you have redhat-rpm-config package installed?

Also, as Tom pointed out, you can use Red Hat or PGDG RPMs on CentOS:

http://yum.pgsqlrpms.org/howtoyum.php

Regards,
--
Devrim G=C3=9CND=C3=9CZ, RHCE
Command Prompt - http://www.CommandPrompt.com
devrim~gunduz.org, devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr
http://www.gunduz.org

--=-2CWL+k1jB89VV5fTKlLZ
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEABECAAYFAkptnGsACgkQtl86P3SPfQ5haACgi6yLScy6RVKpC9KuT3VZ xlBA
2jcAn32cTnw3MdkqVucmIQlTvSdMd/HW
=alrq
-----END PGP SIGNATURE-----

--=-2CWL+k1jB89VV5fTKlLZ--
devrim [ Mo, 27 Juli 2009 14:24 ] [ ID #2009939 ]

Re: complie postgresql with kerberos in centos

Devrim G=C3=9CND=C3=9CZ schrieb:
> CentOS/Red Hat/Fedora has (development snapshots of) 8.4 since Sep 3,
> 2008. :)
>
> http://archives.postgresql.org/pgsql-hackers/2008-09/msg0020 8.php

good to know - thanks ;-)

--
Sent via pgsql-admin mailing list (pgsql-admin [at] postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Andreas Wenk [ Mo, 27 Juli 2009 15:13 ] [ ID #2009940 ]
Datenbanken » gmane.comp.db.postgresql.admin » complie postgresql with kerberos in centos

Vorheriges Thema: Problem to compiling with SunStudio
Nächstes Thema: pg_stat_activity reporting of VACUUM in 8.1