Quantcast

Re: Installing Oracle Client 10g on FreeBSD

classic Classic list List threaded Threaded
17 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Installing Oracle Client 10g on FreeBSD

martinko-2
Mike Friedman wrote:

> I'm running FreeBSD 5.4-RELEASE and I want to run a current Oracle
> client-only with encryption support.
>
> First, I installed the Oracle client port, which represents Oracle 7.
> But my database support person tells me that's quite old and, in fact,
> he couldn't be sure it would work (especially the encryption part) with
> the Oracle database I'd be using (which he helps support).  And I was
> getting some strange symptoms when I tested it.
>
> So, he recommended that I download the Oracle 10g Client for Linux.
> Since my FreeBSD system is configured for Linux compatibility, I'm
> hoping this will work.  However, I can't even get the Installer to
> complete!  It keeps telling me that I may not have enough space in my
> root partition, even though I'm not trying to install into the root
> partition.  (The partition in which I'm installing has lots of space).
>
> In addition, I should say that the machine on which this Oracle client
> will be installed is not running X Windows.  This means I can't use the
> installation menus, so I've been running the Installation tool with a
> 'response file'.  The response file, however, doesn't have much
> flexibility.  In particular, when I'm told I may not have enough space,
> it asks me if I want to continue, but there's no way for me to reply
> 'yes' from the response file.
>
> In any case, based on the installation logs, it really looks like the
> Installation tool is looking at the root partition for how much space is
> available.
>
> I've found in the FreeBSD handbook an article on installing Oracle 8.0.
> But it appears that there have been changes with 10g.  Also, those
> instructions seem to assume a server install, so they talk about setting
> some shared memory values and other things that may not apply to me anyway.
>
> Do I have any other options?  I don't want to install the full Oracle
> package (client and server), just the client, so that I can write some
> perl scripts to query a remote Oracle database.
>
> Any suggestions?
>
> Thanks.
>
> Mike
>

Mike, have you considered linux-oracle-instantclient-* ports ?

_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-database
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Installing Oracle Client 10g on FreeBSD

Damian Wiest
On Tue, Oct 10, 2006 at 10:59:34PM +0200, martinko wrote:

> Mike Friedman wrote:
> > I'm running FreeBSD 5.4-RELEASE and I want to run a current Oracle
> > client-only with encryption support.
> >
> > First, I installed the Oracle client port, which represents Oracle 7.
> > But my database support person tells me that's quite old and, in fact,
> > he couldn't be sure it would work (especially the encryption part) with
> > the Oracle database I'd be using (which he helps support).  And I was
> > getting some strange symptoms when I tested it.
> >
> > So, he recommended that I download the Oracle 10g Client for Linux.
> > Since my FreeBSD system is configured for Linux compatibility, I'm
> > hoping this will work.  However, I can't even get the Installer to
> > complete!  It keeps telling me that I may not have enough space in my
> > root partition, even though I'm not trying to install into the root
> > partition.  (The partition in which I'm installing has lots of space).
> >
> > In addition, I should say that the machine on which this Oracle client
> > will be installed is not running X Windows.  This means I can't use the
> > installation menus, so I've been running the Installation tool with a
> > 'response file'.  The response file, however, doesn't have much
> > flexibility.  In particular, when I'm told I may not have enough space,
> > it asks me if I want to continue, but there's no way for me to reply
> > 'yes' from the response file.
> >
> > In any case, based on the installation logs, it really looks like the
> > Installation tool is looking at the root partition for how much space is
> > available.
> >
> > I've found in the FreeBSD handbook an article on installing Oracle 8.0.
> > But it appears that there have been changes with 10g.  Also, those
> > instructions seem to assume a server install, so they talk about setting
> > some shared memory values and other things that may not apply to me anyway.
> >
> > Do I have any other options?  I don't want to install the full Oracle
> > package (client and server), just the client, so that I can write some
> > perl scripts to query a remote Oracle database.
> >
> > Any suggestions?
> >
> > Thanks.
> >
> > Mike
> >
>
> Mike, have you considered linux-oracle-instantclient-* ports ?

If all you want to do is use Perl to access the database, then why are
you bothering with Oracle's client software?  Just use the CPAN module
to build and install DBD::Oracle.

Just curious, but how were you able to perform a silent install wihout
a frame buffer?  I ran into this problem installing Oracle 9i, but used
xvfb as a workaround.

-Damian
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-database
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Installing Oracle Client 10g on FreeBSD

Scott T. Hildreth-4
On Tue, 2006-10-10 at 17:09 -0500, Damian Wiest wrote:

> On Tue, Oct 10, 2006 at 10:59:34PM +0200, martinko wrote:
> > Mike Friedman wrote:
> > > I'm running FreeBSD 5.4-RELEASE and I want to run a current Oracle
> > > client-only with encryption support.
> > >
> > > First, I installed the Oracle client port, which represents Oracle 7.
> > > But my database support person tells me that's quite old and, in fact,
> > > he couldn't be sure it would work (especially the encryption part) with
> > > the Oracle database I'd be using (which he helps support).  And I was
> > > getting some strange symptoms when I tested it.
> > >
> > > So, he recommended that I download the Oracle 10g Client for Linux.
> > > Since my FreeBSD system is configured for Linux compatibility, I'm
> > > hoping this will work.  However, I can't even get the Installer to
> > > complete!  It keeps telling me that I may not have enough space in my
> > > root partition, even though I'm not trying to install into the root
> > > partition.  (The partition in which I'm installing has lots of space).
> > >
> > > In addition, I should say that the machine on which this Oracle client
> > > will be installed is not running X Windows.  This means I can't use the
> > > installation menus, so I've been running the Installation tool with a
> > > 'response file'.  The response file, however, doesn't have much
> > > flexibility.  In particular, when I'm told I may not have enough space,
> > > it asks me if I want to continue, but there's no way for me to reply
> > > 'yes' from the response file.
> > >
> > > In any case, based on the installation logs, it really looks like the
> > > Installation tool is looking at the root partition for how much space is
> > > available.
> > >
> > > I've found in the FreeBSD handbook an article on installing Oracle 8.0.
> > > But it appears that there have been changes with 10g.  Also, those
> > > instructions seem to assume a server install, so they talk about setting
> > > some shared memory values and other things that may not apply to me anyway.
> > >
> > > Do I have any other options?  I don't want to install the full Oracle
> > > package (client and server), just the client, so that I can write some
> > > perl scripts to query a remote Oracle database.
> > >
> > > Any suggestions?
> > >
> > > Thanks.
> > >
> > > Mike
> > >
> >
> > Mike, have you considered linux-oracle-instantclient-* ports ?
>
> If all you want to do is use Perl to access the database, then why are
> you bothering with Oracle's client software?  Just use the CPAN module
> to build and install DBD::Oracle.

   He can't, DBD::Oracle uses oci underneath so he needs the Oracle client to get the shared
   libraries.   Mike you also need to compile or install a linux perl and then install DBI & DBD::Oracle
   with the linux perl.  You could use DBD::Proxy instead of installing DBD::Oracle.  It installed
    with DBI.  Type 'perldoc DBD::Proxy' to see the docs.  If you need help, you can email me
   or join the [hidden email].


>
> Just curious, but how were you able to perform a silent install wihout
> a frame buffer?  I ran into this problem installing Oracle 9i, but used
> xvfb as a workaround.
>
> -Damian
> _______________________________________________
> [hidden email] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-database
> To unsubscribe, send any mail to "[hidden email]"
--
Scott T. Hildreth <[hidden email]>
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-database
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Installing Oracle Client 10g on FreeBSD

martin hudec
Hello,

Scott T. Hildreth wrote:
>    He can't, DBD::Oracle uses oci underneath so he needs the Oracle client to get the shared
>    libraries.   Mike you also need to compile or install a linux perl and then install DBI & DBD::Oracle
>    with the linux perl.  You could use DBD::Proxy instead of installing DBD::Oracle.  It installed
>     with DBI.  Type 'perldoc DBD::Proxy' to see the docs.  If you need help, you can email me
>    or join the [hidden email].

Not fully correct - when I wanted to use DBD::Oracle, I did not need to
install linux-perl - just instantclient (linux compatibility enabled) as
Martinko mentioned. And it worked. And DBD::Oracle has been used with
native perl.


Martin
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-database
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Installing Oracle Client 10g on FreeBSD

Scott T. Hildreth-2
On Sun, 2006-10-15 at 11:30 +0200, Martin Hudec wrote:

> Hello,
>
> Scott T. Hildreth wrote:
> >    He can't, DBD::Oracle uses oci underneath so he needs the Oracle client to get the shared
> >    libraries.   Mike you also need to compile or install a linux perl and then install DBI & DBD::Oracle
> >    with the linux perl.  You could use DBD::Proxy instead of installing DBD::Oracle.  It installed
> >     with DBI.  Type 'perldoc DBD::Proxy' to see the docs.  If you need help, you can email me
> >    or join the [hidden email].
>
> Not fully correct - when I wanted to use DBD::Oracle, I did not need to
> install linux-perl - just instantclient (linux compatibility enabled) as
> Martinko mentioned. And it worked. And DBD::Oracle has been used with
> native perl.

  Interesting, I have not used the instantclient.  I always have a full
  Oracle install, since I need the database.  I will try that,
  DBD::Oracle must not be linking with the libcltnsh.so.


>
>
> Martin
> _______________________________________________
> [hidden email] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-database
> To unsubscribe, send any mail to "[hidden email]"
--
Scott T. Hildreth <[hidden email]>
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-database
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Installing Oracle Client 10g on FreeBSD

Vladimir Terziev-2

        I'm also interested of mixing native FreeBSD libraries and Linux once, if it's possible ...

        I tryed to install a DBD::Oracle module with natively build FreeBSD perl and Linux Oracle Instantclient. After some hacking of DBD::Oracle's make file, i managed to build native Oracle.so linked against Instantclient's libcltnsh.so library.

        When i tryed "use DBD::Oracle" in a perl script i got "Segmentation fault".
        I don't think it's possible to intermix native FreeBSD libraries and Linux once used by a native FreeBSD executable.

                Vladimir


On Mon, 16 Oct 2006 08:55:45 -0500
"Scott T. Hildreth" <[hidden email]> wrote:

> On Sun, 2006-10-15 at 11:30 +0200, Martin Hudec wrote:
> > Hello,
> >
> > Scott T. Hildreth wrote:
> > >    He can't, DBD::Oracle uses oci underneath so he needs the Oracle client to get the shared
> > >    libraries.   Mike you also need to compile or install a linux perl and then install DBI & DBD::Oracle
> > >    with the linux perl.  You could use DBD::Proxy instead of installing DBD::Oracle.  It installed
> > >     with DBI.  Type 'perldoc DBD::Proxy' to see the docs.  If you need help, you can email me
> > >    or join the [hidden email].
> >
> > Not fully correct - when I wanted to use DBD::Oracle, I did not need to
> > install linux-perl - just instantclient (linux compatibility enabled) as
> > Martinko mentioned. And it worked. And DBD::Oracle has been used with
> > native perl.
>
>   Interesting, I have not used the instantclient.  I always have a full
>   Oracle install, since I need the database.  I will try that,
>   DBD::Oracle must not be linking with the libcltnsh.so.
>
>
> >
> >
> > Martin
> > _______________________________________________
> > [hidden email] mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-database
> > To unsubscribe, send any mail to "[hidden email]"
> --
> Scott T. Hildreth <[hidden email]>
> _______________________________________________
> [hidden email] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-database
> To unsubscribe, send any mail to "[hidden email]"
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-database
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Installing Oracle Client 10g on FreeBSD

Scott T. Hildreth
On Mon, 2006-10-16 at 17:18 +0300, Vladimir Terziev wrote:
> I'm also interested of mixing native FreeBSD libraries and Linux once, if it's possible ...
>
> I tryed to install a DBD::Oracle module with natively build FreeBSD perl and Linux Oracle Instantclient. After some hacking of DBD::Oracle's make file, i managed to build native Oracle.so linked against Instantclient's libcltnsh.so library.
>
> When i tryed "use DBD::Oracle" in a perl script i got "Segmentation fault".
> I don't think it's possible to intermix native FreeBSD libraries and Linux once used by a native FreeBSD executable.

          I didn't either, but I am going to try. :-)

          Martin, how did you do this?


>
> Vladimir
>
>
> On Mon, 16 Oct 2006 08:55:45 -0500
> "Scott T. Hildreth" <[hidden email]> wrote:
>
> > On Sun, 2006-10-15 at 11:30 +0200, Martin Hudec wrote:
> > > Hello,
> > >
> > > Scott T. Hildreth wrote:
> > > >    He can't, DBD::Oracle uses oci underneath so he needs the Oracle client to get the shared
> > > >    libraries.   Mike you also need to compile or install a linux perl and then install DBI & DBD::Oracle
> > > >    with the linux perl.  You could use DBD::Proxy instead of installing DBD::Oracle.  It installed
> > > >     with DBI.  Type 'perldoc DBD::Proxy' to see the docs.  If you need help, you can email me
> > > >    or join the [hidden email].
> > >
> > > Not fully correct - when I wanted to use DBD::Oracle, I did not need to
> > > install linux-perl - just instantclient (linux compatibility enabled) as
> > > Martinko mentioned. And it worked. And DBD::Oracle has been used with
> > > native perl.
> >
> >   Interesting, I have not used the instantclient.  I always have a full
> >   Oracle install, since I need the database.  I will try that,
> >   DBD::Oracle must not be linking with the libcltnsh.so.
> >
> >
> > >
> > >
> > > Martin
> > > _______________________________________________
> > > [hidden email] mailing list
> > > http://lists.freebsd.org/mailman/listinfo/freebsd-database
> > > To unsubscribe, send any mail to "[hidden email]"
> > --
> > Scott T. Hildreth <[hidden email]>
> > _______________________________________________
> > [hidden email] mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-database
> > To unsubscribe, send any mail to "[hidden email]"
--
Scott T. Hildreth <[hidden email]>
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-database
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Installing Oracle Client 10g on FreeBSD

martin hudec
Hello,


Scott T. Hildreth wrote:
>           I didn't either, but I am going to try. :-)
>
>           Martin, how did you do this?

Well, as I've already had linux compatibility present in the system,
I've installed instantclient for linux and built DBD::Oracle.

Currently I have it uninstalled as it is no longer needed for me, but I
can try it and provide with instructions.

DBD::Oracle was being used by CMS system of my previous employer, and
that CMS was based on native perl stuff, not linux perl stuff.


Martin
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-database
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Installing Oracle Client 10g on FreeBSD

Vladimir Terziev-2

        I'll be very thankful if you provide working instructions how to intermix FreeBSD and Linux libraries.

        Thanks in advance!

                Vladimir

On Mon, 16 Oct 2006 17:51:01 +0200
Martin Hudec <[hidden email]> wrote:

> Hello,
>
>
> Scott T. Hildreth wrote:
> >           I didn't either, but I am going to try. :-)
> >
> >           Martin, how did you do this?
>
> Well, as I've already had linux compatibility present in the system,
> I've installed instantclient for linux and built DBD::Oracle.
>
> Currently I have it uninstalled as it is no longer needed for me, but I
> can try it and provide with instructions.
>
> DBD::Oracle was being used by CMS system of my previous employer, and
> that CMS was based on native perl stuff, not linux perl stuff.
>
>
> Martin
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-database
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Installing Oracle Client 10g on FreeBSD

martin hudec
Hello Vladimir,

Vladimir Terziev wrote:
> I'll be very thankful if you provide working instructions how to intermix FreeBSD and Linux libraries.
> Thanks in advance!

I sense bit of irony here, but I hope I just have wrong feeling :).
Mixing BSD and Linux libs? Well - what do you say on using native
Firefox with linux flash plugin? Works too.

I will try to do it, and let's hope I'll be able to get oracle
connection to test simple perl script as without it I am bit lost (I
used only client stuff, not full oracle database).

Martin
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-database
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Installing Oracle Client 10g on FreeBSD

Boris Samorodov
On Tue, 17 Oct 2006 00:00:57 +0200 Martin Hudec wrote:
> Vladimir Terziev wrote:
> > I'll be very thankful if you provide working instructions how to intermix FreeBSD and Linux libraries.
> > Thanks in advance!

> I sense bit of irony here, but I hope I just have wrong feeling :).
> Mixing BSD and Linux libs? Well - what do you say on using native
> Firefox with linux flash plugin? Works too.

> I will try to do it, and let's hope I'll be able to get oracle
> connection to test simple perl script as without it I am bit lost (I
> used only client stuff, not full oracle database).

Just a note: you can't mix FreeBSD and linux libraries at one
application. Those processes may interact via stdin/stdout, sockets
etc. just fine. But if you try to mix _libraries_ you'll get EFF OS
ABI errors.


WBR
--
Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone & Internet SP
FreeBSD committer, http://www.FreeBSD.org The Power To Serve
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-database
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Installing Oracle Client 10g on FreeBSD

Vladimir Terziev-2

        No irony, i was serious!

        According to my experience, Boris is right, that's way i was serious.

        Using flash plugin with native Firefox is based on flashplugin-wrapper. As i know there is no such wrapper for Oracle Linux instantclient, that's way i'm interested to know a new solution, if any.

                Vladimir


On Tue, 17 Oct 2006 09:44:56 +0400
Boris Samorodov <[hidden email]> wrote:

> On Tue, 17 Oct 2006 00:00:57 +0200 Martin Hudec wrote:
> > Vladimir Terziev wrote:
> > > I'll be very thankful if you provide working instructions how to intermix FreeBSD and Linux libraries.
> > > Thanks in advance!
>
> > I sense bit of irony here, but I hope I just have wrong feeling :).
> > Mixing BSD and Linux libs? Well - what do you say on using native
> > Firefox with linux flash plugin? Works too.
>
> > I will try to do it, and let's hope I'll be able to get oracle
> > connection to test simple perl script as without it I am bit lost (I
> > used only client stuff, not full oracle database).
>
> Just a note: you can't mix FreeBSD and linux libraries at one
> application. Those processes may interact via stdin/stdout, sockets
> etc. just fine. But if you try to mix _libraries_ you'll get EFF OS
> ABI errors.
>
>
> WBR
> --
> Boris Samorodov (bsam)
> Research Engineer, http://www.ipt.ru Telephone & Internet SP
> FreeBSD committer, http://www.FreeBSD.org The Power To Serve
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-database
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Installing Oracle Client 10g on FreeBSD

Joerg Sonnenberger
In reply to this post by Boris Samorodov
On Tue, Oct 17, 2006 at 09:44:56AM +0400, Boris Samorodov wrote:
> Just a note: you can't mix FreeBSD and linux libraries at one
> application. Those processes may interact via stdin/stdout, sockets
> etc. just fine. But if you try to mix _libraries_ you'll get EFF OS
> ABI errors.

Please carefully read again what he said. Yes, it is possible. Yes, it
is evil. Yes, it has to be done with some goat sacrifices and lots of
care. But it is certainly possible.

Joerg
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-database
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Installing Oracle Client 10g on FreeBSD

Oliver Fromme
In reply to this post by martinko-2
Vladimir Terziev wrote:
 > I'll be very thankful if you provide working instructions how
 > to intermix FreeBSD and Linux libraries.

Depends on what you mean by "intermix".

You cannot link FreeBSD and Linux code together, except
under very controlled circumstances (e.g. if the Linux lib
doesn't use any syscalls, then it is possible to link it
to FreeBSD code).  That's because _all_ code of a process
has to use the same ABI, and that's either the FreeBSD ABI
or the Linux ABI, but you cannot have both at the same
time.  Unless, of course, you write some glue code, e.g.
a wrapper library that does some magic things, but that's
usually not worth the effort.  It's easier to just re-
compile the whole thing for a common ABI (e.g. for the
Linux ABI if you don't have source code for the Linux lib).

If by "intermix" you mean that they communicate with each
other (e.g. via SysV IPC, sockets, FIFOs, whatever), but
they run within different process images -- that's not a
problem at all.

Best regards
   Oliver

--
Oliver Fromme,  secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing
Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.

It's trivial to make fun of Microsoft products,
but it takes a real man to make them work,
and a God to make them do anything useful.
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-database
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Installing Oracle Client 10g on FreeBSD

Vladimir Terziev-2

        The discussion here is about mixing native FreeBSD perl and Oracle Linux instant client libraries, not a general discussion about so-called "linux emulation" under FreeBSD.

        If someone knows how to mix them, then i'll be really thankful to him/her for the directions how to do it. General comments about interoperation of FreeBSD native code and Linux libraries to do solve the issue.

                Vladimir


On Tue, 17 Oct 2006 09:58:53 +0200 (CEST)
Oliver Fromme <[hidden email]> wrote:

> Vladimir Terziev wrote:
>  > I'll be very thankful if you provide working instructions how
>  > to intermix FreeBSD and Linux libraries.
>
> Depends on what you mean by "intermix".
>
> You cannot link FreeBSD and Linux code together, except
> under very controlled circumstances (e.g. if the Linux lib
> doesn't use any syscalls, then it is possible to link it
> to FreeBSD code).  That's because _all_ code of a process
> has to use the same ABI, and that's either the FreeBSD ABI
> or the Linux ABI, but you cannot have both at the same
> time.  Unless, of course, you write some glue code, e.g.
> a wrapper library that does some magic things, but that's
> usually not worth the effort.  It's easier to just re-
> compile the whole thing for a common ABI (e.g. for the
> Linux ABI if you don't have source code for the Linux lib).
>
> If by "intermix" you mean that they communicate with each
> other (e.g. via SysV IPC, sockets, FIFOs, whatever), but
> they run within different process images -- that's not a
> problem at all.
>
> Best regards
>    Oliver
>
> --
> Oliver Fromme,  secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing
> Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd
> Any opinions expressed in this message may be personal to the author
> and may not necessarily reflect the opinions of secnetix in any way.
>
> It's trivial to make fun of Microsoft products,
> but it takes a real man to make them work,
> and a God to make them do anything useful.
> _______________________________________________
> [hidden email] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-database
> To unsubscribe, send any mail to "[hidden email]"
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-database
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Installing Oracle Client 10g on FreeBSD

Oliver Fromme
Vladimir Terziev wrote:
 > The discussion here is about mixing native FreeBSD perl
 > and Oracle Linux instant client libraries

I think I've already answered that question.

 > not a general
 > discussion about so-called "linux emulation" under FreeBSD.

But that "general discussion" also answered your specific
question.  It was my intention to explain a bit of the
background, so you can see _why_ it is not possible (or
at least very difficult) instead of asking over and over
again.

You cannot run object code for different ABIs within the
same process image, unless the code doesn't do any syscalls
(database libraries certainly require syscalls), or you
write some "wrapper" glue code that switches or translates
the ABI.  I doubt that anyone has done the latter, because
it's a very non-trivial task.  It is _much_ easier to
install Linux perl and be done with it (well, or install
the old Oracle8 FreeBSD client from the Ports if you don't
absolutely need to have the Oracle10 client).

Best regards
   Oliver

--
Oliver Fromme,  secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing
Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.

"anyone new to programming should be kept as far from C++ as
possible;  actually showing the stuff should be considered a
criminal offence" -- Jacek Generowicz
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-database
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Installing Oracle Client 10g on FreeBSD

Scott T. Hildreth-2
On Tue, 2006-10-17 at 12:46 +0200, Oliver Fromme wrote:
> Vladimir Terziev wrote:
>  > The discussion here is about mixing native FreeBSD perl
>  > and Oracle Linux instant client libraries
>
> I think I've already answered that question.

  Vladimir &  I both know or thought we knew that this is not
  possible, thus my post way back, indicating that one needs a
  linux-perl to compile DBD::Oracle.  Martin said he was able
  to compile a native DBD::Oracle using the instant client libraries.
  We were both curious on how he did that, without writing a
  wrapper.  


>
>  > not a general
>  > discussion about so-called "linux emulation" under FreeBSD.
>
> But that "general discussion" also answered your specific
> question.  It was my intention to explain a bit of the
> background, so you can see _why_ it is not possible (or
> at least very difficult) instead of asking over and over
> again.
>
> You cannot run object code for different ABIs within the
> same process image, unless the code doesn't do any syscalls
> (database libraries certainly require syscalls), or you
> write some "wrapper" glue code that switches or translates
> the ABI.  I doubt that anyone has done the latter, because
> it's a very non-trivial task.  It is _much_ easier to
> install Linux perl and be done with it (well, or install
> the old Oracle8 FreeBSD client from the Ports if you don't
> absolutely need to have the Oracle10 client).
>
> Best regards
>    Oliver
>
--
Scott T. Hildreth <[hidden email]>
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-database
To unsubscribe, send any mail to "[hidden email]"
Loading...