Thread: Selectively compile psql

Selectively compile psql

From
Samik Raychaudhuri
Date:
Hello,
This is a re-post, as it seems the mail didn't appear.
I want to recompile only psql with the readline library. When I
installed PG, GNU readline package was not there. Now db is running
fine, and I don't want to disturb it. I tried doing this but things
got messed up. Can anybody point me to the brief steps to do this.
Thanks in advance.
Regards.
-Samik




Re: [HACKERS] Selectively compile psql

From
Neil Conway
Date:
On Mon, 2002-02-18 at 21:05, Samik Raychaudhuri wrote:
> Hello,
> This is a re-post, as it seems the mail didn't appear.
> I want to recompile only psql with the readline library. When I
> installed PG, GNU readline package was not there. Now db is running
> fine, and I don't want to disturb it. I tried doing this but things
> got messed up. Can anybody point me to the brief steps to do this.
> Thanks in advance.

./configure
cd src/bin/psql
make
# as root ...
make install

Cheers,

Neil

P.S. This does not belong on -hackers.

--
Neil Conway <neilconway@rogers.com>
PGP Key ID: DB3C29FC


Re: [HACKERS] Selectively compile psql

From
Samik Raychaudhuri
Date:
Hi,
Thanks for the reply. I had to change the way though. I followed:
./configure
gmake -C src/bin/psql
gmake install -C src/bin/psql

cd'ing to src/bin/psql was giving the following error:
make: Fatal error in reader: ../../../src/Makefile.global, line 24:
Illegal dependencies for target `.SILENT'

Thanks anyway for the clue.
Regards.
-Samik

Neil Conway wrote:

> On Mon, 2002-02-18 at 21:05, Samik Raychaudhuri wrote:
>
>>Hello,
>>This is a re-post, as it seems the mail didn't appear.
>>I want to recompile only psql with the readline library. When I
>>installed PG, GNU readline package was not there. Now db is running
>>fine, and I don't want to disturb it. I tried doing this but things
>>got messed up. Can anybody point me to the brief steps to do this.
>>Thanks in advance.
>>
>
> ./configure
> cd src/bin/psql
> make
> # as root ...
> make install
>
> Cheers,
>
> Neil
>
> P.S. This does not belong on -hackers.
>
>


--
__________________________________________________________
Samik Raychaudhuri
Email address: samik@cae.wisc.edu
Homepage: http://samikr.tripod.com/

Office Address:
------------------------------------
Dept. of Industrial Engineering
1513, University Avenue
Madison, WI 53706, USA
Phone: 1-608-265-4146
Fax: 1-608-262-8454

Residence Address:
--------------------------
401, Chamberlain Avenue, Apt # 7
Madison, WI 53705, USA
Phone: 1-608-232-0248


Re: Selectively compile psql

From
Holger Marzen
Date:
On Mon, 18 Feb 2002, Samik Raychaudhuri wrote:

> This is a re-post, as it seems the mail didn't appear.
> I want to recompile only psql with the readline library. When I
> installed PG, GNU readline package was not there. Now db is running
> fine, and I don't want to disturb it. I tried doing this but things
> got messed up. Can anybody point me to the brief steps to do this.

I had the same problem. I simply compiled the whole postgres stuff but
didn't "make install". Instead I copied psql to /home/pgsql/bin
manually.