I have the 5.x Centos DVD and loaded it.
Please be gentle with me, as I'm nominally a FreeBSD kind of guy... :)
Anyway, I'm trying to install Postgres and the three libraries in the subject line are missing off the base installation. I figured out how to load gcc using yum, but those libraries aren't there, and I need the former in particular in order to enable SSL for Postgres client connections. A perusal of "yum list" with an appropriate grep or two doesn't elicit anything useful.
Anyone know where I find these? I loaded just the standard distro, no graphical user environment (neither Gnome or KDB)
Thanks in advance.
Karl Jennings wrote:
I have the 5.x Centos DVD and loaded it.
Please be gentle with me, as I'm nominally a FreeBSD kind of guy... :)
Anyway, I'm trying to install Postgres and the three libraries in the subject line are missing off the base installation. I figured out how to load gcc using yum, but those libraries aren't there, and I need the former in particular in order to enable SSL for Postgres client connections. A perusal of "yum list" with an appropriate grep or two doesn't elicit anything useful.
Anyone know where I find these? I loaded just the standard distro, no graphical user environment (neither Gnome or KDB)
Thanks in advance.
Hi Karl
yum works in a similar way to BSD's ports, in that it can automatically download the needed dependencies. So, running "yum install postgresql" gives me the following:
Dependencies Resolved
============================================================================= Package Arch Version Repository Size ============================================================================= Installing: postgresql x86_64 8.1.11-1.el5_1.1 updates 2.9 M Installing for dependencies: postgresql-libs x86_64 8.1.11-1.el5_1.1 updates 195 k
Transaction Summary ============================================================================= Install 2 Package(s) Update 0 Package(s) Remove 0 Package(s)
Total download size: 3.1 M Is this ok [y/N]:
This means it will download all the packages (and they respective dependencies) for you and install it.
Running " yum search postgresql | more" gives me a list of all the different posgresql scripts (PHP, PERL, devel, etc) that can also be installed.
HTH
Rudi Ahlers wrote:
Karl Jennings wrote:
I have the 5.x Centos DVD and loaded it.
Please be gentle with me, as I'm nominally a FreeBSD kind of guy... :)
Anyway, I'm trying to install Postgres and the three libraries in the subject line are missing off the base installation. I figured out how to load gcc using yum, but those libraries aren't there, and I need the former in particular in order to enable SSL for Postgres client connections. A perusal of "yum list" with an appropriate grep or two doesn't elicit anything useful.
Anyone know where I find these? I loaded just the standard distro, no graphical user environment (neither Gnome or KDB)
Thanks in advance.
Hi Karl
yum works in a similar way to BSD's ports, in that it can automatically download the needed dependencies. So, running "yum install postgresql" gives me the following:
Dependencies Resolved
=============================================================================
Package Arch Version Repository Size =============================================================================
Installing: postgresql x86_64 8.1.11-1.el5_1.1 updates 2.9 M Installing for dependencies: postgresql-libs x86_64 8.1.11-1.el5_1.1 updates 195 k
Transaction Summary
Install 2 Package(s) Update 0 Package(s) Remove 0 Package(s)
Total download size: 3.1 M Is this ok [y/N]:
This means it will download all the packages (and they respective dependencies) for you and install it.
Running " yum search postgresql | more" gives me a list of all the different posgresql scripts (PHP, PERL, devel, etc) that can also be installed.
HTH
That doesn't help (I'm trying to built it from source)
Without readline, zlib and the crypto libraries you can't build the full 8.3 release....... and installing 8.1 as a distro doesn't get you the libraries you need to build.
Karl Denninger (karl@denninger.net) http://www.denninger.net
On Mon, Mar 03, 2008 at 03:53:34PM -0600, Karl Denninger wrote:
Without readline, zlib and the crypto libraries you can't build the full 8.3 release....... and installing 8.1 as a distro doesn't get you the libraries you need to build.
We distinguish between runtime libraries and development libraries, so you'll see packages like "readline" and "readline-devel". You need the -devel versions installed to compile.
So; readline-devel, zlib-devel and so on.
Stephen Harris wrote:
On Mon, Mar 03, 2008 at 03:53:34PM -0600, Karl Denninger wrote:
Without readline, zlib and the crypto libraries you can't build the full 8.3 release....... and installing 8.1 as a distro doesn't get you the libraries you need to build.
We distinguish between runtime libraries and development libraries, so you'll see packages like "readline" and "readline-devel". You need the -devel versions installed to compile.
So; readline-devel, zlib-devel and so on.
Cool - that's two of three.
Where's crypto?
Karl Denninger (karl@denninger.net) http://www.denninger.net
Stephen Harris wrote:
On Mon, Mar 03, 2008 at 04:46:28PM -0600, Karl Denninger wrote:
Stephen Harris wrote:
So; readline-devel, zlib-devel and so on.
Cool - that's two of three.
Where's crypto?
"yum whatprovides" is your friend.
Allegedly openssl (which is loaded) provides this, but...
./configure --with-openssl
...... (lots of stuff that is all ok) checking whether ln -s works... yes checking for gawk... gawk checking for bison... bison -y configure: using bison (GNU Bison) 2.3 checking for flex... /usr/bin/flex configure: using /usr/bin/flex version 2.5.4 checking for perl... /usr/bin/perl checking for main in -lm... yes checking for library containing setproctitle... no checking for library containing dlopen... -ldl checking for library containing socket... none required checking for library containing shl_load... no checking for library containing getopt_long... none required checking for library containing crypt... -lcrypt checking for library containing fdatasync... none required checking for library containing shmget... none required checking for -lreadline... yes (-lreadline -ltermcap) checking for inflate in -lz... yes checking for CRYPTO_new_ex_data in -lcrypto... no configure: error: library 'crypto' is required for OpenSSL
Hmmmm....
-- Karl Denninger
On Mon, Mar 03, 2008 at 10:22:20PM -0600, Karl Denninger wrote:
Allegedly openssl (which is loaded) provides this, but...
./configure --with-openssl
And have you installed openssl-devel?
(well, clearly the answer is no because you haven't actually paid any attention to anything I've written)
% yum whatprovides libcrypto.a [snip]
openssl-devel.i386 0.9.7a-43.17.el4_6.1 c4-local Matched from: /usr/lib/libcrypto.a
openssl-devel.i586 0.9.7a-43.17.el4_6.1 c4-local Matched from: /usr/lib/libcrypto.a
You can lead a horse to water....
Stephen Harris wrote:
On Mon, Mar 03, 2008 at 10:22:20PM -0600, Karl Denninger wrote:
Allegedly openssl (which is loaded) provides this, but...
./configure --with-openssl
And have you installed openssl-devel?
(well, clearly the answer is no because you haven't actually paid any attention to anything I've written)
% yum whatprovides libcrypto.a [snip]
openssl-devel.i386 0.9.7a-43.17.el4_6.1 c4-local Matched from: /usr/lib/libcrypto.a
openssl-devel.i586 0.9.7a-43.17.el4_6.1 c4-local Matched from: /usr/lib/libcrypto.a
You can lead a horse to water....
Hmmmm... trying man..... heh, its my first Linux. Whadda 'ya want, FreeBSD since the mid 90s.
("User" installations on FreeBSD gets you standard development libraires and the C compiler. I am beginning to understand that CentOS looks at this more like Windows - the "base load" is in fact just a runtime with NOTHING development-related in it....)
Thanks....
Karl Denninger (karl@denninger.net) http://www.denninger.net
Karl Denninger wrote:
Stephen Harris wrote:
On Mon, Mar 03, 2008 at 10:22:20PM -0600, Karl Denninger wrote:
Allegedly openssl (which is loaded) provides this, but...
./configure --with-openssl
And have you installed openssl-devel?
(well, clearly the answer is no because you haven't actually paid any attention to anything I've written)
% yum whatprovides libcrypto.a [snip] openssl-devel.i386 0.9.7a-43.17.el4_6.1 c4-local Matched from: /usr/lib/libcrypto.a
openssl-devel.i586 0.9.7a-43.17.el4_6.1 c4-local Matched from: /usr/lib/libcrypto.a
You can lead a horse to water....
Hmmmm... trying man..... heh, its my first Linux. Whadda 'ya want, FreeBSD since the mid 90s.
("User" installations on FreeBSD gets you standard development libraires and the C compiler. I am beginning to understand that CentOS looks at this more like Windows - the "base load" is in fact just a runtime with NOTHING development-related in it....)
Yes - that's why there is that selection for "Development" during the install. If you don't pick it, you don't get it...
--- Karl Denninger karl@denninger.net wrote:
Stephen Harris wrote:
On Mon, Mar 03, 2008 at 10:22:20PM -0600, Karl
Denninger wrote:
Allegedly openssl (which is loaded) provides
this, but...
./configure --with-openssl
And have you installed openssl-devel?
(well, clearly the answer is no because you
haven't actually paid any
attention to anything I've written)
% yum whatprovides libcrypto.a [snip]
openssl-devel.i386
0.9.7a-43.17.el4_6.1 c4-local
Matched from: /usr/lib/libcrypto.a
openssl-devel.i586
0.9.7a-43.17.el4_6.1 c4-local
Matched from: /usr/lib/libcrypto.a
You can lead a horse to water....
Hmmmm... trying man..... heh, its my first Linux. Whadda 'ya want, FreeBSD since the mid 90s.
("User" installations on FreeBSD gets you standard development libraires and the C compiler. I am beginning to understand that CentOS looks at this more like Windows - the "base load" is
^^^^^^^^^^^^^^^^^ HUH?
in fact just a runtime with NOTHING development-related in it....)
Thanks....
Karl Denninger (karl@denninger.net) http://www.denninger.net
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
on 3-3-2008 8:39 PM Karl Denninger spake the following:
Stephen Harris wrote:
On Mon, Mar 03, 2008 at 10:22:20PM -0600, Karl Denninger wrote:
Allegedly openssl (which is loaded) provides this, but...
./configure --with-openssl
And have you installed openssl-devel?
(well, clearly the answer is no because you haven't actually paid any attention to anything I've written)
% yum whatprovides libcrypto.a [snip] openssl-devel.i386 0.9.7a-43.17.el4_6.1 c4-local Matched from: /usr/lib/libcrypto.a
openssl-devel.i586 0.9.7a-43.17.el4_6.1 c4-local Matched from: /usr/lib/libcrypto.a
You can lead a horse to water....
Hmmmm... trying man..... heh, its my first Linux. Whadda 'ya want, FreeBSD since the mid 90s.
("User" installations on FreeBSD gets you standard development libraires and the C compiler. I am beginning to understand that CentOS looks at this more like Windows - the "base load" is in fact just a runtime with NOTHING development-related in it....)
But it isn't always prudent to have a full development environment on a "server". The safe bet is to have a devel box as far as it can be from the internet, and servers only have what they need to function. If a server is compromised, no devel means it is at least slightly more difficult to compromise the system. The more on a server, the more "potential" security holes that might sneak in.
Scott Silva wrote:
("User" installations on FreeBSD gets you standard development libraires and the C compiler. I am beginning to understand that CentOS looks at this more like Windows - the "base load" is in fact just a runtime with NOTHING development-related in it....)
But it isn't always prudent to have a full development environment on a "server". The safe bet is to have a devel box as far as it can be from the internet, and servers only have what they need to function. If a server is compromised, no devel means it is at least slightly more difficult to compromise the system. The more on a server, the more "potential" security holes that might sneak in.
Better yet, find the yum repository where binaries are already built and maintained and set up the server so all it needs to do is 'yum update' to keep those holes fixed. And in the unlikely event that you need something no one else has built, set up your own yum repository between your development and production servers.
Stephen Harris wrote:
On Mon, Mar 03, 2008 at 10:22:20PM -0600, Karl Denninger wrote:
Allegedly openssl (which is loaded) provides this, but...
./configure --with-openssl
And have you installed openssl-devel?
(well, clearly the answer is no because you haven't actually paid any attention to anything I've written)
% yum whatprovides libcrypto.a [snip]
openssl-devel.i386 0.9.7a-43.17.el4_6.1 c4-local Matched from: /usr/lib/libcrypto.a
openssl-devel.i586 0.9.7a-43.17.el4_6.1 c4-local Matched from: /usr/lib/libcrypto.a
You can lead a horse to water....
Well in all fairness I did a "whatprovides", dumped it into a file, and used vi on it as what I got back had thousands of lines of kernel RPMs listed in it..... and missed the one that counted.
Karl Denninger (karl@denninger.net) http://www.denninger.net
Karl Denninger wrote:
Stephen Harris wrote:
On Mon, Mar 03, 2008 at 04:46:28PM -0600, Karl Denninger wrote:
Stephen Harris wrote:
So; readline-devel, zlib-devel and so on.
Cool - that's two of three.
Where's crypto?
"yum whatprovides" is your friend.
Allegedly openssl (which is loaded) provides this, but...
./configure --with-openssl
...... (lots of stuff that is all ok) checking whether ln -s works... yes checking for gawk... gawk checking for bison... bison -y configure: using bison (GNU Bison) 2.3 checking for flex... /usr/bin/flex configure: using /usr/bin/flex version 2.5.4 checking for perl... /usr/bin/perl checking for main in -lm... yes checking for library containing setproctitle... no checking for library containing dlopen... -ldl checking for library containing socket... none required checking for library containing shl_load... no checking for library containing getopt_long... none required checking for library containing crypt... -lcrypt checking for library containing fdatasync... none required checking for library containing shmget... none required checking for -lreadline... yes (-lreadline -ltermcap) checking for inflate in -lz... yes checking for CRYPTO_new_ex_data in -lcrypto... no configure: error: library 'crypto' is required for OpenSSL
Hmmmm....
Do you have the openssl-devel package?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Karl Denninger wrote:
That doesn't help (I'm trying to built it from source)
Without readline, zlib and the crypto libraries you can't build the full 8.3 release....... and installing 8.1 as a distro doesn't get you the libraries you need to build.
You may want to check out http://yum.pgsqlrpms.org/ to see if they have compiled in everything that you need. You can get 8.3 for CentOS 4/5 in a repository that enables you to manage PG updates via yum.
Barry