Skip to content

Instantly share code, notes, and snippets.

@lalinsky
Created January 7, 2012 11:18
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lalinsky/1574473 to your computer and use it in GitHub Desktop.
Save lalinsky/1574473 to your computer and use it in GitHub Desktop.
MusicBrainz Server Setup on Ubuntu
sudo apt-get install cpanminus liblocal-lib-perl libossp-uuid-perl
sudo apt-get install libxml2-dev libpq-dev libexpat1-dev
echo 'eval `perl -Mlocal::lib`' >>~/.bashrc
eval `perl -Mlocal::lib`
perl Makefile.PL
cpanm -n .
sudo apt-get install postgresql-server-dev-8.4 gcc-4.4 libicu-dev postgresql-contrib-8.4
cd postgresql-musicbrainz-collate/
make PG_CONFIG=/usr/lib/postgresql/8.4/bin/pg_config
sudo make PG_CONFIG=/usr/lib/postgresql/8.4/bin/pg_config install
cd ../postgresql-musicbrainz-unaccent/
make PG_CONFIG=/usr/lib/postgresql/8.4/bin/pg_config
sudo make PG_CONFIG=/usr/lib/postgresql/8.4/bin/pg_config install
cd ..
PATH=/usr/lib/postgresql/8.4/bin/:$PATH ./admin/InitDb.pl --createdb --clean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment