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

have some proplem! with make install

Post by ningnonk » 2013/10/01 07:05:31

[root@server postgresql-8.1.3]# make install
make -C doc install
make[1]: Entering directory `/usr/local/src/postgresql-8.1.3/doc'
gzip -d -c ./postgres.tar.gz | ( cd /usr/local/pgsql/doc/html && /bin/tar xf - )
for file in man1/*.1 man7/*.7 ; do \
/bin/sh ../config/install-sh -c -m 644 $file /usr/local/pgsql/man/$file || exit; \
done
make[1]: Leaving directory `/usr/local/src/postgresql-8.1.3/doc'
make -C src install
make[1]: Entering directory `/usr/local/src/postgresql-8.1.3/src'
/bin/sh ../config/mkinstalldirs /usr/local/pgsql/lib/pgxs/src
/bin/sh ../config/install-sh -c -m 644 Makefile.global /usr/local/pgsql/lib/pgxs/src/Makefile.global
/bin/sh ../config/install-sh -c -m 644 Makefile.port /usr/local/pgsql/lib/pgxs/src/Makefile.port
/bin/sh ../config/install-sh -c -m 644 ./Makefile.shlib /usr/local/pgsql/lib/pgxs/src/Makefile.shlib
/bin/sh ../config/install-sh -c -m 644 ./nls-global.mk /usr/local/pgsql/lib/pgxs/src/nls-global.mk
make -C port install
make[2]: Entering directory `/usr/local/src/postgresql-8.1.3/src/port'
/bin/sh ../../config/install-sh -c -m 644 libpgport.a /usr/local/pgsql/lib
make[2]: Leaving directory `/usr/local/src/postgresql-8.1.3/src/port'
make -C timezone install
make[2]: Entering directory `/usr/local/src/postgresql-8.1.3/src/timezone'
make -C ../../src/port all
make[3]: Entering directory `/usr/local/src/postgresql-8.1.3/src/port'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/usr/local/src/postgresql-8.1.3/src/port'
./zic -d /usr/local/pgsql/share/timezone ./data/africa ./data/antarctica ./data/asia ./data/australasia ./data/europe ./data/northamerica ./data/southamerica ./data/pacificnew ./data/etcetera ./data/factory ./data/backward ./data/systemv ./data/solar87 ./data/solar88 ./data/solar89
./zic: ./zic: cannot execute binary file
make[2]: *** [install] Error 126
make[2]: Leaving directory `/usr/local/src/postgresql-8.1.3/src/timezone'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/usr/local/src/postgresql-8.1.3/src'
make: *** [install] Error 2
[root@server postgresql-8.1.3]#

pls, help me!

thx

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

Re: have some proplem! with make install

Post by TrevorH » 2013/10/01 07:17:45

The correct way to do this is

[code]
yum install postgresql
[/code]

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

Re: have some proplem! with make install

Post by ningnonk » 2013/10/02 02:31:05

Ok! i'll try it, again.

Thx

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

Re: have some proplem! with make install

Post by ningnonk » 2013/10/02 02:59:07

Now, i try yum install postgresql already

- it same old proplem with make install



pls, help me again

Thx

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

Re: have some proplem! with make install

Post by TrevorH » 2013/10/02 07:41:57

No, forget a source install. For a start 8.1.3 is ancient and probably has security vulnerabilities. Did you run `yum install postgresql`? Did it work? If so then postgresql is now installed and you can just start it up. Try `service postgresql start`. The `psql` command should also be installed and that's how you can talk to the server once it's running.

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

Re: have some proplem! with make install

Post by ningnonk » 2013/10/03 03:44:09

Ok, i try aleady same old problem T_T

step by steb

1. install CentOS 5.5
2. choice package postgresql
3. finish instal os
4. copy postgesql-8.1.3.tar.gz and tar it
5. cd postgresql-8.1.3 and ./configure
6. make
7. make install
8. it error - make[3]: Leaving directory `/usr/local/src/postgresql-8.1.3/src/port'
./zic -d /usr/local/pgsql/share/timezone ./data/africa ./data/antarctica ./data/asia ./data/australasia ./data/europe ./data/northamerica ./data/southamerica ./data/pacificnew ./data/etcetera ./data/factory ./data/backward ./data/systemv ./data/solar87 ./data/solar88 ./data/solar89
./zic: ./zic: cannot execute binary file
make[2]: *** [install] Error 126
make[2]: Leaving directory `/usr/local/src/postgresql-8.1.3/src/timezone'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/usr/local/src/postgresql-8.1.3/src'
make: *** [install] Error 2
[root@server postgresql-8.1.3]#

pls, help me :(

Thx.

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

Re: have some proplem! with make install

Post by TrevorH » 2013/10/03 07:13:26

Here's what you should be doing

1) Install CentOS [b]5.9[/b] (5.5 is old and deprecated and contains unfixed security bugs)
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) Done

If you find yourself downloading source files like something.tar..gz then you've gone wrong. CentOS is a package based distribution and source installs are almost always the wrong answer.

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

Re: have some proplem! with make install

Post by ningnonk » 2013/10/03 09:46:46

I have question, if i try yum update, it is no problem for database and software require postgresql 8.1.3 ?

Thx

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

Re: have some proplem! with make install

Post by TrevorH » 2013/10/03 10:07:23

Running `yum update` should not affect an installed database instance.

Any software vendor that requires postgresql 8.1.3 needs to be taken to task for recommending use of out of date, insecure software. There was at least one postgresql bug in the last year that affected all releases that was so serious that they stopped downloads from their web site while they corrected the problem. I am fairly sure that this bug will be present in 8.1.3 so it should not be used.

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

Post Reply

Return to “CentOS 5 - Server Support”