Public bug reported:

 VIM plugins using Lua like neocomplete will not run and will give the
annoying message of "needing vim greater than 7.3.885 with lua". vim
--version tells that lua is enabled and thersion for Trusty is 7.4.052.
Furthermore this command with in vim ":lua print('hello')" would return
the linking error: "vim e370 could not load library libluajit-5.1.so.2".

As instructed in this 2013 message:. http://lua.2524044.n2.nabble.com
/Problems-with-Lua-in-Vim-tp7654458p7654461.html . Can the '--enable-
luainterp' configuration flag in the debian/rules file be change to
'--enable-luainterp=dynamic'? LibluaJIT is an Just in Time compiler that
is faster than the regular Lua Libraary. It requres the extra compiler
flag of --with-luajit.

To get the Lua interpreter working, here is what I am suggesting. Change
the lines in the debian/ file

OLD:
ALLINTERPFLAGS+=--enable-luainterp
New:
ALLINTERPFLAGS+=--enable-luainterp=dynamic
+ifneq ($(shell ldconfig -p | grep 'libluajit'),)
     ALLINTERPFLAGS+=--with-luajit
 endif

Hope this is clear and useful.

** Affects: vim (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1474086

Title:
  Vim not running plugins using Lua

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

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to