From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: bug#25425: lua does not set search paths Date: Thu, 12 Jan 2017 11:57:18 +0100 Message-ID: <87shoo7dgx.fsf@mdc-berlin.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51267) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cRd54-0002tl-2d for bug-guix@gnu.org; Thu, 12 Jan 2017 05:58:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cRd51-0003zm-2a for bug-guix@gnu.org; Thu, 12 Jan 2017 05:58:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:35258) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cRd50-0003zg-VW for bug-guix@gnu.org; Thu, 12 Jan 2017 05:58:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cRd50-0006Pk-MP for bug-guix@gnu.org; Thu, 12 Jan 2017 05:58:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50910) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cRd4V-0002Mc-HO for bug-guix@gnu.org; Thu, 12 Jan 2017 05:57:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cRd4S-0003jI-HN for bug-guix@gnu.org; Thu, 12 Jan 2017 05:57:31 -0500 Received: from sender163-mail.zoho.com ([74.201.84.163]:21111) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cRd4S-0003gj-7R for bug-guix@gnu.org; Thu, 12 Jan 2017 05:57:28 -0500 List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 25425@debbugs.gnu.org The lua interpreter packages do not set native search paths, so they cannot find lua modules. $ guix environment --ad-hoc lua lua-lpeg $ lua > require('lpeg') … ERROR … However: $ guix environment --ad-hoc lua lua-lpeg $ export LUA_PATH="$GUIX_ENVIRONMENT/share/lua/5.3/?.lua;$GUIX_ENVIRONMENT/share/lua/5.3/?/?.lua" $ export LUA_CPATH="$GUIX_ENVIRONMENT/lib/lua/5.3/?.so;$GUIX_ENVIRONMENT/lib/lua/5.3/?/?.so" $ lua > require('lpeg') table: 0x1b80300 -- Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC http://elephly.net