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

OPENSSL_1.0.2' not found #11127

Closed
hassanghalami opened this issue Nov 6, 2016 · 10 comments
Closed

OPENSSL_1.0.2' not found #11127

hassanghalami opened this issue Nov 6, 2016 · 10 comments

Comments

@hassanghalami
Copy link

@hassanghalami hassanghalami commented Nov 6, 2016

ImportError: /opt/lampp/lib/libssl.so.1.0.0: version OPENSSL_1.0.2 not found (required by /usr/lib/python2.7/lib-dynload/_ssl.x86_64-linux-gnu.so)
this error occured with this code: echo exec("youtube-dl --help 2>&1",$output);

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Nov 6, 2016

You need to either recompile Python or set correct $LD_LIBRARY_PATH.

@yan12125 yan12125 closed this Nov 6, 2016
@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Nov 6, 2016

I guess lampp has done something evil. Did you put the export line in exec()?

@hassanghalami
Copy link
Author

@hassanghalami hassanghalami commented Nov 6, 2016

i did reinstall python !
i changed LD_LIBRARY_PATH to /usr/lib but still no change !

@hassanghalami
Copy link
Author

@hassanghalami hassanghalami commented Nov 6, 2016

export LD_LIBRARY_PATH=/usr/lib
i think i totally cleared my library path !!!!

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Nov 6, 2016

Could you try:

exec("LD_LIBRARY_PATH=/usr/lib youtube-dl --help 2>&1",$output)
@hassanghalami
Copy link
Author

@hassanghalami hassanghalami commented Nov 6, 2016

resualt:
(currently supported: srt|ass|vtt)

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Nov 6, 2016

How did you set it? If /usr/lib/python2.7/lib-dynload/_ssl.x86_64-linux-gnu.so is still linked to /opt/lampp/lib/libssl.so.1.0.0, you didn't set $LD_LIBRARY_PATH correctly.

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Nov 6, 2016

resualt:
(currently supported: srt|ass|vtt)

Yeah that's the last line of youtube-dl --help. You may want to use another function as PHP's exec only returns the last line.

@hassanghalami
Copy link
Author

@hassanghalami hassanghalami commented Nov 6, 2016

OMG , it's working!!!!
thaaaaaaaaaank you my tai friend :D ;)

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Nov 6, 2016

😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.