Malte,
"ldd" is your friend. Use ldd with revdb.so and dbmysql.so to check for
missing libraries. If you are trying to connect to some other database
instead of mysql, then use the driver for that db type. An example from my
server:
[root@vps livecode-server]# ldd drivers/dbmysql.so
linux-gate.so.1 => (0x00f09000)
libpthread.so.0 => /lib/libpthread.so.0 (0x0013d000)
libdl.so.2 => /lib/libdl.so.2 (0x00248000)
libm.so.6 => /lib/libm.so.6 (0x00ced000)
libc.so.6 => /lib/libc.so.6 (0x0024c000)
/lib/ld-linux.so.2 (0x00aba000)
[root@vps livecode-server]# ldd externals/revdb.so
linux-gate.so.1 => (0x00eec000)
libdl.so.2 => /lib/libdl.so.2 (0x00327000)
libc.so.6 => /lib/libc.so.6 (0x007ef000)
/lib/ld-linux.so.2 (0x00aba000)
=)
On Fri, Nov 25, 2011 at 12:20 PM, Mike Bonner <[email protected]> wrote:
> It was revopendatabases() (plural) that was being used to test I think,
> which doesn't take params.
>
> Of course now that I think about it, is the server external identical to
> the desktop? If not, maybe revopendatabases() is broke? I need to get
> things fired up again and try it.
>
> 2011/11/25 Björnke von Gierke <[email protected]>
>
> > I'm not 100% sure, but when using invalid syntax with external functions,
> > you get the same error as when using them when no externals are loaded
> (for
> > standalones at least). so just issuing "revOpenDatabase()" with invalid
> > params like that, you won't actually find out anything at all.
> >
> > So the question is, how to find out wether an external is loaded? Sadly
> > that's extremely hard to do reliably. It's actually easier to do a fake
> db
> > call that ought to work, for example using this code:
> >
> > try
> > revopendatabase("sqlite","doesRunOrNot.sqlite",,,)
> > --make sure your process has writing rights for the files position
> > end try
> > if there is no file "doesRunOrNot.sqlite" then
> > put "OH NOES!!!"
> > end if
> >
> > The only other way i know is to find out all mainstacks, and all their
> > substacks, then query each for their externals or externalCommands.
> >
> > I wish there where an application space externalCommands, because after
> > all, externals _are_ application wide, and not bound to a single stack in
> > function. Especially with server and the way externals work on mobile
> > platforms, where they're bound to the home stack (I think, maybe someone
> > can test that).
> >
> >
> _______________________________________________
> use-livecode mailing list
> [email protected]
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
--
http://www.andregarzia.com -- All We Do Is Code.
http://fon.nu -- minimalist url shortening service.
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode