From: | William Torrez Corea <willitc9888(at)gmail(dot)com> |
---|---|
To: | pgsql-general(at)lists(dot)postgresql(dot)org |
Cc: | Rob Sargent <robjsargent(at)gmail(dot)com> |
Subject: | Re: collect2: error: ld returned 1 exit status |
Date: | 2022-11-27 00:51:59 |
Message-ID: | CAGiORHe77Tm6TGg0zYe8VUAyE-exL5BNu+ETkBrbQrkMkuPEUQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Sat, Nov 26, 2022 at 5:25 PM Rob Sargent <robjsargent(at)gmail(dot)com> wrote:
>
> On Nov 26, 2022, at 4:17 PM, William Torrez Corea <willitc9888(at)gmail(dot)com>
> wrote:
>
>
>
>
> On Sat, Nov 26, 2022 at 5:00 PM Rob Sargent <robjsargent(at)gmail(dot)com> wrote:
>
>>
>>
>> On Nov 26, 2022, at 3:43 PM, William Torrez Corea <willitc9888(at)gmail(dot)com>
>> wrote:
>>
>>
>> I am using libpq: the C application programmer's interface to PostgreSQL.
>>
>> Compile the code:
>>
>>
>>> *sudo cc -o testprog testprog1.o testprog2.o -L/usr/local/pgsql/lib -lpq*
>>
>>
>> But i get the following error:
>>
>> *collect2: error: ld returned 1 exit status*
>>>
>>
>> --
>>
>> And do you have at hand why the loader (ld) failed?
>
>
>>
> Package libpq was not found in the pkg-config search path.
> Perhaps you should add the directory containing `libpq.pc'
> to the PKG_CONFIG_PATH environment variable
> No package 'libpq' found
>
> --
>
>
> So libpq is not in *-L/usr/local/pgsql/lib ?* Do you know that libpq is
> installed? You may need to use the Debian package installer to get the
> “dev” environment
>
>
> With kindest regards, William.
>
> ⢀⣴⠾⠻⢶⣦⠀
> ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
> ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
> ⠈⠳⣄⠀⠀⠀⠀
>
>
>
header files for libpq5 (PostgreSQL library), the package is broken.
--
With kindest regards, William.
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀⠀⠀⠀
From | Date | Subject | |
---|---|---|---|
Next Message | Rob Sargent | 2022-11-27 01:55:20 | Re: collect2: error: ld returned 1 exit status |
Previous Message | Tom Lane | 2022-11-26 23:46:21 | Re: collect2: error: ld returned 1 exit status |