Nushell: Failed to install nu with cargo

Created on 16 Jun 2020  路  3Comments  路  Source: nushell/nushell

Trying to install nu with: cargo install nu command but failed with the error message:

error: reached the type-length limit while instantiating `std::thread::LocalKey::<std::syn...:Vec<nu_protocol::value::Value>>`
    |
    = note: consider adding a `#![type_length_limit="4391720"]` attribute to your crate

error: aborting due to previous error

error: could not compile `nu_plugin_sys`.
warning: build failed, waiting for other jobs to finish...
error: failed to compile `nu v0.15.0`, intermediate artifacts can be found at `/tmp/cargo-installBCH9sW`

Caused by:
  build failed

What do I do wrong?

Configuration (please complete the following information):

  • OS: Linux Mint 19.1
  • Nu: the latest

    • Cargo: 1.41.0

    • rustc: 1.41.0

question

Most helpful comment

@ProgrammingLife - you'll need to update your rustc to the latest stable version. They recently fixed the limits to make it work better with async Rust code.

All 3 comments

@ProgrammingLife - you'll need to update your rustc to the latest stable version. They recently fixed the limits to make it work better with async Rust code.

@ProgrammingLife, were you able to get Nu installed?

I'm going to go ahead and close this issue for now. @ProgrammingLife, if you are still having issues installing Nushell through cargo install nu, feel free to open up another issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jonathandturner picture jonathandturner  路  5Comments

KasMA1990 picture KasMA1990  路  4Comments

twe4ked picture twe4ked  路  4Comments

ryanpcmcquen picture ryanpcmcquen  路  3Comments

coolshaurya picture coolshaurya  路  4Comments