Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Compiling DCOracle2 on RH Linux 8.0

Reply
Thread Tools

Compiling DCOracle2 on RH Linux 8.0

 
 
Ron Reidy
Guest
Posts: n/a
 
      01-21-2004
All,

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/demo
-I/oracle/app/oracle/9i/network/public
-I/oracle/app/oracle/9i/plsql/public
-I/oracle/app/oracle/9i/rdbms/public -DORACLE9i -c ././dco2.c -o
../dco2.o
gcc: cannot specify -o with -c or -S and multiple compilations


Did I do something wrong?

Thanks for your help.
 
Reply With Quote
 
 
 
 
David Ripton
Guest
Posts: n/a
 
      01-25-2004
(Ron Reidy) wrote in message news:<. 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/demo
> -I/oracle/app/oracle/9i/network/public
> -I/oracle/app/oracle/9i/plsql/public
> -I/oracle/app/oracle/9i/rdbms/public -DORACLE9i -c ././dco2.c -o
> ./dco2.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"
 
Reply With Quote
 
 
 
 
Ron Reidy
Guest
Posts: n/a
 
      01-27-2004
(David Ripton) wrote in message news:<. com>...
> (Ron Reidy) wrote in message news:<. 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/demo
> > -I/oracle/app/oracle/9i/network/public
> > -I/oracle/app/oracle/9i/plsql/public
> > -I/oracle/app/oracle/9i/rdbms/public -DORACLE9i -c ././dco2.c -o
> > ./dco2.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"


David,

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.

Thanks you your help.
 
Reply With Quote
 
Bill Scherer
Guest
Posts: n/a
 
      01-28-2004
Ron Reidy wrote:

> (David Ripton) wrote in message news:<. com>...
>
>
>> (Ron Reidy) wrote in message news:<. 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/demo
>>>-I/oracle/app/oracle/9i/network/public
>>>-I/oracle/app/oracle/9i/plsql/public
>>>-I/oracle/app/oracle/9i/rdbms/public -DORACLE9i -c ././dco2.c -o
>>>./dco2.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"
>>
>>

>
>David,
>
>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.
>

Ron -

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.

HTH,

Bill

>
>Thanks you your help.
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DCOracle2 kbass Python 0 03-07-2004 01:18 AM
Encoding problems with DCOracle2 Timo Virkkala Python 2 09-15-2003 05:57 AM
Problem with DCOracle2 stored procedure calls Christian Long Python 0 08-08-2003 06:59 PM
How to build/install DCOracle2 on tru64 5.1 the_rev_dharma_roadkill Python 0 07-27-2003 10:27 PM
Remote db connections possible with DCOracle2? Skip Montanaro Python 0 07-02-2003 09:13 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57