469,609 Members | 2,217 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,609 developers. It's quick & easy.

FreeBSD + Python + Oracle

Hello python-list,
is anybody has any success in taking this components live together? I
need to access remote Oracle 9i from freebsd 6.2 machine using python
2.4.4. Thanks in advance for answer.
Nov 21 '06 #1
1 2676
On 2006-11-21, Vyacheslav Sotnikov <bs********@rambler.ruwrote:
is anybody has any success in taking this components live together? I
need to access remote Oracle 9i from freebsd 6.2 machine using python
2.4.4. Thanks in advance for answer.
Yes, I've done this before. You'll have to run Python on FreeBSD but
using the Linux ABI ("Linuxulator" or "Linux emulation"). It's a bit
of a pain to set up, but it works well after that.

The basic procedure is:

- Load the linux module and install the linux-base and -devtools ports

- Install the Linux Oracle client and get it working enough that you
can run sqlplus

- Compile Python for the Linux ABI (you'll have to install all the
appropriate linux libraries if you need extension modules like
gzip, readline, etc.)

- Compile the Oracle extension modules. I've successfully used
DCOracle2 and cx_Oracle in this scenario.

That should be it, but it's been a while since I had to do it and I
might've missed some steps.

All of the above is okay if you want to run FreeBSD because you like
FreeBSD; it doesn't help if you want to do it because you need to use
some library that's only available for FreeBSD. In that case, you can
probably manage some kind of IPC between Linux-Python-on-FreeBSD and
FreeBSD-Python-on-FreeBSD.
Nov 21 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

13 posts views Thread by Uwe Mayer | last post: by
4 posts views Thread by Ksenia Marasanova | last post: by
1 post views Thread by spanov | last post: by
4 posts views Thread by robert | last post: by
2 posts views Thread by Ruslan A Dautkhanov | last post: by
reply views Thread by Solution2021 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.