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

http/client results in "OPENSSL_1.0.2 not found" running binary on another machine #4120

Closed
jasonl99 opened this issue Mar 7, 2017 · 2 comments

Comments

@jasonl99
Copy link

jasonl99 commented Mar 7, 2017

I am running an app on a very inexpensive VPS server running Debian 8. The app is built on a laptop running Linux Mint.

The server's uname -a returns this:

Linux debian 4.8.6-x86_64-linode78 #1 SMP Tue Nov 1 14:51:21 EDT 2016 x86_64 GNU/Linux

This worked fine up until I added http/client to grab some json data from external sources. Now when I try to run the app, I get this output:

/usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0: version `OPENSSL_1.0.2' not found
/usr/lib/x86_64-linux-gnu/libssl.so.1.0.0: version `OPENSSL_1.0.2' not found

I've searched the issues, and couldn't really find anything similar.

@luislavena
Copy link
Contributor

@jasonl99 binaries produced on one system are expected to be run on similar system. They contain information about linked shared libraries which will differ across versions and specially across distributions.

While Mint is based on Ubuntu, and Ubuntu on Debian, they are not the same version and the provided system libraries (like OpenSSL) differ, which is what you're experiencing.

If your target system is Debian 8, perhaps will be good to setup a VM in your dev machine that uses the compiler to target that particular version.

Ideally will be possible to generate an static binary that contains all the required elements to run standalone without dependencies on the target system, but that requires considerable effort in produce such toolchain.

While doesn't solve directly your problem, hope it adds some clarification and that the suggestions are useful.

Cheers.

@jasonl99
Copy link
Author

jasonl99 commented Mar 7, 2017

@luislavena thanks for your answer, and I guess that's what I was afraid of. But I like your suggesting of setting up a VM and compiling on that.

@jasonl99 jasonl99 closed this as completed Mar 7, 2017
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

No branches or pull requests

2 participants