have some proplem! with make install

Installing, Configuring, Troubleshooting server daemons such as Web and Mail
ningnonk
Posts: 8
Joined: 2013/10/01 06:06:49

Re: have some proplem! with make install

Post by ningnonk » 2013/10/03 10:37:34

I'll try it, thank you so much

complete or not, i tell again

Thx

ningnonk
Posts: 8
Joined: 2013/10/01 06:06:49

Re: have some proplem! with make install

Post by ningnonk » 2013/10/04 03:41:32

It is old problem :(
1) Install CentOS 5.9
2) Finish installing operating system
3) Reboot and run `yum update`
4) Run `yum install postgresql-server`
5) Run `service postgresql initdb`
6) Run `service postgresql start`
7) copy postgresql-8.1.3.tar.gz and tar it
8) cd postgresql-8.1.3
9) ./configure and ./configure --enable-thread-safety, it not complete
10) i can't continue make

Pls, help me!
thx.

ningnonk
Posts: 8
Joined: 2013/10/01 06:06:49

Re: have some proplem! with make install

Post by ningnonk » 2013/10/04 09:31:36

Now, ./configure, make and make install OK!

but not complete pg_restore
i createdb xxx already and re_restore -i -h 127.0.0.1 -p 5432 -U postgres -d xxx -v "/opt/database_restore.backup"
User name:

pg_restore: [archiver] input file dose not appear to be a valid archive


Pls, help me again :(

Thx.

User avatar
TrevorH
Forum Moderator
Posts: 29160
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: have some proplem! with make install

Post by TrevorH » 2013/10/04 10:24:10

No no no no no!

Do NOT install from source.

Shall I say that again. [b]DO NOT INSTALL FROM SOURCE[/b]

If you install via yum then you have a perfectly valid and functional postgresql server that is up and running and patched to date. If you come across ANY instructions that mention a file *.tar.gz or *.tar.bz2 then stop reading, delete those instructions and do NOT use them.

Installing postgresql via yum will get you straight to the point where you would be if you managed to compile and install the postgresql tarball. If you then compile and install you [b]will break[/b] the yum installed copy and will need to start again.

Post Reply

Return to “CentOS 5 - Server Support”