Git Product home page Git Product logo

Comments (20)

JohanTan avatar JohanTan commented on August 21, 2024 4

From my experience, this is how it will work (only tested on Ubuntu):

sudo apt-get install liblua5.1-dev
copy all files from /usr/include/lua5.1/ to /usr/include/lua5.1/include/
sudo ln -s /usr/lib/x86_64-linux-gnu/liblua5.1.so /usr/local/lib/liblua.so

Go to vim source folder:
./configure --with-features=huge --enable-cscope --enable-pythoninterp=yes --with-python-config-dir=/usr/lib/python2.7/config-x86_64-linux-gnu --enable-multibyte --enable-fontset --disable-gui --disable-netbeans --enable-luainterp=yes --with-lua-prefix=/usr/include/lua5.1 --enable-largefile
make
sudo make install

from neocomplete.vim.

Shougo avatar Shougo commented on August 21, 2024

This is not neocomplete issues...

from neocomplete.vim.

andrewfaria avatar andrewfaria commented on August 21, 2024

I'm having the same issue. Some help compiling vim with if_lua would be very helpful.

I've cloned the vim distro and made sure to use the v7-3.885 tag, ran ./configure --enable-luainterp=yes compiled and got the correct vim version but still receiving the neocomplete if_lua not enabled error message.

from neocomplete.vim.

Shougo avatar Shougo commented on August 21, 2024

I've cloned the vim distro and made sure to use the v7-3.885 tag, ran ./configure --enable-luainterp=yes compiled and got the correct vim version but still receiving the neocomplete if_lua not enabled error message.

You should check ./configure output.
I think the configure fails lua compilation.

from neocomplete.vim.

lookforit avatar lookforit commented on August 21, 2024

I've cloned the vim distro and made sure to use the v7-3.885 tag, ran ./configure --enable-luainterp=yes compiled and got the correct vim version but still receiving the neocomplete if_lua not enabled error message.

I met with the same problem in compelling vim 7.4, Ubuntu.
I set the option./configure --enable-luainterp=yes or ./configure --enable-luainterp=dynamic,
but :ver output always says '- lua'...
Some guideline will be helpful.
@JohanTan @myimedia

from neocomplete.vim.

Shougo avatar Shougo commented on August 21, 2024

I think you must install Lua development package.
You should check "./configure output". It contains warning messages.

from neocomplete.vim.

crazymaster avatar crazymaster commented on August 21, 2024

How about setting the option --enable-fail-if-missing?
It outputs error messages.

I recommend to set the option --with-luajit in Vim 7.4
So you should run this.
./configure --enable-luainterp --with-luajit --enable-fail-if-missing

from neocomplete.vim.

lookforit avatar lookforit commented on August 21, 2024

it works now,thank you all!

from neocomplete.vim.

lookforit avatar lookforit commented on August 21, 2024

I recommend to set the option --with-luajit in Vim 7.4
So you should run this.
./configure --enable-luainterp --with-luajit --enable-fail-if-missing

what's the difference between luajitand the ordinary way? Does luajit have a better performance?

from neocomplete.vim.

Shougo avatar Shougo commented on August 21, 2024

Yes.

from neocomplete.vim.

crazymaster avatar crazymaster commented on August 21, 2024

Does luajit have a better performance?

Standards: if_lua accelerates Vim scripts

from neocomplete.vim.

lookforit avatar lookforit commented on August 21, 2024

I recommend to set the option --with-luajit in Vim 7.4
So you should run this.
./configure --enable-luainterp --with-luajit --enable-fail-if-missing

I'm trying to compel vim with lua-jit and setting optiions like above ,
but console says configure error:could not config lua
I have lua 5.1installed already.
So what's the problem?
@crazymaster

from neocomplete.vim.

Shougo avatar Shougo commented on August 21, 2024

I'm trying to compel vim with lua-jit and setting optiions like above ,
but console says configure error:could not config lua
I have lua 5.1installed already.

You must install "luajit" package from apt not "lua 5.1".

from neocomplete.vim.

lookforit avatar lookforit commented on August 21, 2024

You must install "luajit" package from apt not "lua 5.1".

I'm sorry I didn't notice that......
Here I installed the luajit and libluajit-5.1-dev with the info:
LuaJIT 2.0.0-beta9 -- Copyright (c ) 2005-2011 Mike Pall.http://luajit.org

Run ./configer --enable-luainterp --with-luajit and nothing changed.
Below are output summary:

checking --enable-luainterp argument... yes checking --with-lua-prefix argument... no checking LUA_PREFIX environment var... not set, default to /usr checking --with-luajit... yes checking for luajit... no checking if lua.h can be found in /usr/include... no checking if lua.h can be found in /usr/include/lua... no

from neocomplete.vim.

crazymaster avatar crazymaster commented on August 21, 2024

I found the same problem.
vim-jp/issues#348 (comment)

from neocomplete.vim.

crazymaster avatar crazymaster commented on August 21, 2024

@lookforit, you may have to do this.
$ sudo apt-get install libluajit-5.1

from neocomplete.vim.

ipirlo avatar ipirlo commented on August 21, 2024

I installed lua5.2 on ubuntu 12.04; sudo apt-get install lua5.2 , then sudo apt-get install liblua5.2-dev which will put that offending header file in /usr/include/lua5.2/

from neocomplete.vim.

jdewit avatar jdewit commented on August 21, 2024

Here's what worked for me on Ubuntu 12.04.

https://gist.github.com/jdewit/9818870

from neocomplete.vim.

ReneFroger avatar ReneFroger commented on August 21, 2024

It was not a succes with Xubuntu 14.04. The compile is done, but still no lua support.

Just install vim-nox from package manager, then make a Vim alias for /usr/bin/vim.nox

from neocomplete.vim.

richvincent avatar richvincent commented on August 21, 2024

@JohanTan Is a genius!!! Your advice worked like a charm!

Here is a repost:

From my experience, this is how it will work (only tested on Ubuntu):

sudo apt-get install liblua5.1-dev
copy all files from /usr/include/lua5.1/ to /usr/include/lua5.1/include/
sudo ln -s /usr/lib/x86_64-linux-gnu/liblua5.1.so /usr/local/lib/liblua.so

Go to vim source folder:
./configure --with-features=huge --enable-cscope --enable-pythoninterp=yes --with-python-config-dir=/usr/lib/python2.7/config-x86_64-linux-gnu --enable-multibyte --enable-fontset --disable-gui --disable-netbeans --enable-luainterp=yes --with-lua-prefix=/usr/include/lua5.1 --enable-largefile
make
sudo make install

from neocomplete.vim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.