[Bug 1804865] Re: Lua dynamic libraries isn't enabled

Andreas Rönnquist andreas at ronnquist.net
Sat Apr 20 20:25:17 UTC 2019


Done according to your instructions - I hope I got it right now. Thanks!

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1804865

Title:
  Lua dynamic libraries isn't enabled

Status in scite package in Ubuntu:
  Fix Released
Status in scite source package in Bionic:
  New

Bug description:
  [Impact]

  No Lua module which is in the dynamic library can be loaded by SciTE
  on Linux since >=4.0 (when it started using Lua 5.3).

  [Test Case]

  First - create /usr/local/lib/lua/5.3/system and symlink a module
  there:

  sudo apt -y install lua-system
  sudo mkdir -p /usr/local/lib/lua/5.3/system
  sudo ln -s /usr/lib/x86_64-linux-gnu/lua/5.3/system/core.so /usr/local/lib/lua/5.3/system/core.so

  
  Add a Lua script to the startup scripts: (Use the menu "Options" -> "Open Lua Startup Script") and add

  local system = require 'system.core'
  print( "System.Gettime is ", system.gettime() )

  which should simply print the current time using the Lua library when
  starting SciTE, instead gives an error:

  error loading module 'system.core' from file '/usr/local/lib/lua/5.3/system/core.so':
  	dynamic libraries not enabled; check your Lua installation
  >Lua: error occurred while running startup script

  
  [Other]

  (Previous text):

  
  SciTE in ubuntu 18.04 has the Lua library embedded, and compiled without dynamic libraries enabled. This makes it impossible to load Lua modules which is in the dynamic library on SciTE >= 4.0, when it started using Lua 5.3.

  On later versions (SciTE >= 4.1.0) I have built Lua without using the
  embedded Lua library but using Debian-packaged shared object instead,
  and there this isn't a problem. (I am one of the Debian maintainers of
  SciTE).

  This leaves the version in 18.04, where this still is a problem.

  See upstream bug at
  https://sourceforge.net/p/scintilla/bugs/2058/

  for a patch. Another alternative is to backport version 4.1.0 or later
  to Ubuntu 18.04.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/scite/+bug/1804865/+subscriptions



More information about the Ubuntu-sponsors mailing list