LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-23-2004, 01:17 PM   #1
r0ck
LQ Newbie
 
Registered: Jun 2004
Distribution: Slackware 10.1
Posts: 14

Rep: Reputation: 0
PostgreSQL Problem


Hi geeks

I have installed postgressql on my slackware v 10 system.
Everything worked nice and normal. I compiled the package.

i wanted to start the database with : "psql"
but there was this error :
rock@rockshome:/usr/local/pgsql/bin$ psql
psql: error while loading shared libraries: libssl.so.4: cannot open shared object file: No such file or directory

I googled about this error !

I found some similar problems which where solved by installing the new open ssl version (i think its 2.7a)
but there still was this f*** error.... i have tryed to install pqsql with rpms but there was the same error too !

Pleas help me i am not sure but i would describe myself as bloody newbie

Thanks in advance for your help and your time !

Rock aka Steffen B.
 
Old 11-23-2004, 01:28 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Hi, and welcome to LQ!

If you compiled PosrgreSQL on the machine you're
trying to run it on this shouldn't occur. I've compiled
7.4.6 just a few days ago on a standard Slack 10
installation with the default OpenSSL install, and it
works just fine. What exactly did you do?


Cheers,
Tink


P.S.: Move to Slackware forum, more suitable there.
 
Old 11-24-2004, 01:27 PM   #3
jraver
LQ Newbie
 
Registered: Feb 2004
Distribution: Slackware 9.1
Posts: 1

Rep: Reputation: 0
You may want to try running ldconfig as root.
I seem to remember that I had to do this so it could find the shared library that it installed.
I have it running from source on Slack 10 and it runs great!

Jim
 
Old 11-24-2004, 01:31 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
ldconfig won't do any good unless you
a) Install postgres with prefix=/usr
or
b) Add /usr/local/pgsql/lib to /etc/ls.co.conf


Cheers,
Tink
 
Old 11-24-2004, 02:03 PM   #5
r0ck
LQ Newbie
 
Registered: Jun 2004
Distribution: Slackware 10.1
Posts: 14

Original Poster
Rep: Reputation: 0
Thanks a lot.
I realised that the problem is, that pgsql cant find my libssl.so !
The file is located at /usr/libexec/apache/libssl.so so how and where can i configure/edit that postgressql finds this lib at this path?

May you post the url/ftp url where you downloaded the packs for slackware? would be very nice.

hmm will google/code/food for help

thanks in advance !

mfg Rock

-------------------- UPDATE -------------------------

Okay i have now reinstalled the hole package !

I have done everything like in the install manule (http://www7.de.postgresql.org/docs/7...tallation.html)


Now it shows me this errors :

root@rockshome:/home/rock/downloads/gamerirc/postgresql-7.4.6# chown postgres /usr/local/pgsql/data
root@rockshome:/home/rock/downloads/gamerirc/postgresql-7.4.6# su - postgres
/dev/pts/1: Operation not permitted

In the beginning there was nothing. And the Lord said "Let There Be Light!"
And still there was nothing, but at least now you could see it.

postgres@rockshome:~$ /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.

The database cluster will be initialized with locales:
COLLATE: C
CTYPE: en_US
MESSAGES: en_US
MONETARY: en_US
NUMERIC: en_US
TIME: en_US

initdb: directory "/usr/local/pgsql/data" exists but is not empty
If you want to create a new database system, either remove or empty
the directory "/usr/local/pgsql/data" or run initdb with an argument other than
"/usr/local/pgsql/data".
postgres@rockshome:~$ initdb -D /usr/local/pgsql/data
-su: initdb: command not found
postgres@rockshome:~$ ls
postgres@rockshome:~$ cd /usr/local/pgsql
postgres@rockshome:/usr/local/pgsql$ initdb -D /usr/local/pgsql/data
-su: initdb: command not found
postgres@rockshome:/usr/local/pgsql$ cd bin
postgres@rockshome:/usr/local/pgsql/bin$ initdb -D /usr/local/pgsql/data
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.

The database cluster will be initialized with locales:
COLLATE: C
CTYPE: en_US
MESSAGES: en_US
MONETARY: en_US
NUMERIC: en_US
TIME: en_US

initdb: directory "/usr/local/pgsql/data" exists but is not empty
If you want to create a new database system, either remove or empty
the directory "/usr/local/pgsql/data" or run initdb with an argument other than
"/usr/local/pgsql/data".
postgres@rockshome:/usr/local/pgsql/bin$ /usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data >logfile 2>&1 &
[1] 3457
postgres@rockshome:/usr/local/pgsql/bin$ -su: logfile: Permission denied
/usr/local/pgsql/bin/createdb test
createdb: could not connect to database template1: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
[1]+ Exit 1 /usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data >logfile 2>&1
postgres@rockshome:/usr/local/pgsql/bin$ /usr/local/pgsql/bin/psql test
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
postgres@rockshome:/usr/local/pgsql/bin$ psql test
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
postgres@rockshome:/usr/local/pgsql/bin$ ls
clusterdb* createuser* dropuser* initlocation* pg_controldata* pg_dumpall* pg_resetxlog* postmaster@
createdb* dropdb* ecpg* ipcclean* pg_ctl* pg_encoding* pg_restore* psql*
createlang* droplang* initdb* pg_config* pg_dump* pg_id* postgres* vacuumdb*
postgres@rockshome:/usr/local/pgsql/bin$

Thanks for your help

Last edited by r0ck; 11-24-2004 at 02:47 PM.
 
Old 11-24-2004, 04:01 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Create this file (as root) ...

Code:
[root@diggn:~]$ cat /etc/profile.d/postgres.sh
#!/bin/sh
export PG_HOME=/usr/local/pgsql
export PATH=${PATH}:${PG_HOME}/bin
export MANPATH=${MANPATH}:${PG_HOME}/man
export PGDATA=${PG_HOME}/data
chomd ugo+x /etc/profile.d/postgres.sh


Cheers,
Tink
 
Old 11-25-2004, 02:35 PM   #7
r0ck
LQ Newbie
 
Registered: Jun 2004
Distribution: Slackware 10.1
Posts: 14

Original Poster
Rep: Reputation: 0
Oki i have done it
Now the "new" problem

Code:
root@rockshome:/home/rock# cat /etc/profile.d/postgres.sh
cat: /etc/profile.d/postgres.sh: No such file or directory
root@rockshome:/home/rock# cd /etc/profile.d
root@rockshome:/etc/profile.d# ls
bsd-games-login-fortune.csh  gtk+.csh  htdig.csh  j2sdk.csh  kde.csh  lang.csh  mc.csh  metacity.csh  qt.csh  t1lib.csh  tetex.csh
bsd-games-login-fortune.sh   gtk+.sh   htdig.sh   j2sdk.sh   kde.sh   lang.sh   mc.sh   metacity.sh   qt.sh   t1lib.sh   tetex.sh
root@rockshome:/etc/profile.d# nano postgres.sh
root@rockshome:/etc/profile.d# chomd ugo+x /etc/profile.d/postgres.sh
bash: chomd: command not found
root@rockshome:/etc/profile.d# chmod ugo+x /etc/profile.d/postgres.sh
root@rockshome:/etc/profile.d# ./postgres.sh
root@rockshome:/etc/profile.d# cd /usr/local/pgsql/
i really think that i am a fucking
 
Old 11-25-2004, 02:47 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Well I said create that file, and just posted the cat
so you can see it's name and what to put in it ;)


Cheers,
Tink
 
Old 11-26-2004, 11:02 AM   #9
r0ck
LQ Newbie
 
Registered: Jun 2004
Distribution: Slackware 10.1
Posts: 14

Original Poster
Rep: Reputation: 0
hmm i have done it

Here MY solution

First
"chown -R postgres:users /usr/local/pqsql/ "

afterwards
starting from the user postgres ./postmaster
then with postgres /.pgsql test
done hopefully
yea done thanks a lot guys
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
postgresql problem eduac Linux - Software 0 08-31-2005 06:45 AM
Postgresql Problem mitrship Programming 3 07-28-2005 12:09 AM
Problem with PostgreSQL !!! beyond_2000 Linux - Software 10 06-15-2004 06:46 AM
Postgresql problem BobNz Linux - Software 11 05-02-2004 02:43 PM
postgresql -odbc & postgresql-jdbc installation kjsubbu Linux - Software 0 06-19-2003 02:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration