Open Source RDBMS - Seamless, Scalable, Stable and Free

한국어 | Login |Register

author
message
[Level:0]Stas

Post subject: Precompiled cubrid.so/pdo_cubrid.so on Ubuntu Natty

registered: 06/13/2011

IP: *.86.134.147

views: 103

Hi,

there's a problem with precompiled php modules for PHP.

When trying to load them (by adding to php.ini or /etc/php5/conf.d/) for:

cubrid.so I get a warning:

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/cubrid.so' - /usr/lib/php5/20090626+lfs/cubrid.so: undefined symbol: executor_globals_id in Unknown on line 0


All good, but cubrid_* functions are not available anyway. After googling, it looks like the module was pre-compiled without ZTS enabled or something like that, while on Ubuntu it's vice-versa.


pdo_cubrid.so loads without warning, but again, functions are not accessible.


My environment:

apt-cache policy nginx-light php5-fpm | grep Instalat  Instalat:   5.3.5-1ubuntu7.2  Instalat:   0.8.54-4cubrid --version                                                                                                                           
cubrid (CUBRID utilities)
CUBRID 2008 R4.0 (8.4.0.0196) (32bit release build for linux_gnu) (Apr 29 2011 00:21:30)
Copyright (C) 2008 Search Solution Corporation. All rights reserved by Search Solution.
uname -ri
2.6.38-8-generic i386

So I had to re-compile the cubrid.so using PEAR, worked fine now. (My cubrid.so here)

P.S.: Having a PPA for Ubuntu/Debian, would be really cool.

Quote
[Level:0]Stas

# Post subject:Re: Precompiled cubrid.so/pdo_cubrid.so on Ubuntu Natty

profile

registered: 06/13/2011

IP: *.86.134.147

The wysiwyg is kinda stupid :(

Quote
[Level:3]eye

# Post subject:Re: Precompiled cubrid.so/pdo_cubrid.so on Ubuntu Natty

profile

registered: 05/31/2011

IP: *.91.139.51

I will check this and get back to you.

Quote
[Level:0]Stas

# Post subject:Re: Precompiled cubrid.so/pdo_cubrid.so on Ubuntu Natty

profile

registered: 06/13/2011

IP: *.24.43.224

@eye, ok. Thanks.

Quote
[Level:0]Stas

# Post subject:Re: Precompiled cubrid.so/pdo_cubrid.so on Ubuntu Natty

profile

registered: 06/13/2011

IP: *.86.134.147

I was thinking to put a daily build of cubrid, so I checked the svn branch for 8.4.0 and found a debian directory there.

The problem with daily builds, that to create a recipe, if requires to have the code imported on launchpad.net. An import request has to be filled on their page:

https://code.launchpad.net/+code-imports/+new

To do that, It asks for a parent project, where cubrid is not registered, so nobody can make an import until the project is registered.

Once that is done along with the import a build recipe can be added:

# bzr-builder format 0.3 deb-version {debupstream}-0~{revno}
lp:~cubrid/RB-8.4.0
bzr dailydeb cubrid.recipe --key-id KEYID --dput ppa:cubrid/cubrid-daily
This should work.

Quote
[Level:8]CUBRID

# Post subject:Re: Precompiled cubrid.so/pdo_cubrid.so on Ubuntu Natty

profile

registered: 03/29/2010

IP: *.91.139.51

Hey Stas!

It's so cool you checked this. We were trying to submit to the official repositories for so long. Hope this time we will manage it with your help!

Thanks again!

Quote
[Level:0]Stas

# Post subject:Re: Precompiled cubrid.so/pdo_cubrid.so on Ubuntu Natty

profile

registered: 06/13/2011

IP: *.86.134.147

I'm not an expert, but I've been using launchpad for some time, so if I can help you, just ping me.

Rock on!

Quote
[Level:8]CUBRID

# Post subject:Re: Precompiled cubrid.so/pdo_cubrid.so on Ubuntu Natty

profile

registered: 03/29/2010

IP: *.91.139.51

Hi Stas,

Now both CUBRID and CUBRID Manager can be installed directly from Launchpad. Check this tutorials http://www.cubrid.org/launchpad. Please, give it a try and let us know if you have any comments.

Thanks.

Quote




You are either using a very old browser or a browser that is not supported.
In order to browse cubrid.org you need to have one of the following browsers:



Internet Explorer: Mozilla Firefox: Google Chrome: