-
Notifications
You must be signed in to change notification settings - Fork 0
Setup 0.3X on Ubuntu 12.10
First, insert (or overwrite) the following into /etc/apt/sources.list
:
deb http://archive.ubuntu.com/ubuntu quantal main universe multiverse
deb http://archive.ubuntu.com/ubuntu quantal-updates main universe multiverse
deb http://security.ubuntu.com/ubuntu quantal-security main universe multiverse
deb http://archive.canonical.com/ubuntu quantal partner
to get the latest packages.
Next, apt-get update
and apt-get upgrade
to get up to date.
Then, to get all dependencies except for boost, apt-get install gcc g++ build-essential libssl-dev
.
Download boost (1.53.0 as of this edit) wget http://sourceforge.net/projects/boost/files/boost/1.53.0/boost_1_53_0.tar.bz2/download
; rename the downloaded file mv download boost_1_53_0.tar.bz2
; unzip it tar xvfj boost_1_53_0.tar.bz2
; ./bootstrap.sh --exec-prefix=/usr/local
; ./b2
; sudo ./b2 install
.
Then, make sure your libraries are linked by inserting LD_LIBRARY_PATH=/usr/local/lib
into /etc/bash.profile
.
Finally, get the websocket++ zip wget https://github.com/zaphoyd/websocketpp/archive/experimental.zip
and unzip it unzip experimental.zip
, and you're ready to go!
Now, you compile like this g++ -O3 print_server.cpp -I ~/websocketpp-experimental/ -lboost_system
.