-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't add lua support while compiling #973
Comments
Could you add
to your configure options and see if lua is detected by configure? And remove Regards, |
If you succeeded in detecting
|
add --with-lua-prefix=/usr/include/lua5.2 still can't find lua.h: checking --enable-luainterp argument... yes
checking --with-lua-prefix argument... /usr/include/lua5.2
checking --with-luajit... no
checking for lua... no
checking if lua.h can be found in /usr/include/lua5.2/include... no
checking if lua.h can be found in /usr/include/lua5.2/include/lua... no
configure: error: could not configure lua |
Then, if you don't have lua other than 5.2, either of
or
will do. |
Or, run the configure script like this:
|
yeah, checking --with-lua-prefix argument... no
checking LUA_PREFIX environment var... not set, default to /usr
checking --with-luajit... no
checking for lua... no
checking if lua.h can be found in /usr/include... no
checking if lua.h can be found in /usr/include/lua... yes
checking if link with -L/usr/lib -llua is sane... no
configure: error: could not configure lua |
but |
Your solution looks good. Does the newly compiled vim work with lua for you? |
Ah, you already mentioned that. You got lua support. Good. Looks we need to make our build system cleverer to detect lua so that the user need not to tweak variables and symbolic links. Thank you for reporting. |
:) Thanks for your help. |
@codeplayer2org
You need to install |
oh... thank you. So it is. |
That's not hack. Based on how compliers, linkers and dynamic loaders work, and even applicable to other UNIX variants including OS X. Educational, huh? |
It is a hack. Not because this has something to do with how compilers/etc work, but because /usr/lib is managed by a system package manager. Any change in /usr that is done by anything else, but a package manager or system-specific tools* is a hack. * E.g. eselect which in Gentoo manages symlinks, AFAIR debian-based call this something like update-alternatives which is a part of package manager (eselect is not). |
Hi. Same issue here. When I try
But If I remove the CPPFLAGS, it runs w/o problem, except no lua. |
perhaps? |
Well, It seems that It gets ignored
|
Well, just forget it. It's a lot easier to just use symlinks. |
It does not, the test for the compiler tried to use (without
Which is correct, since a C compiler trying to compile a directory as input does not work.
Autoconf does not parse
And That said, the symlinks should be there on a decent distro. |
When I use this argument, I get
Bizarre... |
Well, I finally came with THE solution (for ubuntu at least).
And... that's it! No hacky way! |
There's a good reason why people often need "hacks" to build Vim supporting Lua. In the readme of Lua:
In fact, as far as I know, So, if you see As a result, since there's no one who dictates how to create a Lua dynamic library and install it, the installation runs wild. Dynamic libraries allow us to install their different versions simultaneously. Then, distributors need to decide a name convention: How about Plus, a user may want to install the latest Lua in Installation of a dynamic library is such a mess. For other languages such as Python, we can query how their dynamic library was installed via In conclusion, those who think that too much can be better off relying on their favorite distro and its package manager entirely; don't try breaking things they did for you. Otherwise, come here and share your issue with us. Probably, once you and we find a solution and incorporate it into the configure script, no one will call it a hack even if it might at first appear to be something like that. |
Quite impressed by your complete answer! For someone new to vim, It's "a mess" as you said. And again, thank you. |
so this can be closed? |
2017-04-29 18:00 GMT+09:00 Christian Brabandt <notifications@github.com>:
so this can be closed?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#973 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ANL7Z9-SjoIl3Y60QXTO5a2XX12TZEjCks5r0vwjgaJpZM4JfvX7>
.
Hi, Christian
The issue was already closed. Probably, no one wanted to bother you to
reopen. Thank you for taking care of us always.
Kazunobu
|
Sorry for my poo english. I can't add lua support on ubuntu 16.04. Already install liblua5.2-dev, but during configure, it says:
In fact, lua.h at
/usr/include/lua5.2/lua.h
, and lua library at/usr/lib/x86_64-linux-gnu/liblua5.2.so
.And configure command is:
./configure \ --prefix=/usr/local/ \ --with-features=huge \ --enable-multibyte \ --enable-cscope=yes \ --enable-perlinterp=yes \ --enable-rubyinterp=yes \ --with-ruby-command=/usr/bin/ruby \ --enable-luainterp=yes \ --enable-pythoninterp=yes \ --enable-python3interp=yes \ --enable-tclinterp=yes \ --enable-gui=auto \ --enable-gnome-check \ --enable-sniff \ --enable-xim \ --enable-fontset \ --with-x \ --with-compiledby=$USER \ --enable-fail-if-missing
The text was updated successfully, but these errors were encountered: