Board index » kylix » Deploy Kyllix / Apache DSO using DBClient unit

Deploy Kyllix / Apache DSO using DBClient unit


2005-09-22 11:48:58 AM
kylix0
I am attempting to deploy two Apache DSO's (written in Kylix3, being
deployed on Apache 2.0.51, Fedora FC2) to a web server machine that has
never had Kylix installed on it. Both apps use Firebird 1.5.2 and
dbExpress.
App1 works fine, including Firebird queries, etc.
App2 croaks on startup (WebModuleCreate) with an EInOutError I/O error
103. I have traced it to a statement that tries to create an object
(not in the main unit) that uses a TClientDataSet. This is the only
unit that uses Kylix's DBClient unit.
My assumption at this time is that the EInOutError is caused when
DBClient trys to dynamically load a .so that is not found.
But which one?
I have installed (in /usr/lib):
dbxres.en.1.0
libgds.so.1
libjs.borland.so
libmidas.so.1.0
libsqlib.so.1.0
and I have soft links set up to (eg) libmidas.so.1 and libmidas.so
I have also studied Rick Ross's excellent
www.rick-ross.com/papers/k3/k3deploy.html
What else am I missing?
Any help would be urgently appreciated.
Thanks!
Phil
 
 

Re:Deploy Kyllix / Apache DSO using DBClient unit

Hi folks,
This is a duplicate of a post to the borland.public.kylix.deployment
newsgroup. The last post to the newsgroup was on 5/2/2005 so I don't
have much hope that anyone is watching. So I hope that you'll forgive
me for copying it here.....
I am attempting to deploy two Apache DSO's (written in Kylix3, being
deployed on Apache 2.0.51, Fedora FC2) to a web server machine that has
never had Kylix installed on it. Both apps use Firebird 1.5.2 and
dbExpress.
App1 works fine, including Firebird queries, etc.
App2 croaks on startup (WebModuleCreate) with an EInOutError I/O error
103. I have traced it to a statement that tries to create an object
(not in the main unit) that uses a TClientDataSet. This is the only
unit that uses Kylix's DBClient unit.
My assumption at this time is that the EInOutError is caused when
DBClient trys to dynamically load a .so that is not found.
But which one?
I have installed (in /usr/lib):
dbxres.en.1.0
libgds.so.1
libjs.borland.so
libmidas.so.1.0
libsqlib.so.1.0
and I have soft links set up to (eg) libmidas.so.1 and libmidas.so
I have also studied Rick Ross's excellent
www.rick-ross.com/papers/k3/k3deploy.html
What else am I missing?
Any help would be urgently appreciated.
Thanks!
Phil
 

Re:Deploy Kyllix / Apache DSO using DBClient unit

Did you run ldd against the compiled dso to see exactly what the
dependencies are? Maybe you are pulling in QT somehow, it's possible
you have something in your uses that is pulling it in.
when I run ldd agains my DSO's that use Zeos I see this:
linux-gate.so.1 =>(0xffffe000)
libhttpd.so =>not found
libpthread.so.0 =>/lib/libpthread.so.0 (0x4001e000)
libdl.so.2 =>/lib/libdl.so.2 (0x40070000)
libc.so.6 =>/lib/libc.so.6 (0x40074000)
/lib/ld-linux.so.2 (0x40000000)
And these DSOs run fine on any server
have you checked into running something other than DBexpress i.e. Zeos?
Zeos is super stable on Linux, my DSOs have uptimes of hundreds of days
with thousands of hits per day.
Phil Henningsen wrote:
Quote

I am attempting to deploy two Apache DSO's (written in Kylix3, being
deployed on Apache 2.0.51, Fedora FC2) to a web server machine that has
never had Kylix installed on it. Both apps use Firebird 1.5.2 and
dbExpress.

--
Tony Caduto
www.amsoftwaredesign.com
Home of PG Lightning Admin for Postgresql 8.x
 

{smallsort}

Re:Deploy Kyllix / Apache DSO using DBClient unit

I need help badly.
I will pay for support.
Phil
Phil Henningsen wrote:
Quote
I am attempting to deploy two Apache DSO's (written in Kylix3, being
deployed on Apache 2.0.51, Fedora FC2) to a web server machine that has
never had Kylix installed on it. Both apps use Firebird 1.5.2 and
dbExpress.

App1 works fine, including Firebird queries, etc.

App2 croaks on startup (WebModuleCreate) with an EInOutError I/O error
103. I have traced it to a statement that tries to create an object
(not in the main unit) that uses a TClientDataSet. This is the only
unit that uses Kylix's DBClient unit.

My assumption at this time is that the EInOutError is caused when
DBClient trys to dynamically load a .so that is not found.

But which one?

I have installed (in /usr/lib):
dbxres.en.1.0
libgds.so.1
libjs.borland.so
libmidas.so.1.0
libsqlib.so.1.0

and I have soft links set up to (eg) libmidas.so.1 and libmidas.so

I have also studied Rick Ross's excellent
www.rick-ross.com/papers/k3/k3deploy.html

What else am I missing?

Any help would be urgently appreciated.

Thanks!

Phil
 

Re:Deploy Kyllix / Apache DSO using DBClient unit

Yes, I ran ldd. There was nothing "not found".
I am desperate for a solution. I will pay for support.
Phil
PS: converting to Zeos or AstaIO is a really drastic step (foe me)
when I truly believe that I'm missing just one dynamically loaded SO.
Tony Caduto wrote:
Quote
Did you run ldd against the compiled dso to see exactly what the
dependencies are? Maybe you are pulling in QT somehow, it's possible
you have something in your uses that is pulling it in.

when I run ldd agains my DSO's that use Zeos I see this:

linux-gate.so.1 =>(0xffffe000)
libhttpd.so =>not found
libpthread.so.0 =>/lib/libpthread.so.0 (0x4001e000)
libdl.so.2 =>/lib/libdl.so.2 (0x40070000)
libc.so.6 =>/lib/libc.so.6 (0x40074000)
/lib/ld-linux.so.2 (0x40000000)

And these DSOs run fine on any server

have you checked into running something other than DBexpress i.e. Zeos?

Zeos is super stable on Linux, my DSOs have uptimes of hundreds of days
with thousands of hits per day.


Phil Henningsen wrote:

>
>I am attempting to deploy two Apache DSO's (written in Kylix3, being
>deployed on Apache 2.0.51, Fedora FC2) to a web server machine that
>has never had Kylix installed on it. Both apps use Firebird 1.5.2 and
>dbExpress.
>

 

Re:Deploy Kyllix / Apache DSO using DBClient unit

Is it not the midas one? You need the midas libs with TClientdataset.
You can also compile a midas unit into your dll. It is documented in the
Delphi/Kylix developers guide.
Siegs
 

Re:Deploy Kyllix / Apache DSO using DBClient unit

Hi
I spent ages with Apache DSO /Kylix
I got all sorts of problems and in the end decided on using standalones.
Using Xvbf. I used apache to redirect the application to the correct
port.so http://host/myapp>http://host:8888
simon
"Phil Henningsen" < XXXX@XXXXX.COM >wrote in message
Quote
I am attempting to deploy two Apache DSO's (written in Kylix3, being
deployed on Apache 2.0.51, Fedora FC2) to a web server machine that has
never had Kylix installed on it. Both apps use Firebird 1.5.2 and
dbExpress.

App1 works fine, including Firebird queries, etc.

App2 croaks on startup (WebModuleCreate) with an EInOutError I/O error
103. I have traced it to a statement that tries to create an object
(not in the main unit) that uses a TClientDataSet. This is the only
unit that uses Kylix's DBClient unit.

My assumption at this time is that the EInOutError is caused when
DBClient trys to dynamically load a .so that is not found.

But which one?

I have installed (in /usr/lib):
dbxres.en.1.0
libgds.so.1
libjs.borland.so
libmidas.so.1.0
libsqlib.so.1.0

and I have soft links set up to (eg) libmidas.so.1 and libmidas.so

I have also studied Rick Ross's excellent
www.rick-ross.com/papers/k3/k3deploy.html

What else am I missing?

Any help would be urgently appreciated.

Thanks!

Phil
 

Re:Deploy Kyllix / Apache DSO using DBClient unit

Hoi Simon
You need to repost your message on the Borland news server to make
everybody (and Phil) see it.
Take a look here:
<tinyurl.com/8m5nw>
which links to
<delphi.wikicities.com/wiki/Delphi_Newsgroups>