Skip to content

Document how to install on Linux via sudo #2

@drauschenbach

Description

@drauschenbach

I can install this module on my Mac with sudo luarocks install lua-ryaml. However on Debian 12 Linux the Rust environment does not get set when sudo is invoked. this thread mentions something similar.

$ sudo luarocks install lua-ryaml
Installing https://luarocks.org/lua-ryaml-0.1.0-1.src.rock

lua-ryaml 0.1.0-1 depends on lua >= 5.1 (5.1-1 provided by VM)
lua-ryaml 0.1.0-1 depends on luarocks-build-rust-mlua (0.1.2-1 installed)

Error: Build error: 'cargo' is not installed.
This rock is written in Rust: make sure you have a Rust
development environment installed and try again.
$ sudo su -
$ cargo --version
cargo 1.75.0 (1d8b05cdd 2023-11-20)

In my own mlua based projects I'd like to document for the end user how to install the LuaRock.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions