From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29444 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: BPJ Newsgroups: gmane.text.pandoc Subject: Re: AW: compiling lpeg into pandoc Date: Tue, 2 Nov 2021 14:37:41 +0100 Message-ID: References: <87ee806loe.fsf@zeitkraut.de> <83dbc2c6dcbe49e49e00dac40b73eb65@unibe.ch> <878ry67p0o.fsf@zeitkraut.de> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000061d3dd05cfce66e0" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9051"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCWMVYEK54FRBMH6QSGAMGQEAEJ6COI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Nov 02 14:37:54 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-wr1-f61.google.com ([209.85.221.61]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mhtz8-0002BL-Cf for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 02 Nov 2021 14:37:54 +0100 Original-Received: by mail-wr1-f61.google.com with SMTP id d7-20020a5d6447000000b00186a113463dsf1852475wrw.10 for ; Tue, 02 Nov 2021 06:37:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1635860274; cv=pass; d=google.com; s=arc-20160816; b=laco8g1gJ7NNo+/vDIUcx0WZa5iTiEjVutrq0rbOUjjqKFIdSTruA/sDiDbWnwq9Yn 59kkHIIeTcI8iqjxKqAo7S7yEMSInexUOqDk+fXuBeJsKJNGFjMgVRdkr424Tx956OhY /DAw7A8UC4VuBg9ohM4eNecTpn+FWCE6dt5PeS76iFDWSVkPl/nQ8ejTdxaHKKAWrhVQ z0CQeyJfb7vqk90MPcVYkiih24DFNJYxgN7Phx6xbKlwlsJyZ/ZXJWB3cOVBdSDEseqj MdCuPPwji2OQyq0zf9swt8lPMNyjwjX8bsKcdG6Q9ldIPS5dX+u5YQrBNWcjBSx0DgjR bqhA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:to:subject:message-id:date :from:in-reply-to:references:mime-version:sender:dkim-signature :dkim-signature; bh=bNV2CUwqe4ts8BmSnfSugamqH8inM5yrdEt4qKeNLaY=; b=FEGz6RZDNBc+8saMbsX4lM/wAB+gjRiV90f2gvb9s4I5q//qTyj4Cev1OsBJ44t6nL gLf+dqNDroO66TUkWpZAaKRX3aLPxDH6IVyhu+gTVi8D4sn2LgHYDBsY4qXHVItToNod A5cZHDCfW7UrDqbEdyclsQZDMq+Iexy5FVmD1M5uQqpkN7T4vvzQkWHTGvcYwZrgVlne 927EUW7xr0huHud/xNKjh7FckDxOG7ARQJEU40GdxZpI2bGVCzYZSytaFTZgCfYki8EU Qx10/+7ATLz4WwM1EN47v3SVov/V/lE9MNKkIn9PxzbjgKEXcD2oNeUUcMy9Vn/Q1Sxi dALQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=DkCj0c5E; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::132 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:mime-version:references:in-reply-to:from:date:message-id :subject:to:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=bNV2CUwqe4ts8BmSnfSugamqH8inM5yrdEt4qKeNLaY=; b=Ef/EcF6EjKBfpRwzHDZijt968K+xpZyl7Nu0sw+SiBMVoETT91roife+rIiUw/hGmS r8nss938vthiSqDPZ+2fM6kB/YU9MFdw/YfPi9+skoc6EWGvhPjqrR2nmJbGm///avXt YlRc3UbD3wgHk46Lq4avIbP1NLVbR54NO0CJ54GP1zUxh9roBnefukIg05IkvQ7phWJL 2EIBfEu8HuOqlzrc0O6ZSkd3Q9SnDVTv78oMnmFwcOjehB4j5pYwcC/Znghw46G7FgqA Co5FkN3WOzzmJanvoNzi/+a/Kz3bApzhV26Q+cG52gH7gED2V1IoKYwlWlTzdr6h8ze5 h7Cg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=bNV2CUwqe4ts8BmSnfSugamqH8inM5yrdEt4qKeNLaY=; b=iaCLfii3lulT0BXiNxtVl8H2l3SZPA70j6ltHGDRKb4GRgrwZiB8a+ytQ12Qw0DBkX CZTkZCHpTZH7rMvGDifL0GAXDXHAD2SKkUHXV+Y/rsVlnUi+QBRz84E1zbBe3xrazlRf n3EriUVwwQOWf3TgS6V3CjoRlc4s3m+UeUlBlYZUsTBItq8TctjwjRGLUtzGKEqhexc7 6T0fgOVf7UYyqSJ/9Xip/ZQSQhjpt45eZnfGYTba8rwno/KlfTglGGiyuONAhjj2f8Oz PgdNoacfiuoeiiXohz+aTdiDDVY5nV4dYG4CM+mF3rBZpFjTup+Kqy9m9uXdRu4addrs s6yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:mime-version:references:in-reply-to:from :date:message-id:subject:to:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=bNV2CUwqe4ts8BmSnfSugamqH8inM5yrdEt4qKeNLaY=; b=KGP593jN1hx+/4Brer7aqeX0LgfKKFrOOZzlhABYkftQ9itq+Z/vP4Hr/m7e1F4aq3 D2sga3f3FwdoL14ySAcStKb/zc1qUqJoHKIlp9GAylPZgYAPsN6EZ3xCv6rdYPnbYh77 9vTryX9JA7n+9nBwEAsYSVaLvnJZdfgY9x56dFZrFD+o4/2PDFzKYWS2DjTTHE8QHFiJ 0Xvk6KxJN07/rwHEMSvmM49voOeMbfZ73He+qPGfAQtj1enEu/fn6dbThxw1bv/YkYrt GK+fjOQtYuXPlPeoCBBcsYwi/ZOsDNg6Bbo/n+gC6QZzIVLqNjDtymnLOa3v6J+inXgg 0C1A== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM530GXN06zpNOgwfDK8ehPoAda2i+Jb5DxTQtUk+uv+hgwVQ4gkur r8rNvZdqS7qbpqRzHF6ivns= X-Google-Smtp-Source: ABdhPJxGK8KBjEEkonJ7khbzF3e0uKpXmcF+46p/te4PAaAYSAhIZUMux21fiRltak2NpJPbz4Pvvg== X-Received: by 2002:a5d:6501:: with SMTP id x1mr18772276wru.390.1635860274082; Tue, 02 Nov 2021 06:37:54 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:adf:f1c2:: with SMTP id z2ls2496537wro.2.gmail; Tue, 02 Nov 2021 06:37:51 -0700 (PDT) X-Received: by 2002:adf:f708:: with SMTP id r8mr41093692wrp.198.1635860271885; Tue, 02 Nov 2021 06:37:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635860271; cv=none; d=google.com; s=arc-20160816; b=u1Kv6eHhJnH5Y0UsluXOb0jgSAtt6+HigXzRW0ilae47oDlNryb3vFdtFbaebldg5i DKYUFVIyUM3mkeLGxNcouC9vUsHoe+Y2k12fstSUsDLyPqq2+1Q0lybblrPvTRK47QVL BEtKsi4TMYqlQpMRu457wNWDsMwtqZPefYe/yTteO34bzt62j2jKrgFRvoQvjAE3ZUPW hdCP5Jm4gtHSEhk37IBRZGqnR9QQjRbKrRXViSwJqtpFECScH/e/Lr4yQpsUie92hohc iVX4qUxDLuXfVgIlC9zw83GfBMuYBOERb+wRrzhYsRfNemObYzWaWEKFD+lljCh9s3Nq wQ6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=fJxYD19Q/YEeU9Rt8vDr4R8H7lD6ptPfs3UjLCFJO6U=; b=P9bt7WmKQiuQYhTxqfM3fakD2ZeTc52Wu+5CFJOsDiLbxFPJSuqjAL/K3BRC/XWSkG EYLb7BLthpJVdG+i0+ZSHZjf+rLZk9ZamPY8OggzLM6F+h37uUnnclBSbBf97USwvh00 r/CZMHWTTRTlM0wDpMuLvWTfo6MZlEmsIAXG0mwfZuZRknTd6pzXV5tUPyneh/+FRHKe 3qN81W5/QGhY3mCjwjuPModFDnX/lS9wngF80P/9MVGw+Up9OnPUB2C9ChbZMrHba1xP wt3fa/NGRBZ7HbRl2b4OxHuT6YZ8BRO9pueE7YzQSw/KjqLkNMz/ujtcpycbeJwK4t06 uefg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=DkCj0c5E; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::132 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com. [2a00:1450:4864:20::132]) by gmr-mx.google.com with ESMTPS id j23si349643wms.0.2021.11.02.06.37.51 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 02 Nov 2021 06:37:51 -0700 (PDT) Received-SPF: pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::132 as permitted sender) client-ip=2a00:1450:4864:20::132; Original-Received: by mail-lf1-x132.google.com with SMTP id d21so3470406lfg.7 for ; Tue, 02 Nov 2021 06:37:51 -0700 (PDT) X-Received: by 2002:a05:6512:926:: with SMTP id f6mr34502775lft.495.1635860271451; Tue, 02 Nov 2021 06:37:51 -0700 (PDT) In-Reply-To: X-Original-Sender: melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=DkCj0c5E; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::132 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:29444 Archived-At: --00000000000061d3dd05cfce66e0 Content-Type: text/plain; charset="UTF-8" I believe the Lua version bundled with Pandoc is still 5.3 so that will be the one filters will use, and that may be a problem if some module uses 5.4 only features. IIIRC it is possible to have luarocks install different versions of packages in different locations. Google is your friend. Also for Linux look for luaver on GitHub. In a hurry, /bpj Den tis 2 nov. 2021 14:29 skrev: > The installed lua version is already 5.4.x Ist that a problem? > ________________________________________ > Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org im > Auftrag von Albert Krewinkel > Gesendet: Dienstag, 2. November 2021 12:52:55 > An: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > Betreff: Re: AW: compiling lpeg into pandoc > > denis.maier-NSENcxR/0n0@public.gmane.org writes: > > > Anyway, so if I install modules via luarocks they become usable in > > filters? (That is, pandoc's lua will find those modules?) > > The locations in which Lua searches for libraries are controlled via the > LUA_PATH and LUA_CPATH environment variables. There is a convenient > `luarocks path` command which shows the necessary settings and can be > used to set them: > > eval "$(luarocks path)" > > After that, the Lua interpreter in pandoc should be able to find all > modules installed via luarocks. Just make sure that luarocks uses > Lua 5.3, which is the version included in pandoc. > > -- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/878ry67p0o.fsf%40zeitkraut.de > . > > -- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/a4454aeb346b404ba248ee962bacd7cd%40unibe.ch > . > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CADAJKhD%3DXdoUF6cg06uNqdGRXW1tdOzidv82%3Dm84n9gSHR-LjA%40mail.gmail.com. --00000000000061d3dd05cfce66e0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I believe the Lua version bundled with Pandoc is still 5.= 3 so that will be the one filters will use, and that may be a problem if so= me module uses 5.4 only features. IIIRC it is possible to have luarocks ins= tall different versions of packages in different locations. Google is your = friend. Also for Linux look for luaver on GitHub.

In a hurry,

/bpj

Den tis 2 nov. 2021 14:29 <denis.maier-NSENcxR/0n0@public.gmane.org> skrev:
The installed lua version is already 5.4.x Ist that a probl= em?
________________________________________
Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pand= oc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> im Auftrag von Albert Krewinkel <albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
Gesendet: Dienstag, 2. November 2021 12:52:55
An: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Betreff: Re: AW: compiling lpeg into pandoc

denis.maier-NSENcxR/0n0@public.gmane.org writes:

> Anyway, so if I install modules via luarocks they become usable in
> filters? (That is, pandoc's lua will find those modules?)

The locations in which Lua searches for libraries are controlled via the LUA_PATH and LUA_CPATH environment variables. There is a convenient
`luarocks path` command which shows the necessary settings and can be
used to set them:

=C2=A0 =C2=A0 eval "$(luarocks path)"

After that, the Lua interpreter in pandoc should be able to find all
modules installed via luarocks. Just make sure that luarocks uses
Lua 5.3, which is the version included in pandoc.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discuss+unsubscribe@googlegroups.= com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-disc= uss/878ry67p0o.fsf%40zeitkraut.de.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discuss+unsubscribe@googlegroups.= com.
To view this discussion on the web visit https://groups.google.com/d/ms= gid/pandoc-discuss/a4454aeb346b404ba248ee962bacd7cd%40unibe.ch.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://gro= ups.google.com/d/msgid/pandoc-discuss/CADAJKhD%3DXdoUF6cg06uNqdGRXW1tdOzidv= 82%3Dm84n9gSHR-LjA%40mail.gmail.com.
--00000000000061d3dd05cfce66e0--