E
E
Egor Petrov2014-12-05 16:35:41
PHP
Egor Petrov, 2014-12-05 16:35:41

PHP, Service Data Objects, how to install?

Hello, I'm trying to install Service Data Objects on Ubuntu 14.04. First I tried as written in the php.net manual, sudo pecl install SCA_SDO , got

Cannot find config.m4.
Make sure that you run '/usr/bin/phpize' in the top level source directory of the module

If the command failed with 'phpize: not found' then you need to install php5-dev packageYou can do it by running 'apt-get install php5-dev' as a root userERROR: `phpize' failed

php5-dev is installed, m4 is installed, phpize is in /usr/bin/phpize.
I tried downloading the sources from the site. Made in the directory with the code phpize, ./configure, make and everything falls on make
/usr/include/php5/Zend/zend_API.h:219:2: note: in expansion of macro 'INIT_OVERLOADED_CLASS_ENTRY_EX'
  INIT_OVERLOADED_CLASS_ENTRY_EX(class_container, class_name, sizeof(class_name)-1, functions, handle_fcall, handle_propget, handle_propset, NULL, NULL)
  ^
/usr/include/php5/Zend/zend_API.h:166:2: note: in expansion of macro 'INIT_OVERLOADED_CLASS_ENTRY'
  INIT_OVERLOADED_CLASS_ENTRY(class_container, class_name, functions, NULL, NULL, NULL)
  ^
/home/egor/Projects/1.0/sdo-1.0.0/sdo.cpp:530:5: note: in expansion of macro 'INIT_CLASS_ENTRY'
     INIT_CLASS_ENTRY(ce, "SDO_CPPException", sdo_cppexception_methods);
     ^
make: *** [sdo.lo] Ошибка 1
`make' failed

What else can you try?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Melkij, 2014-12-05
@melkij

pecl.php.net/package/SCA_SDO Last released in 2008, this thing is long dead.
https://bugs.php.net/bug.php?id=58951 At the end there is a link to the github with fixes under 5.3. Will it help under your 5.5 - xs, try it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question