Skip to content
This repository has been archived by the owner on May 25, 2022. It is now read-only.

unable to make luv #7

Open
prncss-xyz opened this issue Dec 16, 2021 · 3 comments
Open

unable to make luv #7

prncss-xyz opened this issue Dec 16, 2021 · 3 comments

Comments

@prncss-xyz
Copy link

This seems really promising, unfortunately, automatic install did not work for me, and when I tried manual installation, the problematic step seemed to be cd xplr/src/luv && make, where I get:

cmake -H. -Bbuild -DBUILD_MODULE=ON -DBUILD_SHARED_LIBS=OFF -DBUILD_STATIC_LIBS=OFF -DWITH_SHARED_LIBUV=OFF -DWITH_LUA_ENGINE=LuaJIT -DLUA_BUILD_TYPE=Static -DLUA_COMPAT53_DIR=deps/lua-compat-5.3 -DCMAKE_BUILD_TYPE=RelWithDebInfo
make: cmake: Permission denied
make: *** [Makefile:55: build/Makefile] Error 12

I've tryed to sudo it with the same results.

(Working with an up to date Arch Linux system.)

I don't have experience with cmake. Do you have an idea where I should look? Thank you.

@fhill2
Copy link
Owner

fhill2 commented Dec 16, 2021

Hey @prncss-xyz
My experience with cmake doesn't go that far, other than compiling programs.
However, looks like Makefile is erroring here

so maybe:
chmod 777 on luv submodule folder inside xplr repo or $(BUILD_DIR)

There is also the option of installing the dependencies with Luarocks, and then manually adding the Luarocks library paths to the xplr environment:

pacman -s luarocks
luarocks install luv
luarocks path

my luarocks path output:

export LUA_PATH='/usr/local/share/lua/5.1/?.lua;./?.lua;/usr/share/lua/5.1/?.lua;/usr/share/lua/5.1/?/init.lua;/usr/lib/lua/5.1/?.lua;/usr/lib/lua/5.1/?/init.lua;/home/f1/.luarocks/share/lua/5.1/?.lua;/home/f1/.luarocks/share/lua/5.1/?/init.lua;/usr/local/share/lua/5.1/?/init.lua'
export LUA_CPATH='./?.so;/usr/lib/lua/5.1/?.so;/usr/lib/lua/5.1/loadall.so;/home/f1/.luarocks/lib/lua/5.1/?.so;/usr/local/lib/lua/5.1/?.so'

the output from luarocks path can be added to the xplr.nvim init script that loads when xplr starts up inside nvim:

delete line 3-12 from xplr.nvim init script and change to:

package.path = package.path .. "<paste output from luarocks path export LUA_PATH var>"
package.cpath = package.cpath .. "<add output from luarocks path export LUA_CPATH var>"

unfortunately xplr doesnt load these variables from the environment so they have to be added into the startup file like this.

@prncss-xyz
Copy link
Author

Thank you so much. Successfully installed the lua rocks (also needed to add lua51 pacakge for files other than the binary). Still cannot get it to work properly, but at least I have things I can work with. Will give some feedback here if I get somewhere.

@fhill2
Copy link
Owner

fhill2 commented Dec 17, 2021

Thank you so much. Successfully installed the lua rocks (also needed to add lua51 pacakge for files other than the binary). Still cannot get it to work properly, but at least I have things I can work with. Will give some feedback here if I get somewhere.

That's great to hear.

To debug, using cat $XPLR_PIPE_LOGS_OUT method I've found is helpful.
The process can be found here.

Let me know what isn't working or any error messages from the xplr.nvim lua environment output and I can suggest something to try.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants