public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* [ Q ] Lua-filter: "Dynamic linking not supported" error when loading certain lua module(s)
@ 2019-07-08 12:44 K4zuki
       [not found] ` <4337b7eb-3ed7-4a70-a9f5-ecccc625c7d8-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: K4zuki @ 2019-07-08 12:44 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1831 bytes --]

Hello,

I am facing a little problem around lua and pre-compiled dynamic 
libraries(*.so).

On Ubuntu 18.04(bionic), I have installed '*lyaml*' and '*lfs*' modules 
through 'lua-yaml' and 'lua-filesystem' APT packages.
Pandoc version is *2.7.3*

When I try to load *lyaml* by simplest statement like following, Pandoc-lua 
raises error
```input
package.path = package.path .. ';/usr/share/lua/5.3/?.lua'
package.cpath = package.cpath .. ";/usr/lib/x86_64-linux-gnu/lua/5.3"
-- those 2 lines above are required to load 
local lyaml = require("lyaml")
```
---
```output
error loading module 'yaml' from file 
'/usr/lib/x86_64-linux-gnu/lua/5.3/yaml.so':
        Dynamic loading not supported
stack traceback:
        [C]: in ?
        [C]: in function 'require'
        /usr/share/lua/5.3/lyaml.lua:31: in main chunk
        [C]: in function 'require'
        ../lua/test.lua:5: in main chunk
```
*lfs* is similar like so:
```
error loading module 'lfs' from file 
'/usr/lib/x86_64-linux-gnu/lua/5.3/lfs.so':
        Dynamic loading not supported
stack traceback:
        [C]: in ?
        [C]: in function 'require'
        ../lua/test.lua:8: in main chunk
```

How can we solve this, or do we need to use static libs only?

Thanks && Regards,
Kazuki / K4zuki

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/4337b7eb-3ed7-4a70-a9f5-ecccc625c7d8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 4349 bytes --]

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

end of thread, other threads:[~2019-07-12 10:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-08 12:44 [ Q ] Lua-filter: "Dynamic linking not supported" error when loading certain lua module(s) K4zuki
     [not found] ` <4337b7eb-3ed7-4a70-a9f5-ecccc625c7d8-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-07-08 13:14   ` BP Jonsson
     [not found]     ` <CAFC_yuSiX5iPeh69vpy4bB9ZSYPB+BHtZEMJCykHMqgLyRMWJw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-07-08 18:41       ` K4zuki
     [not found]         ` <3922e409-02e2-4ba6-b172-20e3d5bf2d56-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-07-12 10:36           ` BPJ

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).