Re: apt.postgresql.org ubtuntu trusty missing libpq version

Поиск
Список
Период
Сортировка
От Adrian Klaver
Тема Re: apt.postgresql.org ubtuntu trusty missing libpq version
Дата
Msg-id 56ABCDD8.9040108@aklaver.com
обсуждение исходный текст
Ответ на apt.postgresql.org ubtuntu trusty missing libpq version  (Leonard B <leonard.boyce@lucidlayer.com>)
Список pgsql-general
On 01/29/2016 11:19 AM, Leonard B wrote:
Ccing list
> On Fri, Jan 29, 2016 at 10:29 AM, Adrian Klaver
> <adrian.klaver@aklaver.com> wrote:
>> On 01/29/2016 06:17 AM, Leonard B wrote:
>>>
>>> Hello,
>>>
>>> Trying to get pg_repack built for Postgresql 9.4 and it appears there
>>> are no 9.4 versions of libpq-dev and libpq5 available in the trusty
>>> repo.
>>>
>>> pg_repack will not build with the latest and greatest versions. I ran
>>> into exactly the same issue with Debian Squeeze, but in that case the
>>> 9.4 versions are available in apt.postgresql.org
>>>
>>> Distributor ID: Ubuntu
>>> Description:    Ubuntu 14.04.3 LTS
>>> Release:        14.04
>>> Codename:       trusty
>>>
>>> $ sudo apt-get install libpq-dev=9.4\* libpq5=9.4\*
>>> Reading package lists... Done
>>> Building dependency tree
>>> Reading state information... Done
>>> E: Version '9.4*' for 'libpq-dev' was not found
>>> E: Version '9.4*' for 'libpq5' was not found
>>
>>
>>
>>
https://wiki.postgresql.org/wiki/Apt/FAQ#I_want_libpq5_for_version_X.2C_but_there_is_only_version_Y_in_the_repository
>
> Thanks Adrian,
>
> Seems after updating apt sources I could use "sudo apt-get install
> libpq-dev=9.4\* libpq5=9.4\*"
>
> I will note that even with "deb
> http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main 9.4" the
> default versions are for 9.5 right now

Did you see this part:

"Note that the other libpq5 package will still be visible in the "main"
component, so you will need to configure pinning or set that package on
hold to prevent apt from trying to upgrade to the newer version. "

of the above link?

Also do you have more than one Postgres repo in your sources?

Worse comes to worse I could see downloading the source for 9.4.5 and
building and installing into a 'dummy' location. And then build
pg_repack against that install:

cd pg_repack
PATH=/path/to/src_installed94/bin:$PATH --To pull in correct pg_config
$ make
$ sudo make install

>
> Leonard
>
>>
>>>
>>> Thanks,
>>> Leonard
>>>
>>>
>>
>>
>> --
>> Adrian Klaver
>> adrian.klaver@aklaver.com


--
Adrian Klaver
adrian.klaver@aklaver.com


В списке pgsql-general по дате отправления:

Предыдущее
От: Thomas Munro
Дата:
Сообщение: Re: BSD initdb without ICU support and switch later
Следующее
От: Dane Foster
Дата:
Сообщение: PL/pgSQL debugger