ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* sql / swiglib doesnt find lib
@ 2017-10-01 21:47 Michael Eidenbenz
  2017-10-02  7:29 ` Hans Hagen
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Eidenbenz @ 2017-10-01 21:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hello,

I'm experimenting with the SQL interface in context.
My testfile compiles with: utilities.sql.setmethod("client"), but I don't manage to setup the swiglib method.

Following the instruction described in swiglib-mkiv.pdf,
I compiled the mysql library for osx, and put it into: context/tex/texmf-osx-64/bin/lib/luatex/lua/swiglib/mysql/core.dylib

But I get this error:
swiglib         > unknown: 'swiglib.mysql.core'

my texmf.cnf has the line
CLUAINPUTS     = .;$SELFAUTOLOC/lib/{$progname,$engine,}/lua//

Thanks!
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: sql / swiglib doesnt find lib
  2017-10-01 21:47 sql / swiglib doesnt find lib Michael Eidenbenz
@ 2017-10-02  7:29 ` Hans Hagen
  2017-10-02  8:26   ` Michael Eidenbenz
  0 siblings, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2017-10-02  7:29 UTC (permalink / raw)
  To: ntg-context

On 10/1/2017 11:47 PM, Michael Eidenbenz wrote:
> Hello,
> 
> I'm experimenting with the SQL interface in context.
> My testfile compiles with: utilities.sql.setmethod("client"), but I don't manage to setup the swiglib method.
> 
> Following the instruction described in swiglib-mkiv.pdf,
> I compiled the mysql library for osx, and put it into: context/tex/texmf-osx-64/bin/lib/luatex/lua/swiglib/mysql/core.dylib
> 
> But I get this error:
> swiglib         > unknown: 'swiglib.mysql.core'
> 
> my texmf.cnf has the line
> CLUAINPUTS     = .;$SELFAUTOLOC/lib/{$progname,$engine,}/lua//
and how about 'library' (using the normal sql library)

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: sql / swiglib doesnt find lib
  2017-10-02  7:29 ` Hans Hagen
@ 2017-10-02  8:26   ` Michael Eidenbenz
  2017-10-02  8:38     ` Hans Hagen
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Eidenbenz @ 2017-10-02  8:26 UTC (permalink / raw)
  To: mailing list for ConTeXt users

this doesnt work either.
Do I haven't to install the luasql-mysql module?

...exp/tex/texmf-context/tex/context/base/mkiv/util-lib.lua:246: module 'luasql.mysql' not found:
	no field package.preload['luasql.mysql']
	no file '/usr/local/share/lua/5.2/luasql/mysql.lua'
	no file '/usr/local/share/lua/5.2/luasql/mysql/init.lua'
	no file '/usr/local/lib/lua/5.2/luasql/mysql.lua'
	no file '/usr/local/lib/lua/5.2/luasql/mysql/init.lua'
	no file './luasql/mysql.lua'
	no file '/usr/local/lib/lua/5.2/luasql/mysql.so'
	no file '/usr/local/lib/lua/5.2/loadall.so'
	no file './luasql/mysql.so'
	no file '/usr/local/lib/lua/5.2/luasql.so'
	no file '/usr/local/lib/lua/5.2/loadall.so'
	no file './luasql.so'
stack traceback:
	[C]: in function 'savedrequire'
	...exp/tex/texmf-context/tex/context/base/mkiv/util-lib.lua:246: in function 'require'
	...f-context/tex/context/base/mkiv/util-sql-imp-library.lua:74: in main chunk
	[C]: in function 'savedrequire'
	...exp/tex/texmf-context/tex/context/base/mkiv/util-lib.lua:246: in function 'require'
	...exp/tex/texmf-context/tex/context/base/mkiv/util-sql.lua:114: in function '__index'
	...exp/tex/texmf-context/tex/context/base/mkiv/util-sql.lua:288: in function 'execute'
	[ctxlua]:19: in main chunk




> On 02 Oct 2017, at 09:29, Hans Hagen <pragma@wxs.nl> wrote:
> 
> On 10/1/2017 11:47 PM, Michael Eidenbenz wrote:
>> Hello,
>> I'm experimenting with the SQL interface in context.
>> My testfile compiles with: utilities.sql.setmethod("client"), but I don't manage to setup the swiglib method.
>> Following the instruction described in swiglib-mkiv.pdf,
>> I compiled the mysql library for osx, and put it into: context/tex/texmf-osx-64/bin/lib/luatex/lua/swiglib/mysql/core.dylib
>> But I get this error:
>> swiglib         > unknown: 'swiglib.mysql.core'
>> my texmf.cnf has the line
>> CLUAINPUTS     = .;$SELFAUTOLOC/lib/{$progname,$engine,}/lua//
> and how about 'library' (using the normal sql library)
> 
> Hans
> 
> 
> -----------------------------------------------------------------
>                                          Hans Hagen | PRAGMA ADE
>              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>       tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -----------------------------------------------------------------
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: sql / swiglib doesnt find lib
  2017-10-02  8:26   ` Michael Eidenbenz
@ 2017-10-02  8:38     ` Hans Hagen
  2017-10-02  9:03       ` Michael Eidenbenz
  0 siblings, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2017-10-02  8:38 UTC (permalink / raw)
  To: ntg-context

On 10/2/2017 10:26 AM, Michael Eidenbenz wrote:
> this doesnt work either.
> Do I haven't to install the luasql-mysql module?
> 
> ...exp/tex/texmf-context/tex/context/base/mkiv/util-lib.lua:246: module 'luasql.mysql' not found:

yes but another alternative that copuld work is installing th enormal 
mysql libraries and then use the 'ffi' method (works on on windows and 
linux)

Hans




-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: sql / swiglib doesnt find lib
  2017-10-02  8:38     ` Hans Hagen
@ 2017-10-02  9:03       ` Michael Eidenbenz
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Eidenbenz @ 2017-10-02  9:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users

ffi does look better. 
but i cant test right now, because I have no access to my dbserver.

what about swiglib method?
I compiled and installed the library but luatex doesnt find it.
is there a way to check the search path of luatex?

thanks michael


> On 02 Oct 2017, at 10:38, Hans Hagen <pragma@wxs.nl> wrote:
> 
> On 10/2/2017 10:26 AM, Michael Eidenbenz wrote:
>> this doesnt work either.
>> Do I haven't to install the luasql-mysql module?
>> ...exp/tex/texmf-context/tex/context/base/mkiv/util-lib.lua:246: module 'luasql.mysql' not found:
> 
> yes but another alternative that copuld work is installing th enormal mysql libraries and then use the 'ffi' method (works on on windows and linux)
> 
> Hans
> 
> 
> 
> 
> -----------------------------------------------------------------
>                                          Hans Hagen | PRAGMA ADE
>              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>       tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -----------------------------------------------------------------
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-10-02  9:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-01 21:47 sql / swiglib doesnt find lib Michael Eidenbenz
2017-10-02  7:29 ` Hans Hagen
2017-10-02  8:26   ` Michael Eidenbenz
2017-10-02  8:38     ` Hans Hagen
2017-10-02  9:03       ` Michael Eidenbenz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).