473,499 Members | 1,525 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Compiling DCOracle2 on RH Linux 8.0

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.
Jul 18 '05 #1
3 1664
re*****@yahoo.com (Ron Reidy) wrote in message news:<ab**************************@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/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"
Jul 18 '05 #2
dr*****@wizard.net (David Ripton) wrote in message news:<87**************************@posting.google. com>...
re*****@yahoo.com (Ron Reidy) wrote in message news:<ab**************************@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/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.
Jul 18 '05 #3
Ron Reidy wrote:
dr*****@wizard.net (David Ripton) wrote in message news:<87**************************@posting.google. com>...

re*****@yahoo.com (Ron Reidy) wrote in message news:<ab**************************@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/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.

Jul 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1614
by: Skip Montanaro | last post by:
Connections to remote Oracle databases doesn't seem possible with DCOracle2. I have no problem making remote connections using Perl's DBI::Oracle package, so I know it's possible in theory. Is...
0
1330
by: the_rev_dharma_roadkill | last post by:
I've have some fun getting DCOracle2 (python-to-oracle interface) going on HP/Compaq Tru64 with Oracle8i Release 3 (oracle 8.1.7). I'd like to share an answer/bug-fix with you: After un-tarring...
2
1632
by: Timo Virkkala | last post by:
I'm having some trouble with Python2.2 and DCOracle2. I'm successfully executing a query, and getting the result I'm hoping for - with an added bonus of some interesting encoding. The beginning of...
0
1054
by: Dave Harrison | last post by:
Hi All, Im trying to use the DCOracle2 library but I've never worked with Oracle before, yet have to investigate the effort involved in porting a database we have to it. When I try running a...
0
1086
by: Dave Harrison | last post by:
hi all, Im trying to install DCOracle2 but I cant seem to find out how to install the Oracle header files that the library needs (...rdbms/demo is empty). Ive installed both the db and the...
0
1030
by: Keana | last post by:
Hi, I am trying to retrieve data from an Oracle DB table. One of the columns is defined as 'Long Raw' data type and contains multi-line string data (with newlines). My query returns 'None' for...
2
1974
by: pepericou | last post by:
I'm trying to developp an application which use Zope and DCOracle2 module to access Oracle database. I've install the DCOracle2 product on Windows XP, but when I create a python function to access...
0
1280
by: Marcel Hartmann | last post by:
Hi, I have problems to get ZOracleDA run in Zope - I cannot found a solution wheter in Zope Groups nor searching google and I think it's a python problem. The connection in python - without zope...
2
1542
by: Chris | last post by:
Hello I'm using DCOracle2 with Python 2.1 and Oracle 8.1.7 on Solaris and while it's working most of the time, I have random ORA-01084 invalid argument in OCI call errors that occur on INSERT....
0
7220
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6893
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7386
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4918
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4599
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3098
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1427
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
664
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
295
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.