Quantcast
Channel: Recent Questions - Solana Stack Exchange
Viewing all articles
Browse latest Browse all 8046

Getting error when trying to implement geyser in my code "yellowstone-geyser-client"

$
0
0

I'm getting error when trying to implement geyser, my OS is windows 10, mentioning it because maybe it can be the issue.Anyone knows how I can implement it without getting those errors?Thanks

Rustup --version:

rustup --versionrustup 1.27.1 (54dd3d00f 2024-04-24)info: This is the version for the rustup toolchain manager, not the rustc compiler.info: The currently active `rustc` version is `rustc 1.76.0 (07dca489a 2024-02-04)`

Code:

use solana_client::rpc_client::RpcClient;use yellowstone_grpc::account_subscription_client::AccountSubscriptionClient;// use tonic::transport::{Channel, grpc};fn main() {    println!("Hello, world!");}

Cargo.toml:

[package]name = "yellows-geyser"version = "0.1.0"edition = "2021"# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html[dependencies]anyhow = "1.0.86"backoff = { version = "0.4.0", features = ["tokio"] }bincode = "1.3.3"bs58 = "0.5.1"chrono = "0.4.38"clap = { version = "4.5.7", features = ["derive"] }env_logger = "0.11.3"futures = "0.3.30"hex = "0.4.3"log = "0.4.21"maplit = "1.0.2"serde_json = "1.0.117"solana-sdk = "1.17.34"solana-transaction-status = "1.17.34"tokio = {version = "1.38.0", features = ["full"]} yellowstone-grpc-client = "1.15.0"

The error when trying to run debug:

Running `cargo build --bin=yellows-geyser --package=yellows-geyser --message-format=json`...   Compiling protobuf-src v1.1.0+21.5error: failed to run custom build command for `protobuf-src v1.1.0+21.5`Caused by:  process didn't exit successfully: `c:\yellowstone-subscribe-try\yellows-geyser\target\debug\build\protobuf-src-355985e4edd0eeac\build-script-build` (exit code: 101)  --- stdout  running: "sh" "-c" "exec \"$0\" \"$@\"" "C:\\Users\\danie\\.cargo\\registry\\src\\index.crates.io-6f17d22bba15001f\\protobuf-src-1.1.0+21.5\\protobuf\\configure" "--prefix=c:\\yellowstone-subscribe-try\\yellows-geyser\\target\\debug\\build\\protobuf-src-2a82ec77eec94042\\out\\install" "--disable-shared" "--enable-static" "--disable-maintainer-mode"  checking whether to enable maintainer-specific portions of Makefiles... no  checking build system type... x86_64-pc-mingw64  checking host system type... x86_64-pc-mingw64  checking target system type... x86_64-pc-mingw64  checking for a BSD-compatible install... /usr/bin/install -c  checking whether build environment is sane...   --- stderr  configure: error: unsafe srcdir value: 'C:\Users\danie\.cargo\registry\src\index.crates.io-6f17d22bba15001f\protobuf-src-1.1.0+21.5\protobuf'  thread 'main' panicked at C:\Users\danie\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autotools-0.2.7\src\lib.rs:790:5:

Viewing all articles
Browse latest Browse all 8046


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>