Vim not running plugins using Lua

Bug #1474086 reported by llslim
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
vim (Ubuntu)
New
Undecided
Unassigned

Bug Description

 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.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.