powered by simpleCommunicator - 2.0.53     © 2025 Programmizd 02
Форумы / PostgreSQL [игнор отключен] [закрыт для гостей] / Гетерогенный сервис PostgreSql Oracle
21 сообщений из 21, страница 1 из 1
Гетерогенный сервис PostgreSql Oracle
    #39536043
Фотография Rinka777
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Действуем на сервере Oracle. Postgresql на другой машике.

Скачала драйвер http://ftp.postgresql.org/pub/odbc/versions/src/psqlodbc-09.06.0400.tar.gz


[root@ psqlodbc-09.06.0400]# ./configure --with-libpq=/usr/local/pgsql --disable-openssl
Код: sql
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
49.
50.
51.
52.
53.
54.
55.
56.
57.
58.
59.
60.
61.
62.
63.
64.
65.
66.
67.
68.
69.
70.
71.
72.
73.
74.
75.
76.
77.
78.
79.
80.
81.
82.
83.
84.
85.
86.
87.
88.
89.
90.
91.
92.
93.
94.
95.
96.
97.
98.
99.
100.
101.
102.
103.
104.
105.
106.
107.
108.
109.
110.
111.
112.
113.
114.
115.
116.
117.
118.
119.
120.
121.
configure: WARNING: unrecognized options: --disable-openssl
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking -Wall is a valid compile option... yes
checking for odbc_config... /usr/bin/odbc_config
configure: using /usr/include /usr/lib64
checking last argument to SQLColAttribute is SQLLEN *... no
configure: error: specified pg_config not found
[root@dit-prod psqlodbc-09.06.0400]# mkdir /usr/local/pgsql
[root@dit-prod psqlodbc-09.06.0400]# ./configure --with-libpq=/usr/local/pgsql --disable-openssl
configure: WARNING: unrecognized options: --disable-openssl
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking -Wall is a valid compile option... yes
checking for odbc_config... /usr/bin/odbc_config
configure: using /usr/include /usr/lib64
checking last argument to SQLColAttribute is SQLLEN *... no
checking for pg_config... no
checking for prove... prove
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 98304
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... dlltool
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... no
checking for dlopen in -ldl... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... no
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for library containing SQLGetPrivateProfileString... -lodbcinst
checking for pthread_create in -lpthreads... no
checking for pthread_create in -lpthread... yes
checking for PQsetSingleRowMode in -lpq... no
configure: error: libpq library version >= 9.2 is required



то есть надо библиотеку libpq версии 9.6 . где взять?
Может тогда уже весь postgres поставить...
...
Рейтинг: 0 / 0
Гетерогенный сервис PostgreSql Oracle
    #39536110
Фотография Vadim Lejnin
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Rinka777,
Какая у Вас ОС?

postgres.org -> download -> binary
или
Source

Если linux
То подключаете репозиторий ( там же)
И ставите
postgres-develop-9.6.XXX
...
Рейтинг: 0 / 0
Гетерогенный сервис PostgreSql Oracle
    #39536136
Фотография Rinka777
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Vadim Lejnin,

Linux version 2.6.32-200.13.1.el5uek (mockbuild@ca-build9.us.oracle.com) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-50)) #1 SMP Wed Jul 27 21:02:33 EDT 2011
...
Рейтинг: 0 / 0
Гетерогенный сервис PostgreSql Oracle
    #39536138
Фотография Rinka777
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Vadim Lejnin,
не поняла, на оракловый сервер таки надо ставить Postgres? Драйвера не хватит?
...
Рейтинг: 0 / 0
Гетерогенный сервис PostgreSql Oracle
    #39536140
Фотография Vadim Lejnin
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Rinka777,

Достаточно библиотеки
...
Рейтинг: 0 / 0
Гетерогенный сервис PostgreSql Oracle
    #39536144
Фотография Vadim Lejnin
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
OEL5 - там нет, но можно попробовать от RedHat6
Код: sql
1.
2.
yum install https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-6-x86_64/pgdg-oraclelinux96-9.6-3.noarch.rpm
yum install postgresql96-libs.x86_64
...
Рейтинг: 0 / 0
Гетерогенный сервис PostgreSql Oracle
    #39538902
Фотография Rinka777
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Vadim Lejnin,

не удалось собрать под RHEL5

переиграла на RHEL7

cat `ls /etc/*{-,_}{release,version} 2>/dev/null | head -n 1`
Код: sql
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
NAME="Red Hat Enterprise Linux Server"
VERSION="7.1 (Maipo)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="7.1"
PRETTY_NAME="Red Hat Enterprise Linux Server 7.1 (Maipo)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:7.1:GA:server"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7"
REDHAT_BUGZILLA_PRODUCT_VERSION=7.1
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="7.1"



и все равно что-то не то

Код: sql
1.
2.
3.
4.
rpm -i pgdg-oraclelinux96-9.6-3.noarch.rpm
warning: pgdg-oraclelinux96-9.6-3.noarch.rpm: Header V4 DSA/SHA1 Signature, key ID 442df0f8: NOKEY
error: Failed dependencies:
        oraclelinux-release is needed by pgdg-oraclelinux96-9.6-3.noarch
...
Рейтинг: 0 / 0
Гетерогенный сервис PostgreSql Oracle
    #39539062
Фотография Vadim Lejnin
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Rinka777,

Для Rh7 есть готовая библиотека
Да odbc тоже
...
Рейтинг: 0 / 0
Гетерогенный сервис PostgreSql Oracle
    #39539117
Фотография Vadim Lejnin
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Rinka777,
Воспользуйтесь yum
тогда все зависимости отработаются сами

yum install https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-7-x86_64/pgdg-redhat96-9.6-3.noarch.rpm
yum install postgresql96-libs.x86_64
...
Рейтинг: 0 / 0
Гетерогенный сервис PostgreSql Oracle
    #39539189
Павел Лузанов
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Rinka777,

Точно не хотите сразу готовый пакет с odbc поставить?
В списке вроде есть:
https://yum.postgresql.org/news-packagelist.php
...
Рейтинг: 0 / 0
Гетерогенный сервис PostgreSql Oracle
    #39539319
Фотография Rinka777
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Vadim LejninRinka777,
Воспользуйтесь yum
тогда все зависимости отработаются сами

yum install https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-7-x86_64/pgdg-redhat96-9.6-3.noarch.rpm
yum install postgresql96-libs.x86_64

там так нельзя. все закрыто
...
Рейтинг: 0 / 0
Гетерогенный сервис PostgreSql Oracle
    #39539563
Фотография Vadim Lejnin
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Rinka777,

Добавьте DVD как репозиторий
...
Рейтинг: 0 / 0
Гетерогенный сервис PostgreSql Oracle
    #39539713
Фотография Rinka777
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Vadim LejninRinka777,

Добавьте DVD как репозиторий

сервер не наш. там особо не покомандуешь. буду заниматься ловлей блох
а может взять и postgresql поставить?
...
Рейтинг: 0 / 0
Гетерогенный сервис PostgreSql Oracle
    #39539715
Фотография Vadim Lejnin
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Rinka777,

Есть
postgres - клиент и библиотеки, его имеет смысл ставить, пригодится проверять подключение например
есть
postgres-server - собственно сервер, если Вам не нужен, то зачем ставить?
...
Рейтинг: 0 / 0
Гетерогенный сервис PostgreSql Oracle
    #39539804
Фотография Rinka777
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Vadim LejninRinka777,

Есть
postgres - клиент и библиотеки, его имеет смысл ставить, пригодится проверять подключение например
есть
postgres-server - собственно сервер, если Вам не нужен, то зачем ставить?

вы правы
...
Рейтинг: 0 / 0
Гетерогенный сервис PostgreSql Oracle
    #39541849
Фотография Rinka777
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
make не проходит

odbcapi30.c:123:1: error: conflicting types for 'SQLColAttribute'
SQLColAttribute(SQLHSTMT StatementHandle,
^
In file included from psqlodbc.h:93:0,
from odbcapi30.c:21:
/usr/local/include/sql.h:613:24: note: previous declaration of 'SQLColAttribute' was here
SQLRETURN SQL_API SQLColAttribute(SQLHSTMT StatementHandle,
^
make[1]: *** [psqlodbcw_la-odbcapi30.lo] Error 1
make[1]: Leaving directory `/home/oracle/psqlodbc-09.06.0400'


я в тупике
...
Рейтинг: 0 / 0
Гетерогенный сервис PostgreSql Oracle
    #39542276
Фотография Vadim Lejnin
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Rinka777,
У Вас же есть готовые rpm для RH7 и libpq и odbc
Вам нужно обязательно скомпилировать самой?

подключите local DVD с RH7 и попробуйте
yum localinstall posgresql-libs....rpm
...
Рейтинг: 0 / 0
Гетерогенный сервис PostgreSql Oracle
    #39550265
yooo
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Rinka777, А как то так не пробовали (если ODBC):
yum install unixODBC
yum search postgre | grep odbc
yum install ваш найденный пакет
...
Рейтинг: 0 / 0
Гетерогенный сервис PostgreSql Oracle
    #39550284
yooo
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
...
Рейтинг: 0 / 0
Гетерогенный сервис PostgreSql Oracle
    #39550339
Фотография Rinka777
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
нету там выхода в интернет... закрытый сервер. и чужой. особенно не разгуляешься
...
Рейтинг: 0 / 0
Гетерогенный сервис PostgreSql Oracle
    #39550416
Фотография Vadim Lejnin
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Rinka777,
Скачайте набор необходимых rpm, получится пара гигов
выложите внутри и поправьте URL
/etc/yum.repos.d/*
...
Рейтинг: 0 / 0
21 сообщений из 21, страница 1 из 1
Форумы / PostgreSQL [игнор отключен] [закрыт для гостей] / Гетерогенный сервис PostgreSql Oracle
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]