How to install wt : Witty (2)

Continued from What the witty
This is the second post among the various wt related posts. Wt is a c++ web toolkit hat you can use to make websites in witty. Websites made in witty are efficient, fast, light and greener as compared to other websites made in other web based frameworks and technologies. This post is on how to install wt.
There are three ways in which you can install witty on ubuntu operating system for other operating system specific tutorials go to witty platform specific instructions on it's wiki page. This link includes instructions from installing witty on debian, windows, arch linux, etc etc  and even android. I am focusing now in this post on ubuntu and as i install and use wt on other operating systems that i eventually will, i will post on this blog. There are three ways of installing witty on ubuntu, they are:



1. Installing wt from official package
Installing wt from official ubuntu package is as easy as this command

$sudo apt-get install witty witty-dbg witty-doc witty-dev witty-examples 

this will install the required dependencies automatically. This is a nice place to give you a fact that witty requires boost and asio libraries for it's working. The witty examples will go into directory /usr/include/lib/WT/examples/  . You first need to know about compiling with cmake if you want to run these examples. You can find that easily on internet but witty specific cmake notes are on this wt wiki page. Though this installation is quite fast and easy but it has downside that this way you will not get the benifits of latest wt build due to time periods that debian and ubuntu need prior to stabilization. If you want to use the latest wt (without building from source) use the second method.


2. Installing wt from ppa repositories
To enjoy the latest wt and installing it without much hassle use the ppa repository which is unofficial wt repository managed by a debian contributor. To add this repository to your system in your terminal write down

sudo add-apt-repository ppa:user/ppa:pgquiles/wt
sudo apt-get install libwt*

This way you can enjoy the latest wt build and spare the problem of installing direct from source which is difficult for many beginners like me. 

3. Building from source
Building from source is an amazing exercise in it's own.

  • You learn how to build from source.
  • You understand about compiling large projects.
  • You understand about dependencies that wt has.
But this way would require a complete post on it's own which i will add later or will make a video tutorial of it and post here on this blog. 

2 comments:

  1. under 2. it must be:

    sudo add-apt-repository ppa:pgquiles/wt

    (delete 'ppa:user')

    ReplyDelete
  2. and you forgot:
    sudo apt-get update
    after add-apt-repository

    ReplyDelete