Git Product home page Git Product logo

Comments (11)

m1guelpf avatar m1guelpf commented on August 13, 2024

Are you building from scratch, or using one of the provided binaries?

from plz-cli.

noobosaurus-r3x avatar noobosaurus-r3x commented on August 13, 2024

using :
curl -fsSL https://raw.githubusercontent.com/m1guelpf/plz-cli/main/install.sh | sh -
on Debian, I receive the same error message

from plz-cli.

maximofn avatar maximofn commented on August 13, 2024

I have the same problem, i use

curl -fsSL https://raw.githubusercontent.com/m1guelpf/plz-cli/main/install.sh | sh -

on Ubuntu 20.04 and get same error

from plz-cli.

FreezyEx avatar FreezyEx commented on August 13, 2024

Same error on wsl2

from plz-cli.

bjoern247 avatar bjoern247 commented on August 13, 2024

Same error for me on Ubuntu 20.04

from plz-cli.

m1guelpf avatar m1guelpf commented on August 13, 2024

hmm, seems like the way we build the binary might be broken for linux. Would love a PR to address this (since I'm not an expert on building Rust for Linux)

from plz-cli.

culda avatar culda commented on August 13, 2024

FYI I'm on Ubuntu 22.10 and it works perfectly.
The only tiny issue is executing with the sh doesn't like the [[ ]] syntax (I think because of zshell, but not sure).
But if you execute the script directly with the ./ prefix, no errors

from plz-cli.

scheMeZa avatar scheMeZa commented on August 13, 2024

FYI I'm on Ubuntu 22.10 and it works perfectly. The only tiny issue is executing with the sh doesn't like the [[ ]] syntax (I think because of zshell, but not sure). But if you execute the script directly with the ./ prefix, no errors

Are you referring to the install script?
I'm trying to run it directly by running ./install.sh but the error still persists:
image

/.bin/plz: error while loading shared libraries: libssl.so.3: cannot open shared object file: No such file or directory installed -

from plz-cli.

culda avatar culda commented on August 13, 2024

@scheMeZa You need to have libssl-dev installed, and then you need an env LD_LIBRARY_PATH pointed at the lib folder. It's a typical issue you'll find details on google if you get stuck.
I used brew so mine is /home/linuxbrew/.linuxbrew/Cellar/[email protected]/1.1.1s/lib

from plz-cli.

0xempire avatar 0xempire commented on August 13, 2024

issue

The actual problem derives from the feature default-tls of reqwest, that has openssl-sys as underlying dep thus the compiled binary will look for libssl.so.3 installed in Linux.

bin-rustls-tls

solution(s)

In a scalable solution users shouldn't have to install anything additional:
a) You can try to compile the deps in the bin either with rustls-tls as below, or bundling with "vendored" openssl.
b) Use another HTTP client if you encounter speed issues in the benchmarks e.g. hyper/ureq/other always keeping in mind that any lib depending on rust-native-tls will have the same issue.

bin-rustls-tls

# Cargo.toml
# ...
reqwest = { version = "0.11.13", default-features = false, features = ["json", "blocking", "rustls-tls"] }

rustls-tls bin size diff: +2.1MB

from plz-cli.

m1guelpf avatar m1guelpf commented on August 13, 2024

Should be fixed in the newest release

from plz-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.