Forum OpenACS Q&A: Installing Postgresql

Collapse
Posted by phil phil on
i'm trying to compile and install postgres and got this error when i executed ./configure

checking for gcc: no
checking for cc: no
configure: error: no acceptable C compiler found in $PATH

How do i install gcc on ubuntu 5.04?

Collapse
Posted by Iuri Sampaio on
hi phil
as you already wrote above, you need to install gcc compiler. wasn't ubuntu suposed to come with gcc installed?

anyway,
just google it and you will find good sources about ubuntu like tihs one:
http://ubuntuforums.org/archive/index.php/t-7527.html

then let us know how was pg installation! You can follow the pg installation tutorial written by Vinod.

So far, I've installed PG7.4 and PG8.1 on Madriva, Debian, and Solaris. All them worked well with the tutorial

https://openacs.org/doc/current/postgres.html

Collapse
Posted by Iuri Sampaio on
More info about ubuntu/debian installation
https://openacs.org/xowiki/Debian_Ubuntu_installer_developing
Collapse
Posted by phil phil on
hi iuri sampaio,
Thank you very much !!!
Collapse
Posted by phil phil on
After installing the gcc compiler, i'm trying to install postgres following the installation tutorial by Vinod. I still got this error when i executed "make install".
**********************************************************
make[3]: Leaving directory `/usr/local/src/postgresql-7.4.7/src/backend/utils'
/bin/sh ../../config/install-sh -c postgres /usr/local/pgsql/bin/postgres
cp: cannot create regular file `/usr/local/pgsql/bin/<span>#</span>inst.24827#': Permission denied
make[2]: *** [install-bin] Error 1
make[2]: Leaving directory `/usr/local/src/postgresql-7.4.7/src/backend'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/usr/local/src/postgresql-7.4.7/src'
make: *** [install] Error 2
**********************************************************
Thanks for your help again...
Collapse
Posted by Iuri Sampaio on
it seems the directory is blocked to write permisions.

as root user you can run
chmod -R 755 /usr/local/pgsql

maybe it could be simple like that!

Collapse
Posted by LIM K.MING on
i did as what you have told me, but still cannot solve the problem. Still same error. Any other solution?

Thanks...........

Collapse
Posted by Steve Manning on
Try running 'make install' as root. You can always change the owner of the pgsql directory later.

- Steve