Compiling DCOracle2 on RH Linux 8.0
Bill.Scherer at verizonwireless.com
Wed Jan 28 14:44:58 CET 2004
Ron Reidy wrote:
>dripton at wizard.net (David Ripton) wrote in message news:<8725c51c.0401241912.316a7cfc at posting.google.com>...
>>reidyre at yahoo.com (Ron Reidy) wrote in message news:<ab425431.0401211512.6c698e00 at posting.google.com>...
>>>I am trying to compile DCOracle2 on RedHat 8.0 and make is giving me
>>>the following error:
>>>gcc -pthread -fPIC -DNDEBUG -g -O3 -Wall -Wstrict-prototypes
>>>-I/usr/local/include/python2.3 -I/usr/local/include/python2.3 @DEFS@
>>>-I/oracle/app/oracle/9i/rdbms/public -DORACLE9i -c ././dco2.c -o
>>>gcc: cannot specify -o with -c or -S and multiple compilations
>>>Did I do something wrong?
>>No. The DCOracle2 build process isn't very robust.
>>Look at src/Makefile. Find a line that says "DEFS=%DEFS" and change
>>it to "DEFS=-fno-strict-aliasing"
>Thanks. That worked well. Now, how do I install it? The only copies
>of dco2.so that exist are in the directory tree where I built the
>library. In searching for any kind of install directios, I found
>nothing like 'make install', etc.
At the same sevel as the src folder where you built dco2.so, you should
find a DCOracle2 folder. Put dco2.so in that folder, and copy that
folder into your $PYTHONPATH (site-packages/ would do fine). Then you
should be able to start your python and import DCOracle2.
>Thanks you your help.
More information about the Python-list