Thread: [cx-oracle-users] Compiling cx_Oracle with Linux Oracle Instantclient 10.2
Brought to you by:
atuining
From: Nicolas D. <ni...@du...> - 2005-11-08 15:56:28
|
Hi all, Below is a small patch I had to apply on cx_Oracle sources to make them compile on my Debian Linux testing box with the Oracle Instantclient 10.2. There were compilation warnings but the module seems to work for me (and I don't plan to use it for production applications so not a problem for me). Thanks, -- Nicolas Duboc <ni...@du...> --- setup.py.bak 2005-01-21 06:17:28.000000000 +0100 +++ setup.py 2005-11-08 15:33:15.000000000 +0100 @@ -47,7 +47,7 @@ libDirs[i] = os.path.join(oracleHome, libDirs[i]) libs = ["oci"] else: - includeDirs = ["rdbms/demo", "rdbms/public", "network/public"] + includeDirs = ["rdbms/demo", "rdbms/public", "network/public", "sdk/include"] if sys.platform == "darwin": includeDirs.append("plsql/public") for i in range(len(includeDirs)): @@ -56,6 +56,7 @@ if sys.platform == "sunos5" and sys.maxint > 2147483647: libPath = os.path.join(oracleHome, "lib64") libDirs = [libPath] + libDirs.append(oracleHome) libs = ["clntsh"] # determine the build time to use in the binary |
From: Anthony T. <ant...@gm...> - 2005-11-09 15:05:27
|
Hmm, I certainly don't have the same directory structure as you do. I've been using the RPM version and it puts the libraries in /usr/lib/oracle/10.2.0.1/lib and the include files in /usr/include/oracle/10.2.0.1/client. How did you install the client? The binary you built should be just fine, though. All that matters for compilation is that your header files and your shared libary files match. :-) On 11/8/05, Nicolas Duboc <ni...@du...> wrote: > Hi all, > > Below is a small patch I had to apply on cx_Oracle sources to make them > compile on my Debian Linux testing box with the Oracle Instantclient > 10.2. > > There were compilation warnings but the module seems to work for me > (and I don't plan to use it for production applications so not a problem > for me). > > Thanks, > > -- > Nicolas Duboc <ni...@du...> > > > --- setup.py.bak 2005-01-21 06:17:28.000000000 +0100 > +++ setup.py 2005-11-08 15:33:15.000000000 +0100 > @@ -47,7 +47,7 @@ > libDirs[i] =3D os.path.join(oracleHome, libDirs[i]) > libs =3D ["oci"] > else: > - includeDirs =3D ["rdbms/demo", "rdbms/public", "network/public"] > + includeDirs =3D ["rdbms/demo", "rdbms/public", "network/public", "sd= k/include"] > if sys.platform =3D=3D "darwin": > includeDirs.append("plsql/public") > for i in range(len(includeDirs)): > @@ -56,6 +56,7 @@ > if sys.platform =3D=3D "sunos5" and sys.maxint > 2147483647: > libPath =3D os.path.join(oracleHome, "lib64") > libDirs =3D [libPath] > + libDirs.append(oracleHome) > libs =3D ["clntsh"] > > # determine the build time to use in the binary > > > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. Downl= oad > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > cx-oracle-users mailing list > cx-...@li... > https://lists.sourceforge.net/lists/listinfo/cx-oracle-users > |
From: Nicolas D. <ni...@du...> - 2005-11-10 13:53:52
|
[In reply to Anthony reply to my post. I'm not subscribed to the list so I did not receive Anthony's reply] Anthony wrote: > > Hi all, > > > > Below is a small patch I had to apply on cx_Oracle sources to make them > > compile on my Debian Linux testing box with the Oracle Instantclient > > 10.2. > > Hmm, I certainly don't have the same directory structure as you do. > I've been using the RPM version and it puts the libraries in > /usr/lib/oracle/10.2.0.1/lib and the include files in > /usr/include/oracle/10.2.0.1/client. How did you install the client? I used the .zip archives of Instantclient 10.2 and unpacked them in /opt. Regards, -- Nicolas Duboc <ni...@du...> |
From: Anthony T. <ant...@gm...> - 2005-11-10 16:33:33
|
Ah yes, I downloaded the zip file to take a look inside it and the directory structure is as you say. Trust Oracle to be consistent. :-) I've included your patches since the additional search directories won't harm a "normal" installation. On 11/10/05, Nicolas Duboc <ni...@du...> wrote: > > [In reply to Anthony reply to my post. I'm not subscribed to the list so > I did not receive Anthony's reply] > > Anthony wrote: > > > Hi all, > > > > > > Below is a small patch I had to apply on cx_Oracle sources to make t= hem > > > compile on my Debian Linux testing box with the Oracle Instantclient > > > 10.2. > > > > Hmm, I certainly don't have the same directory structure as you do. > > I've been using the RPM version and it puts the libraries in > > /usr/lib/oracle/10.2.0.1/lib and the include files in > > /usr/include/oracle/10.2.0.1/client. How did you install the client? > > I used the .zip archives of Instantclient 10.2 and unpacked them in > /opt. > > Regards, > > -- > Nicolas Duboc <ni...@du...> > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. Downl= oad > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > cx-oracle-users mailing list > cx-...@li... > https://lists.sourceforge.net/lists/listinfo/cx-oracle-users > |