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

Can not run ttyd which was build from source #73

Closed
alex-bender opened this issue Oct 19, 2017 · 2 comments
Closed

Can not run ttyd which was build from source #73

alex-bender opened this issue Oct 19, 2017 · 2 comments

Comments

@alex-bender
Copy link

Hi! Thanks for the tool! I was thinking about something similar couple days ago and today I found it. But I have a problem.

System: Debian 8
Linux bender 4.9.0-0.bpo.2-amd64 #1 SMP Debian 4.9.13-1~bpo8+1 (2017-02-27) x86_64 GNU/Linux

I've built libwebsockets and installed it into the system:

[...]
Linking C shared library lib/libwebsockets.so
[100%] Built target websockets_shared
Install the project...
-- Install configuration: "Release"
-- Installing: /usr/local/lib/pkgconfig/libwebsockets.pc
-- Installing: /usr/local/lib/pkgconfig/libwebsockets_static.pc
-- Installing: /usr/local/lib/libwebsockets.a
-- Up-to-date: /usr/local/include/libwebsockets.h
-- Installing: /usr/local/include/lws_config.h
-- Up-to-date: /usr/local/include/lws-plugin-ssh.h
-- Installing: /usr/local/lib/libwebsockets.so.12
-- Up-to-date: /usr/local/lib/libwebsockets.so
-- Up-to-date: /usr/local/include/libwebsockets.h
-- Up-to-date: /usr/local/include/lws_config.h
-- Up-to-date: /usr/local/include/lws-plugin-ssh.h
[...]

Then I've built ttyd and it was ok:

[...]
[100%] Built target ttyd
Install the project...
-- Install configuration: ""
-- Installing: /usr/local/bin/ttyd
-- Removed runtime path from "/usr/local/bin/ttyd"
-- Up-to-date: /usr/local/share/man/man1/ttyd.1
[...]

But when I run it I got error:
ttyd: error while loading shared libraries: libwebsockets.so.12: cannot open shared object file: No such file or directory
Please advice!

@tsl0922
Copy link
Owner

tsl0922 commented Oct 19, 2017

This should not be ttyd's issue, maybe /usr/local/lib is not in your $LD_LIBRARY_PATH.

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
ldconfig

Run the above command and run ttyd again, if it works, you can put it to your bash profile.

@alex-bender
Copy link
Author

Thanks for the fast reply!
It works!

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