Re: syntax error with connection.h and more in build

Поиск
Список
Период
Сортировка
От A.M.
Тема Re: syntax error with connection.h and more in build
Дата
Msg-id 556EABAD-3921-44E4-B57E-5784D86E6CEB@themactionfaction.com
обсуждение исходный текст
Ответ на syntax error with connection.h and more in build  ("David Sloboda" <David_Sloboda@pmc-sierra.com>)
Список psycopg
On May 3, 2011, at 5:55 PM, David Sloboda wrote:

> I'm unable to get psycopg2-2.4 to build on Red Hat Enterprise Linux
> release 4 update 8
>
> ./psycopg/connection.h and other files throw syntax errors.
> connection.h is straight from the tarbal and does not appear to have a
> syntax error to me.
>
> I have the postgresql-devel and other RPMs installed.
>
> I've read http://initd.org/psycopg/docs/faq.html
>  I am not getting the "No such file or directory" errors mentioned in
> the FAQ.
>
> I'm stuck.  Any assistance would be most appreciated.  Thanks.

It looks like you're trying to build against postgresql 7.4. Try building psycopg2 against postgresql 9.0 client libs
instead.You can then use the 9.0 lib to connect to the 7.4 database. I don't know enough about RHEL to tell you if can
installthe different postgresql versions side-by-side. Adjust your path to pop in the 9.0 pg_config, and the build
shouldsucceed. 

Cheers,
M

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

Предыдущее
От: "David Sloboda"
Дата:
Сообщение: syntax error with connection.h and more in build
Следующее
От: "David Sloboda"
Дата:
Сообщение: SOLVED syntax error with connection.h and more in build