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

[HELP]: Lesson 29 - error while loading shared libraries: libssl.so.1.1: cannot open shared object file #331

Closed
santekotturi opened this issue Feb 19, 2024 · 0 comments · Fixed by #343

Comments

@santekotturi
Copy link

Project

the first project: learn-how-to-set-up-solana-by-building-a-hello-world-smart-contract/src/program-rust

Lesson Number

29

Question

When running cargo build-sbf --sbf-out-dir=../../dist/program

I get:

/home/gitpod/.rustup/toolchains/sbf/bin/cargo: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory

Code and Screenshots

I've tried removing cache but no luck: launchbadge/sqlx#473

the current state of my rust code, it's "working" as of step 28

use solana_program::entrypoint;
use solana_program::msg;
use solana_program::pubkey::Pubkey; // Importing Pubkey struct
use solana_program::account_info::AccountInfo;
use solana_program::entrypoint::ProgramResult;

// Define your process_instruction function here
pub fn process_instruction(program_id: &Pubkey, accounts: &[AccountInfo], instruction_data: &[u8]) -> ProgramResult {
    // Log "Hello World" to the console
    msg!("Hello World");
    // Function body goes here
    // You can write your logic inside this function
    Ok(())
}

entrypoint!(process_instruction);
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.

1 participant