INSTALL
author Vincent Tondellier <tonton+hg@team1664.org>
Thu, 24 Sep 2015 01:49:55 +0200
changeset 75 e3912669678c
parent 51 2894d97715c9
permissions -rw-r--r--
Overhaul the repository link functionality - Fix regex (repositories with number or other characters were not accepted) - Url escape template arguments by default (the "do not escape" <%== $var %> markers can be used if needed) - Also support a generic repository type instead of only repotype:repopath in the configuration ($repotype:$repopath has priority over $repotype if both are defined) - Cache compiled templates

Web interface dependencies:
- perl >= 5.10
- Mojolicious >= 2.98
- Mojolicious::Plugin::BootstrapPagination
- perl-UUID
- jquery

On debian, install libuuid-perl, libmojolicious-perl (from wheezy-backports) and libjs-jquery.

Mojolicious::Plugin::BootstrapPagination can be installed with cpan, or you
can create a debian package with cpan2deb Mojolicious::Plugin::BootstrapPagination

Edit CrashTest.conf and change the paths to match your environment.

If you want to use the SQL backend for a faster index page, see dist.ini for
the additional requirements. Then, you can create the tables with :
$ ./CrashTest.pl db create

Next, you need to get and build the json minidump-stackwalk from soccoro:
https://github.com/mozilla/socorro/tree/master/minidump-stackwalk/

Full compilation instructions:
$ svn co http://google-breakpad.googlecode.com/svn/trunk google-breakpad
$ mkdir obj-breakpad
$ cd obj-breakpad
$ ../google-breakpad/configure && make
$ cd ../
$ mkdir minidump-stackwalk
$ cd minidump-stackwalk
$ wget https://github.com/mozilla/socorro/raw/master/minidump-stackwalk/{Makefile,stackwalker.cc}
$ make BREAKPAD_SRCDIR=../google-breakpad/src BREAKPAD_LIBS="../obj-breakpad/src/libbreakpad.a ../obj-breakpad/src/third_party/libdisasm/libdisasm.a" OBJS=/usr/lib/libjsoncpp.a JSON_INCLUDEDIR=/usr/include/jsoncpp

Note: the paths above are for the system-installed libjsoncpp on debian. Get
the jsoncpp from socorro repository, or adjust the paths for you system if you
use another distribution.

Copy stackwalker to the path configured in CrashTest.conf.

No, you can test:
$ hypnotoad -f ./CrashTest.pl

The submit URL is /submit and is compatible with socorro.