freeCodeCamp / solana-curriculum

freeCodeCamp Solana Curriculum

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

santekotturi opened this issue · comments

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);