Flock | the social web browser

Build setup on Linux

Contents

[edit] Ubuntu Specific

The following packages need to be installed in order for Flock to compile successfully on Ubuntu
sudo apt-get build-dep firefox
sudo apt-get install subversion libcurl4-openssl-dev

Ubuntu by default has the wrong shell, /bin/dash. You need to change this (if you haven't already) to /bin/bash. The following will work:
sudo dpkg-reconfigure dash

You are probably wondering why Ubuntu does not use bash: https://wiki.ubuntu.com/DashAsBinSh

[edit] Shell

  • bash: the scripts depend on bash being the default shell.

If you have the wrong default shell (just like current versions of Ubuntu), you will get the following error:
fbuild-initialsetup.sh: 201: Syntax error: "(" unexpected

The default shell can be verified by checking what file /bin/sh is symlinked to:
$ ls -l /bin/sh
lrwxrwxrwx 1 root root 4 Nov 16 04:55 /bin/sh -> dash

This will re-set the shell:
$ rm /bin/sh
$ ln -s /bin/bash /bin/sh

[edit] Notes

  • g++ is in a separate package from gcc in some distributions.
  • GTK+-devel and libxt-dev libraries are needed at least on Ubuntu Hoary.
  • Fedora - all packages in official repos (some have different names, e.g. gcc-c++)

[edit] Successes

fbuild has been used on:

  • Fedora 7, Fedora 9
  • Debian testing
  • Ubuntu Breezy 5.10/Dapper 6.06/Edgy 6.10/Feisty 7.04/Gutsy 7.10/ Hardy 8.04

[edit] Additional Information

Mozilla Linux Build Prerequisites

[edit] Pulling the source and building Flock

Get the build script:
svn export svn://svn-mirror.flock.com/master/tools/trunk/fbuild/bin/fbuild-initialsetup.sh fbuild-initialsetup.sh

To pull code and build with anonymous access:
fbuild-initalsetup.sh --anonymous --buildbase flock- trunk

To pull code and build with an authorized account (must be setup before hand):
fbuild-initalsetup.sh --user <your_username_here> --buildbase flock- trunk