public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* pandoc 2.1.1 64 bit Ubuntu: Could not find module `Text.Pandoc.JSON'
@ 2018-01-31 13:43 Uwe Brauer
  2018-01-31 16:30 ` [installed from source] (was: pandoc 2.1.1 64 bit Ubuntu: Could not find module `Text.Pandoc.JSON') Uwe Brauer
       [not found] ` <87372mp2je.fsf-YB6e1s5WF/He5aOfsHch1g@public.gmane.org>
  0 siblings, 2 replies; 9+ messages in thread
From: Uwe Brauer @ 2018-01-31 13:43 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw


Hi

I just switched from Ubuntu 14.04 32bit to 64 bit and the per-user
installed pandoc did not work anymore, so I just downloaded and
installed the deb package from https://github.com/jgm/pandoc/releases/tag/2.1.1

That worked nicely

However I used a short but very useful hs script

Which looks like

,----
| import Text.Pandoc.JSON
|     
| main = toJSONFilter stripmath
|     where stripmath (Math _ _) = Str "FORMULA"
|           stripmath x = x
`----


And which I call

pandoc file  -t json | /home/oub/ALLES/HGs/scripts/stripmath | pandoc -f json -t plain -o file2

However when I do that I obtain


/home/oub/ALLES/HGs/scripts/stripmath: error while loading shared libraries: libgmp.so.10: cannot open shared object file: No such file or directory
JSON parse error


That is strange since  libgmp.so.10 is installed but now in 
/usr/lib/x86_64-linux-gnu/libgmp.so.10


So I should recompile that script I presume


Which I compiled via 

ghc --make stripmath.hs

But then I obtain
stripmath.hs:1:8:
    Could not find module `Text.Pandoc.JSON'
    Use -v to see a list of the files searched for.

Any help would be strongly appreciated

Uwe Brauer 


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

end of thread, other threads:[~2018-02-01 17:28 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-31 13:43 pandoc 2.1.1 64 bit Ubuntu: Could not find module `Text.Pandoc.JSON' Uwe Brauer
2018-01-31 16:30 ` [installed from source] (was: pandoc 2.1.1 64 bit Ubuntu: Could not find module `Text.Pandoc.JSON') Uwe Brauer
     [not found]   ` <87y3keng85.fsf-YB6e1s5WF/He5aOfsHch1g@public.gmane.org>
2018-01-31 17:54     ` John MacFarlane
2018-01-31 19:03       ` Uwe Brauer
     [not found] ` <87372mp2je.fsf-YB6e1s5WF/He5aOfsHch1g@public.gmane.org>
2018-01-31 17:54   ` pandoc 2.1.1 64 bit Ubuntu: Could not find module `Text.Pandoc.JSON' John MacFarlane
2018-01-31 19:04     ` Uwe Brauer
     [not found]       ` <87po5ponnx.fsf-YB6e1s5WF/He5aOfsHch1g@public.gmane.org>
2018-01-31 21:41         ` John MACFARLANE
2018-02-01  8:04           ` Uwe Brauer
     [not found]             ` <877erxjfuq.fsf-YB6e1s5WF/He5aOfsHch1g@public.gmane.org>
2018-02-01 17:28               ` John MACFARLANE

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