Open Source RDBMS - Seamless, Scalable, Stable and Free

한국어 | Login |Register

author
message
[Level:0]martinvega

Post subject: Installing python module in linux

registered: 05/31/2011

IP: *.8.17.24

views: 156

I'm triying to install the python module in a debian linux distribution, I have install the python2.6-dev, the gcc and library tools and Cubrir running, then run the script:
$python setup.py build

I have the next error:
............
.............
/usr/local/cubrid/include/cas_error.h:38:2: warning: #ident is a deprecated GCC extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/local/cubrid/include -I/usr/include/python2.6 -c oid.c -o build/temp.linux-x86_64-2.6/oid.o
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions build/temp.linux-x86_64-2.6/cubrid.o build/temp.linux-x86_64-2.6/conn.o build/temp.linux-x86_64-2.6/cursor.o build/temp.linux-x86_64-2.6/oid.o -L/usr/local/cubrid/lib64 -lcascci -o build/lib.linux-x86_64-2.6/cubrid.so
/usr/bin/ld: cannot find -lcascci
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1

Why would it be?

Thank you very much and congratulation for this great application, sorry for my bad english.

Quote
[Level:3]eye

# Post subject:Re: Installing python module in linux

profile

registered: 05/31/2011

IP: *.91.137.50

Hi martinvega,

Please let us know the following details about your system:
1) CUBRID version
2) OS
3) Architecture (x86 or x64)
4) How did you install CUBRID? .sh or .rpm isntaller?

Just to make sure, you have done the following:

1) CUBRID is installed
2) Python is installed
3) Python Dev is installed

The "cannot find -lcascci" means your system cannot locate the directory where CUBRID has been installed. Therefore it is necessary to know how did you install CUBRID and which OS do you have.

Restart your OS and check if you system has $CUBRID in your PATH, type
echo $CUBRID

Quote
[Level:0]martinvega

# Post subject:Re: Installing python module in linux

profile

registered: 05/31/2011

IP: *.8.17.24

I solved the problem, but i think that can be a bug in the scripts.

1) (cubrid R3.1) /usr/local/cubrid
2) Ubuntu 10.04
3) Architecture x64
4) .sh installer

in fact, the installer couldn't find the lib directory of the cubrid installation.

I had installed the "CUBRID-8.3.1.0152-linux.x86_64.download" ( x64 bits )

In my install directory has two 'lib' directories, /usr/local/cubrid/lib and /usr/local/cubrid/lib32

The problem is that the install script of python module has the next lines:
elif os.environ.has_key("CUBRID"):
if '64bit' in platform.architecture():
cci_lib_dir = os.environ["CUBRID"] + "/lib64"
else:
cci_lib_dir = os.environ["CUBRID"] + "/lib"


In fact, my architecture is x64 but this directory does not exist. then, i change /lib64 to /lib and the installation script works.

Quote
[Level:3]eye

# Post subject:Re: Installing python module in linux

profile

registered: 05/31/2011

IP: *.91.137.50

Gr8!

/lib64 used to be the location where CUBRID 2.0 and lower versions used to keep their 64-bit libraries. Thank you for reporting this issue. I updated the installation script and upload the source code to http://www.cubrid.org/python_programming.

If you have any issues, let me know. I will be happy to help you!

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: