-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
运行cargo build,遇到错误,如何解决? #16
Comments
linked-hash-map 编译不过 |
linked-hash-map 已Fixed,但接下来的问题是memmap不能编译,正在等它放到crates.io上。 |
hi. |
|
hi. 我遇到另外一个问题,怎么解决? root@AR: kernel32-sys v0.2.0 谢谢你 |
|
hi. root@AR: kernel32-sys v0.1.4 |
请 |
hi. 还是不行。 Unpacking objects: 100% (4/4), done. To learn more, run the command again with --verbose. 不能干脆删掉linked-hash-map这个组件吗 |
你的错误里就告诉了你原因了,要用Rust Nightly,不能用stable。 |
hi。 |
hi. 怎么回事呢? |
在 |
另外,你也不用直接去
就好 |
hi. root@AR:~/shadowsocks-rust# cargo run --bin ssserver To learn more, run the command again with --verbose. 够折腾的啊。如何解决? |
你的是什么系统,什么架构?x86的么? |
更新之后还是会出现 |
hi. root@198.x.y.z's password: The programs included with the Debian GNU/Linux system are free software; Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent 我的是debian 32bit os.你的意思是你这个程序不支持32位,只支持64位? 是啊。我重新克隆,然后运行cargo build,还是出错,如何解决? kernel32-sys v0.2.0 |
32位目前是有Bug的,协程库在32位下跑会有问题(https://github.com/zonyitoo/coio-rs/issues/12)。 |
hi. |
嗯,就他没更新,而其它的人都更新了,导致同一个项目里链接了同一个crate的不同版本 |
hi. |
|
hi. root@VM: Welcome to Rust. WARNING: This script appears to be running as root. While it will work This script will download the Rust compiler and its package manager, Cargo, and The installer will run under 'sudo' and may ask you for your password. If you do You may uninstall later by running /usr/local/lib/rustlib/uninstall.sh, Continue? (y/N) y rustup: gpg available. signatures will be verified |
没装 |
hi. root@VM: ws2_32-sys v0.2.0 |
又冲突? |
HI. |
不能,因为依赖的库里面各自依赖了同一个库的不同版本。 |
那这问题咋解决呢? |
|
hi. |
你自己试一下嘛,可以了啊 |
hi. root@VM: To learn more, run the command again with --verbose. |
hi. |
用nightly,不要用stable |
hi.
root@AR:
/shadowsocks-rust# ls/shadowsocks-rust# cargo buildCargo.toml examples LICENSE README.md src
root@AR:
Updating git repository
https://github.com/zonyitoo/libsodium-sys.git
Updating git repository
https://github.com/zonyitoo/coio-rs.git
Updating registry
https://github.com/rust-lang/crates.io-index
Updating git repository
https://github.com/zonyitoo/lru-cache.git
Updating git repository
https://github.com/carllerche/mio.git
Updating git repository
https://github.com/zonyitoo/context-rs.git
Updating git repository
https://github.com/alexcrichton/miow
Updating git repository
https://github.com/carllerche/bytes
Updating git repository
https://github.com/carllerche/nix-rust
Compiling pkg-config v0.3.6
Compiling slab v0.1.2
Compiling winapi-build v0.1.1
Compiling cfg-if v0.1.0
Compiling libc v0.1.12
Compiling ansi_term v0.6.3
Compiling libc v0.2.1
Compiling bytes v0.2.10 (https://github.com/carllerche/bytes?rev=7edb577d0a#7edb577d)
Compiling bitflags v0.3.2
Compiling strsim v0.4.0
Compiling byteorder v0.3.13
Compiling linked-hash-map v0.0.6
/root/.cargo/registry/src/github.com-121aea75f9ef2ce2/linked-hash-map-0.0.6/src/lib.rs:31:1: 31:28 error: #[feature] may not be used on the stable release channel
/root/.cargo/registry/src/github.com-121aea75f9ef2ce2/linked-hash-map-0.0.6/src/lib.rs:31 #![feature(hashmap_hasher)]
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/.cargo/registry/src/github.com-121aea75f9ef2ce2/linked-hash-map-0.0.6/src/lib.rs:32:1: 32:21 error: #[feature] may not be used on the stable release channel
/root/.cargo/registry/src/github.com-121aea75f9ef2ce2/linked-hash-map-0.0.6/src/lib.rs:32 #![feature(box_raw)]
^~~~~~~~~~~~~~~~~~~~
/root/.cargo/registry/src/github.com-121aea75f9ef2ce2/linked-hash-map-0.0.6/src/lib.rs:33:1: 33:24 error: #[feature] may not be used on the stable release channel
/root/.cargo/registry/src/github.com-121aea75f9ef2ce2/linked-hash-map-0.0.6/src/lib.rs:33 #![feature(iter_order)]
^~~~~~~~~~~~~~~~~~~~~~~
error: aborting due to 3 previous errors
Compiling winapi v0.2.4
Compiling rustc-serialize v0.3.16
Compiling advapi32-sys v0.1.2
Compiling ws2_32-sys v0.1.0
Compiling kernel32-sys v0.1.4
Compiling log v0.3.3
Compiling libsodium-sys v0.1.1 (https://github.com/zonyitoo/libsodium-sys.git#bf59b517)
Compiling nix v0.4.1 (https://github.com/carllerche/nix-rust?rev=ad87c3bdc9#ad87c3bd)
Compiling clap v1.4.7
Build failed, waiting for other jobs to finish...
Could not compile
linked-hash-map
.To learn more, run the command again with --verbose.
root@AR:~/shadowsocks-rust#
how to fix it?
thanks!
The text was updated successfully, but these errors were encountered: