#Luarocks issue

1 messages · Page 1 of 1 (latest)

haughty dove
#

Hi, I'm having an issue with rocks.nvim in Termux. When I try to sync or install plugins (like rocks-git.nvim), I get this error:

[START][2025-11-07 15:30:13] rocks.nvim logging initiated
WARN | 2025-11-07 15:30:13.678 | .../.local/share/nvim/rocks/rocks_rtp/lua/rocks/runtime.lua:46 | Rock rocks-git.nvim does not appear to be installed.
ERROR | 2025-11-07 15:30:24.171 | ....local/share/nvim/rocks/rocks_rtp/lua/rocks/luarocks.lua:65 | luarocks CLI FAILED
ERROR | 2025-11-07 15:30:24.171 | ....local/share/nvim/rocks/rocks_rtp/lua/rocks/luarocks.lua:66 | ln: failed to create hard link '/data/data/com.termux/files/home/.local/share/nvim/rocks/lockfile.lfs' => '/data/data/com.termux/files/home/.local/share/nvim/rocks/.lock.tmp.71836202': Permission denied

Error: command 'install' requires exclusive write access to /data/data/com.termux/files/home/.local/share/nvim/rocks - failed to force the lock: File exists

ERROR | 2025-11-07 15:30:24.171 | ...im/rocks/rocks_rtp/lua/rocks/operations/helpers/init.lua:138 | Failed to install rocks-git.nvim
ERROR | 2025-11-07 15:30:24.171 | ...share/nvim/rocks/rocks_rtp/lua/rocks/operations/sync.lua:48 | SYNC ERROR: Failed to install rocks-git.nvim.
WARN | 2025-11-07 15:30:24.558 | .../.local/share/nvim/rocks/rocks_rtp/lua/rocks/runtime.lua:46 | Rock rocks-git.nvim does not appear to be installed.
ERROR | 2025-11-07 15:30:29.468 | ...share/nvim/rocks/rocks_rtp/lua/rocks/operations/sync.lua:281 | Sync completed with errors! Run ':Rocks log' for details.

I think this started after a recent update in Termux that changed Luarocks from Lua 5.1 to Lua 5.4

hallow fableBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution