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

Not installed luarocks with packer #337

Open
curkan opened this issue Mar 26, 2024 · 2 comments
Open

Not installed luarocks with packer #337

curkan opened this issue Mar 26, 2024 · 2 comments
Labels
installation Can’t install/setup the plugin

Comments

@curkan
Copy link

curkan commented Mar 26, 2024

✗ Failed to install xml2lua
Error: Could not determine source directory from rock contents (2 file(s), 0 dir(s))

exactly the same problem with mimetypes.

Moreover, if you install it on the host, then only installation under sudo works (sudo luarocks install mimetypes)
Without sudo the installation does not work. Doesn't fit under packer at all
Tell me what could be the problem?

MacOS

@wanghui5801
Copy link

I have the same problem but I can't search for the correct way to solve it.

@boltlessengineer boltlessengineer added the installation Can’t install/setup the plugin label Aug 25, 2024
@jrebs
Copy link

jrebs commented Sep 25, 2024

I don't know if this is your solution, but I just had a bunch of errors trying to get rest.nvim installed and the log seemed to show the actual problem was with installing luarocks or something, and in the error output I did also see mention of xml2lua being unable to load.

Reading through all of the output more closely, I noticed that the fatal error was occurring when trying to load a readline header file. So I did (on my xubuntu system):

sudo apt install libreadline-dev

Seem to have fixed the issue and now rest.nvim installs and I have a :Rest command I just need to learn to utilize. HTH

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
installation Can’t install/setup the plugin
Projects
None yet
Development

No branches or pull requests

4 participants