Contents |
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
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
g++ is in a separate package from gcc in some distributions.
GTK+-devel and libxt-dev libraries are needed at least on Ubuntu Hoary.
fbuild has been used on:
Mozilla Linux Build Prerequisites
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