Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to develop websocket applications in c++.

I've chosen to use websocket++ since it's a no-nonsense #include that doesn't try to fallback to ajax and could potentially be used with any other #include.

I'm not too sure exactly what packages are required to take full advantage of websocket++.

Please show me the name of these packages except the boost libraries which I'm pretty sure can be installed with libboost-all-dev.

Here's the list

Library Required for
boost_system    Builds that use ASIO or build environments without std::error_code
boost_regex Build environments without std::regex
boost_random    Client role only, build environments without std::random
libcrypto   Required for TLS socket component
libssl  Required for TLS socket component
libz    Required for compression extension support
libpthread  Required on posix for thread support
librt   Required on posix for high resolution timer support (some examples)
share|improve this question
up vote 0 down vote accepted

librt, libpthread, and libz should be included by a base Ubuntu install. It is likely that libcrypto and libssl are as well. What will not be installed by default are the development headers. Packages build-essential and libssl-dev should cover most, if not all of it.

Also keep in mind that the boost versions installed by apt lag the releases by over a year. 12.10 includes boost from Nov 2011, 13.04 will include boost from Feb 2012.

Due to some more extensive recent changes to the boost libraries to align them with C++11, there may be some feature limitations or workarounds necessary if you are not supplying your own more recent build of boost.

share|improve this answer
Again, thanks a lot for your great help with this! – user128334 Mar 6 '13 at 13:48
Details based upon zaphoyd's answer here: – user128334 Apr 8 '13 at 12:51

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.