Open monacv opened 3 years ago
also
(phosa) [jalal@goku scratch3]$ cargo install xsv
Updating crates.io index
Downloaded xsv v0.13.0
Downloaded 1 crates (57.4 KB) in 6.82s
Installing xsv v0.13.0
Downloaded threadpool v1.8.1
Downloaded cfg-if v0.1.10
Downloaded rand v0.4.6
Downloaded csv-index v0.1.6
Downloaded serde v1.0.125
Downloaded chan v0.1.23
Downloaded byteorder v1.4.3
Downloaded csv v1.1.6
Downloaded libc v0.2.92
Downloaded tabwriter v1.2.1
Downloaded regex v1.4.5
Downloaded streaming-stats v0.2.3
Downloaded num_cpus v1.13.0
Downloaded bstr v0.2.15
Downloaded itoa v0.4.7
Downloaded ryu v1.0.5
Downloaded regex-syntax v0.6.23
Downloaded memchr v2.3.4
Downloaded aho-corasick v0.7.15
Downloaded csv-core v0.1.10
Downloaded rand v0.3.23
Downloaded unicode-width v0.1.8
Downloaded lazy_static v1.4.0
Downloaded regex-automata v0.1.9
Downloaded num-traits v0.2.14
Downloaded docopt v1.1.1
Downloaded serde_derive v1.0.125
Downloaded autocfg v1.0.1
Downloaded strsim v0.10.0
Downloaded proc-macro2 v1.0.24
Downloaded syn v1.0.67
Downloaded quote v1.0.9
Downloaded unicode-xid v0.2.1
Compiling proc-macro2 v1.0.24
Compiling unicode-xid v0.2.1
Compiling syn v1.0.67
Compiling serde_derive v1.0.125
Compiling libc v0.2.92
Compiling memchr v2.3.4
Compiling serde v1.0.125
Compiling autocfg v1.0.1
Compiling ryu v1.0.5
Compiling byteorder v1.4.3
Compiling lazy_static v1.4.0
Compiling regex-syntax v0.6.23
Compiling itoa v0.4.7
error[E0658]: use of unstable library feature 'try_from' (see issue #33417)
--> /home/grad3/jalal/.cargo/registry/src/github.com-1ecc6299db9ec823/byteorder-1.4.3/src/lib.rs:74:5
|
74 | convert::TryInto, fmt::Debug, hash::Hash, ptr::copy_nonoverlapping, slice,
| ^^^^^^^^^^^^^^^^
Compiling cfg-if v0.1.10
error[E0658]: use of unstable library feature 'try_from' (see issue #33417)
--> /home/grad3/jalal/.cargo/registry/src/github.com-1ecc6299db9ec823/byteorder-1.4.3/src/lib.rs:1973:37
|
1973 | u16::from_be_bytes(buf[..2].try_into().unwrap())
| ^^^^^^^^
error[E0658]: use of unstable library feature 'try_from' (see issue #33417)
--> /home/grad3/jalal/.cargo/registry/src/github.com-1ecc6299db9ec823/byteorder-1.4.3/src/lib.rs:1978:37
|
1978 | u32::from_be_bytes(buf[..4].try_into().unwrap())
| ^^^^^^^^
error[E0658]: use of unstable library feature 'try_from' (see issue #33417)
--> /home/grad3/jalal/.cargo/registry/src/github.com-1ecc6299db9ec823/byteorder-1.4.3/src/lib.rs:1983:37
|
1983 | u64::from_be_bytes(buf[..8].try_into().unwrap())
| ^^^^^^^^
error[E0658]: use of unstable library feature 'try_from' (see issue #33417)
--> /home/grad3/jalal/.cargo/registry/src/github.com-1ecc6299db9ec823/byteorder-1.4.3/src/lib.rs:1988:39
|
1988 | u128::from_be_bytes(buf[..16].try_into().unwrap())
| ^^^^^^^^
error[E0658]: use of unstable library feature 'try_from' (see issue #33417)
--> /home/grad3/jalal/.cargo/registry/src/github.com-1ecc6299db9ec823/byteorder-1.4.3/src/lib.rs:2189:37
|
2189 | u16::from_le_bytes(buf[..2].try_into().unwrap())
| ^^^^^^^^
error[E0658]: use of unstable library feature 'try_from' (see issue #33417)
--> /home/grad3/jalal/.cargo/registry/src/github.com-1ecc6299db9ec823/byteorder-1.4.3/src/lib.rs:2194:37
|
2194 | u32::from_le_bytes(buf[..4].try_into().unwrap())
| ^^^^^^^^
error[E0658]: use of unstable library feature 'try_from' (see issue #33417)
--> /home/grad3/jalal/.cargo/registry/src/github.com-1ecc6299db9ec823/byteorder-1.4.3/src/lib.rs:2199:37
|
2199 | u64::from_le_bytes(buf[..8].try_into().unwrap())
| ^^^^^^^^
error[E0658]: use of unstable library feature 'try_from' (see issue #33417)
--> /home/grad3/jalal/.cargo/registry/src/github.com-1ecc6299db9ec823/byteorder-1.4.3/src/lib.rs:2204:39
|
2204 | u128::from_le_bytes(buf[..16].try_into().unwrap())
| ^^^^^^^^
error: aborting due to 9 previous errors
For more information about this error, try `rustc --explain E0658`.
error: Could not compile `byteorder`.
warning: build failed, waiting for other jobs to finish...
error: failed to compile `xsv v0.13.0`, intermediate artifacts can be found at `/tmp/cargo-install1CnYLX`
Caused by:
build failed
When reporting compilation errors, please include the version of the compiler you're using.
Your first attempt worked. xsv
just isn't in your PATH
. Something like find ./ -name xsv
would tell you where it is if you weren't sure. But it should be at ./target/release/xsv
.
Your second attempt failed for two reasons. Firstly, cargo install
does not use the lock file from the project by default, so it will try to use updated versions of all dependencies. Secondly, your compiler appears quite old and is thus not new enough to compile the updates to some of those dependencies. The only way to fix that at the moment is to update your compiler.
Note also that I publish xsv binaries that you should be able to use directly: https://github.com/BurntSushi/xsv/releases
Firstly,
cargo install
does not use the lock file from the project by default, so it will try to use updated versions of all dependencies.
Note that this is a long standing issue that has caused massive amounts of confusion and pain: https://github.com/rust-lang/cargo/issues/7169
You can force Cargo use the lock file that was published with the crate via the --locked
flag, but lock files weren't included in published crates until a couple years ago. But the last xsv
release was actually older than that, so the --locked
flag won't work here unfortunately.