Outreachy Mid-Term

Installing Wattsi on Ubuntu 14.04

This week i installed Wattsi. “Wattsi” is a build tool for creating the HTML Standard from its source. It works in concert with other scripts.

I am adding the steps of how to install it locally, and how to cope if any of the following errors occurs mentioned below:

Follow the Readme of Wattsi:


Mainly the errors occur due to incompatible version of fpc with wattsi:

1. Ubuntu comes with the pre-installed package of Free Pascal Compiler. Firstly check the version by typing fpc in terminal. Please make sure the version is compatible with the Wattsi’s required version which is currently 3.0.0 .

2. otherwise first remove the Pre-installed package by:
sudo apt-get remove fpc*
and then install a new by choosing the appropriate operating system from: http://www.freepascal.org/download.var

3. After downloading the package,
when the .tar file is downloaded, first untar the file, in some directory where you have write permission, using the following command:

tar -xvf fpc.tar

To install Free Pascal, all that needs to be done now is give the following command:

Some other important links:

4. After adding wattsi to the same root directory as the html-build and whatwg/html,
Follow these steps:
1)  cd wattsi/
2) ./build.sh

If for some reason you need to build a wattsi binary with 64-bit code, you can do so by adding -Px86_64 to the DEFINES line in the src/build.sh file, so that it looks like this:


5. html-build script uses wattsi from a remote server, but if you have a slow internet connection, it might take a very long time to parse or break in between. So for me it was better to install locally.

Project’s Progress this week:

Here are the PR’s i filed and are successfully merged:
1. https://github.com/whatwg/html/pull/484
2. https://github.com/whatwg/html/pull/485
3. https://github.com/whatwg/html/pull/499
4. https://github.com/whatwg/html/pull/556

It’s been halfway now. Internship has made me learned alot and will do so with every issue i do.

Thanks for reading


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s