Skip to content

Failed to install on musl system (aipine linux) #388

Closed
@gspe

Description

@gspe

I'm trying to install rust-analyzer on alpine linux docker but the installation fail with this error:

error: failed to compile `rust-analyzer v0.1.0 (/rust/rust-analyzer/crates/rust-analyzer)`, intermediate artifacts can be found at `/rust/rust-analyzer/target`

Caused by:
  cannot produce proc-macro for `chalk-derive v0.1.0 (https://github.com/rust-lang/chalk.git?rev=039fc904a05f8cb3d0c682c9a57a63dda7a35356#039fc904)` as the target `x86_64-unknown-linux-musl` does not support these crate types
Error: install server

Caused by:
    0: process `cargo install --path crates/rust-analyzer --locked --force ` failed
    1: exit code: 101

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions