Skip to content
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

Can't install #150

Closed
vinciblu opened this issue Sep 18, 2022 · 4 comments · Fixed by #152
Closed

Can't install #150

vinciblu opened this issue Sep 18, 2022 · 4 comments · Fixed by #152

Comments

@vinciblu
Copy link

Hey when I try to install this node I run

cargo install contracts-node --git https://github.com/paritytech/substrate-contracts-node.git --force --locked

I get '29 errors' and most of them look like this:

type Call = Call;
| ^^^^^^^^^^^^^^^^^ not a member of trait frame_system::Config

error[E0437]: type Event is not a member of trait frame_system::Config
--> /Users/kk/.cargo/git/checkouts/substrate-contracts-node-cf7c16677784d274/8d76d04/runtime/src/lib.rs:187:2
|
187 | type Event = Event;
| ^^^^^^^^^^^^^^^^^^^ not a member of trait frame_system::Config

error[E0437]: type Event is not a member of trait pallet_balances::Config
--> /Users/kk/.cargo/git/checkouts/substrate-contracts-node-cf7c16677784d274/8d76d04/runtime/src/lib.rs:251:2
|
251 | type Event = Event;
| ^^^^^^^^^^^^^^^^^^^ not a member of trait pallet_balances::Config

I have tried multiple different versions of rust and different tags of the contracts-node and I can't seem to find a fit. I am running the most up to date rust toolchain and v0.20.0 of the contracts-node.

I am new to this plz go easy on me thanks

@cmichi
Copy link
Contributor

cmichi commented Sep 19, 2022

Hi there!

I am running the most up to date rust toolchain and v0.20.0

Is that stable or nightly? Which operating system are you using?

Have you tried cargo clean in the folder?

Until this is resolved: Can you use the binary directly on your operating system? You can download it here: https://github.com/paritytech/substrate-contracts-node/releases/tag/v0.20.0.

@abing258
Copy link

你好呀!

我正在运行最新的 rust 工具链和 v0.20.0

那是stable还是nightly?您使用的是哪个操作系统?

cargo clean在文件夹里试过吗?

在解决此问题之前:您可以直接在您的操作系统上使用二进制文件吗?你可以在这里下载:https ://github.com/paritytech/substrate-contracts-node/releases/tag/v0.20.0 。

我也碰到同样的问题,但是我的二进制文件是可以运行的。rustc 1.64.0-nightly (848090dcd 2022-07-22)

@gitgitcode
Copy link

same error

  • rustc 1.64.0 (a55dd71d5 2022-09-19)
  • Apple M1 12.5
  • rustup 1.25.1 (bb60b1e89 2022-07-12)

 error[E0437]: type `Call` is not a member of trait `frame_system::Config`
     -->  /.cargo/git/checkouts/substrate-contracts-node-cf7c16677784d274/8d76d04/runtime/src/lib.rs:173:2
......

 Building [=======================> ] 939/949: librocksdb-sys(build)
error: failed to compile `contracts-node v0.20.0 (https://github.com/paritytech/substrate-contracts-node.git?tag=v0.20.0#8d76d04f)`, intermediate artifacts can be found at `/var/folders/td/bs9n_nsj4vv2vdv16t_psxwm0000gn/T/cargo-install9PDOeJ` 

@TomaszWaszczyk
Copy link

Look at here: https://stackoverflow.com/questions/66583720/some-error-failed-to-run-custom-build-command-for-librocksdb-sys-v6-11-4

Probably you need to execute: sudo apt install clang

@athei athei linked a pull request Oct 9, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants