Karmic and newer
Since Karmic, WebKit has been available in the Ubuntu archives as package libwebkit-1.0-2. It can be launched as a standalone demo (for testing bugs independently of the various browsers that use it) by running /usr/lib/webkit-1.0-2/libexec/GtkLauncher
You should be familiar with the terminal. Visit UsingTheTerminal to learn more about the terminal.
WebKit requires a newer version of libsoup than provided by the official Ubuntu repositories. Add the PPA for WebKit Team repository to get access to the right version:
sudo add-apt-repository ppa:webkit-team sudo apt-get update
WebKit requires libraries to successfully aquire, configure, and compile. You can get libraries by issuing the following command in your terminal:
sudo apt-get install subversion gtk-doc-tools autoconf automake libtool libgtk2.0-dev libpango1.0-dev libicu-dev libxslt-dev libsoup2.4-dev libsqlite3-dev gperf bison flex libjpeg62-dev libpng12-dev libxt-dev autotools-dev libgstreamer-plugins-base0.10-dev libenchant-dev libgail-dev
Get the source code
To acquire the WebKit source code issue the following command in your terminal:
svn checkout http://svn.webkit.org/repository/webkit/trunk ~/src/WebKit
Be patient, this step will take some time.
Compile the code
Change the directory in your terminal to the newly created ~/src/WebKit directory with the following command:
Now you will need to configure the source to be sure all dependencies are present on your system. Issue this simple command in your terminal:
If your ./autogen.sh command runs without any hitches you are ready to compile WebKit. Issue the following command in your terminal and grab a beer:
To install run:
sudo make install
Assuming no errors occurred during the build you can now test WebKit. Launch the demo browser by issuing the following command in your terminal:
Enter the following URL in the browser: http://acid3.acidtests.org, you should see something like the following image:
For more information about WebKit see the following links
< http://webkit.org/ > - The WebKit Open Source Project.
< http://trac.webkit.org/wiki/BuildingGtk > - Building the GTK+ port.
< http://trac.webkit.org/wiki/HackingGtk > - Hacker's guide to WebKit/GTK+.
< http://trac.webkit.org/wiki/ApplicationsGtk > - Applications using WebKit/GTK+.
< http://live.gnome.org/WebKitGtk > - Gnome hosted site dedicated to WebKit/GTK+.
< http://planet.webkit.org/ > - Planet WebKit provides updated news about WebKit.