Skip to content
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

Maybe cannot work in android #29

Closed
Freed-Wu opened this issue Jun 22, 2024 · 4 comments
Closed

Maybe cannot work in android #29

Freed-Wu opened this issue Jun 22, 2024 · 4 comments

Comments

@Freed-Wu
Copy link

In android Termux:

$ luarocks install --local rocks.nvim
Error detected while processing /data/data/com.termux/files/home/.local/lib/luarocks/rocks-5.1/rocks.nvim/2.31.3-1/
plugin/rocks.lua:
E5113: Error while calling lua chunk: ...rmux/files/home/.local/rocks_rtp/lua/luarocks/loader.lua:104: error loadin
g module 'toml_edit' from file '/data/data/com.termux/files/home/.local/lib/lua/5.1/toml_edit.so':
        dlopen failed: cannot locate symbol "lua_gettop" referenced by "/data/data/com.termux/files/home/.local/lib
/lua/5.1/toml_edit.so"...
stack traceback:
        [C]: in function 'a_loader'
        ...rmux/files/home/.local/rocks_rtp/lua/luarocks/loader.lua:104: in function <...rmux/files/home/.local/roc
ks_rtp/lua/luarocks/loader.lua:101>
        [C]: in function 'require'
        ...iles/home/.local/share/lua/5.1/rocks/config/internal.lua:73: in function 'get_rocks_toml'
        ...iles/home/.local/share/lua/5.1/rocks/config/internal.lua:93: in function 'get_user_rocks'

Environment:

lua 5.1

Other information:

❯ ldd ~/.local/lib/lua/5.1/toml_edit.so
        libdl.so => /system/lib64/libdl.so
        libm.so => /system/lib64/libm.so
        libc.so => /system/lib64/libc.so
        ld-android.so => /system/lib64/ld-android.so
@Freed-Wu Freed-Wu changed the title Looks like cannot work in android Maybe cannot work in android Jun 22, 2024
@mrcjkb
Copy link
Member

mrcjkb commented Jun 27, 2024

Hey 👋

One thing you could try is to make sure luarocks is using luajit (presuming you're using Neovim built with luajit).

@Freed-Wu
Copy link
Author

Freed-Wu commented Jul 9, 2024

Change shebang of luarocks to luajit, still cannot work 😢

@mrcjkb
Copy link
Member

mrcjkb commented Jul 9, 2024

Likely related: nvim-neorocks/rocks.nvim#208 (comment)

@Freed-Wu
Copy link
Author

Yes, should be same. any binary rocks have this bug in Android Termux's neovim.

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

No branches or pull requests

2 participants