Re: Unable to run testlibpq.c program - Mailing list pgsql-general

From Tom Lane
Subject Re: Unable to run testlibpq.c program
Date
Msg-id 24091.1085118623@sss.pgh.pa.us
Whole thread Raw
In response to Unable to run testlibpq.c program  (vikram_147@yahoo.com (Vikram))
List pgsql-general
vikram_147@yahoo.com (Vikram) writes:
> (bash#)gcc -I/usr/include/pgsql sirisha_retrieve.c -o output2 -lpq
> /usr/bin/ld: cannot open output file output2: Permission denied
> collect2: ld returned 1 exit status

> What does the above message signify?

It sure looks like you're doing this in a directory that you don't have
write permission for.

A less-probable alternative is that output2 already exists in your
current directory and you don't have write permission to overwrite it.

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: PG_HBA.conf still keeps complaining. I've done all I could imagine.
Next
From: Tom Lane
Date:
Subject: Re: Index not being used properly