ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: "В.А. Илларионов" <gbimobou@gmail.com>
To: sisyphus@lists.altlinux.org
Subject: [sisyphus]  Связь с оракулом
Date: Tue, 20 Dec 2016 16:27:02 +0800
Message-ID: <547d3d03-98cf-98a5-67bb-6a431106a862@gmail.com> (raw)

Есть нужда дёргать данные из оракула в мускуль через веб-морду. А возможности под альтом нет.

Предварительно установив официальный инстант-клиент 11.2.0.4 и определив переменную ORACLE_HOME, собрал модуль 
для пхп с таким спеком (php5-oci8.spec):

%define             php5_extension  oci8

Name:               php5-%php5_extension
Version:            %php5_version
Release:            %php5_release

Summary:            Oracle module for PHP5
Group:              System/Servers
License:            PHP Licence

Source1:            php-%php5_extension.ini
Source2:            php-%php5_extension-params.sh

BuildRequires(pre): rpm-build-php5
BuildRequires:      php5-devel = %php5_version

BuildRequires:      sqlite-devel

%description
This is an extension for the Oracle Instant Client.

%prep
%setup -T -c
cp -pr %php5_extsrcdir/%php5_extension/* .

%build
phpize

%add_optflags -fPIC -L%_libdir -L$ORACLE_HOME/lib
export LDFLAGS=-lphp-%_php5_version
%configure \
--with-oci8=shared,instantclient,/usr/lib/oracle/11.2/client64/lib
%php5_make

%install
%php5_make_install
install -D -m 644 %SOURCE1 %buildroot/%php5_extconf/%php5_extension/config
install -D -m 644 %SOURCE2 %buildroot/%php5_extconf/%php5_extension/params

%files
%php5_extconf/%php5_extension
%php5_extdir/*
%doc CREDITS

%post
%php5_extension_postin

%preun
%php5_extension_preun

%changelog
* %(LC_TIME=C date "+%%a %%b %%d %%Y") %{?package_signer:%package_signer}%{!?package_signer:%packager} 
%version-%release
- first build for ALT linux with php5-%version-%release.

Поставил получившийся пакет в виртуалку с nginx'ом - не выходит каменный цветок.

Решил со стороны перловки подойти: поставил perl-DBI, perl-CPAN и прочее нужное. Из cpan'а запускаю install 
DBD::Oracle - ругается на отсутствие DBI::DBD. Пробую собрать его - ругается уже на DBI.


У нас вообще к оракулу можно подключиться чем-то, кроме sqlplus?

-- 
Мимо крокодил.
WBR, rednex CIO.
Viber = +7(964)103-65-67
JID = <mailto:>
Skype = $local_part@<mailto:>

Опциии rsync -aHAX --delete мозг автоматом переводит как "удалить к чёртовой матери!"



             reply	other threads:[~2016-12-20  8:27 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-20  8:27 В.А. Илларионов [this message]
2016-12-20 16:28 ` Sergey
2016-12-21  7:23   ` В.А. Илларионов
2016-12-21  8:07     ` В.А. Илларионов
2016-12-21  9:15       ` Michael Shigorin
2016-12-21 23:09         ` Вадим Илларионов
2016-12-21 23:37           ` Michael Shigorin
2016-12-22  7:59           ` Sergey
2016-12-22 10:04             ` [sisyphus] [JT] " Michael Shigorin
2016-12-22 10:15               ` Вадим Илларионов
2016-12-22 10:34                 ` Michael Shigorin
2016-12-22  6:32       ` [sisyphus] " Sergey
2016-12-22 11:17         ` Вадим Илларионов
2016-12-22 11:22           ` Eugene Prokopiev
2016-12-22 11:35             ` Вадим Илларионов
2016-12-22 11:47               ` Eugene Prokopiev
2016-12-22 10:37 ` Eugene Prokopiev
2016-12-22 19:14 ` Sergey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=547d3d03-98cf-98a5-67bb-6a431106a862@gmail.com \
    --to=gbimobou@gmail.com \
    --cc=sisyphus@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git