GetHyperActive
Version 137 (marker, 11/10/2011 03:21 pm)
| 1 | 136 | marker | |
|---|---|---|---|
| 2 | 135 | marker | *Important note: we're not quite sure whether these instructions work in their current form, so please try them and report how you get on at #5893* |
| 3 | 136 | marker | |
| 4 | 135 | marker | |
| 5 | 59 | yossarian | h1. Get Hyper Active! |
| 6 | 45 | yossarian | |
| 7 | 125 | garcon | In order to get the site running, you'll need to download a bunch of stuff. First, you need to have all the right supporting software installed. Then you need to download the Hyperactive code, configure the site to run on your machine, and run it. |
| 8 | 68 | yossarian | |
| 9 | 68 | yossarian | The installation docs are written from the standpoint of someone running a Debian GNU/Linux based operating system (such as Debian or Ubuntu). We'd love to have install docs for Red Hat, Mac OS X, or other system types, so if you install it on one of those OSs, please let us know or make a wiki page for it. |
| 10 | 68 | yossarian | |
| 11 | 134 | yossarian | h2. Install the necessary packages on a Debian-based system, e.g. Debian 6: |
| 12 | 1 | ||
| 13 | 46 | yossarian | <pre> |
| 14 | 133 | yossarian | sudo apt-get install ruby ruby1.8 rdoc rdoc1.8 ri ri1.8 irb irb1.8 ruby1.8-dev build-essential mysql-server libmysql-ruby imagemagick libmagick9-dev libopenssl-ruby git-core ffmpeg ffmpeg2theora bittornado libxapian-ruby1.8 libxapian15 libimage-exiftool-perl jhead libmysqlclient16 libmysqlclient15-dev ghostscript flvtool2 |
| 15 | 126 | garcon | # |
| 16 | 126 | garcon | # previously, the following were suggested as well: |
| 17 | 126 | garcon | # libmysqlclient16 libmysqlclient15-dev |
| 18 | 46 | yossarian | </pre> |
| 19 | 1 | ||
| 20 | 114 | yossarian | * 1/10/2009 - On Ubuntu 9.04 I had to replace libmagick9-dev with libmagickwand-dev |
| 21 | 1 | * On Ubuntu 10.04 and 10.10, replace @libmysqlclient15off@ with @libmysqlclient16@ and @libmysqlclient15-dev@ with @libmysqlclient16-dev@ |
|
| 22 | 137 | marker | |
| 23 | 137 | marker | h2. Build swftools |
| 24 | 137 | marker | |
| 25 | 137 | marker | Hyperactive needs the swftools package, but that's not in the Debian repositories. But don't worry, we can make it ourselves. Start by installing the build dependencies like this |
| 26 | 137 | marker | <pre> |
| 27 | 137 | marker | # sudo apt-get install libgif-dev libjpeg8-dev libfreetype6-dev |
| 28 | 137 | marker | </pre> |
| 29 | 137 | marker | then grab the source and unpack it |
| 30 | 137 | marker | <pre> |
| 31 | 137 | marker | # wget http://swftools.org/swftools-0.9.1.tar.gz |
| 32 | 137 | marker | # tar -xvf swftools-0.9.1.tar.gz |
| 33 | 137 | marker | </pre> |
| 34 | 137 | marker | if you're using a recent version of libjpeg (>6) you also need to pull in the source tarball for xpdf like this |
| 35 | 137 | marker | <pre> |
| 36 | 137 | marker | # cd swftools-0.9.1/lib/pdf |
| 37 | 137 | marker | # wget ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.02.tar.gz |
| 38 | 137 | marker | </pre> |
| 39 | 137 | marker | then change directory up the source tree, configure, build and install: |
| 40 | 137 | marker | <pre> |
| 41 | 137 | marker | # cd ../.. |
| 42 | 137 | marker | # ./configure |
| 43 | 137 | marker | # make |
| 44 | 137 | marker | # sudo make install |
| 45 | 137 | marker | </pre> |
| 46 | 97 | Dan | |
| 47 | 46 | yossarian | h2. Install ruby gems: |
| 48 | 1 | ||
| 49 | 46 | yossarian | <pre> |
| 50 | 105 | yossarian | wget http://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgz |
| 51 | 106 | yossarian | tar -xvzf rubygems-1.3.5.tgz |
| 52 | 106 | yossarian | cd rubygems-1.3.5 |
| 53 | 48 | yossarian | sudo ruby setup.rb |
| 54 | 50 | yossarian | sudo ln -s /usr/bin/gem1.8 /usr/bin/gem |
| 55 | 52 | yossarian | cd .. |
| 56 | 46 | yossarian | </pre> |
| 57 | 1 | ||
| 58 | 1 | h2. Download and install necessary rubygems |
|
| 59 | 1 | ||
| 60 | 127 | yossarian | First, set up the gem sources to use. Some gems need specific versions installed, most don't. |
| 61 | 1 | <pre> |
|
| 62 | 1 | gem sources -a http://gems.github.com |
|
| 63 | 118 | yossarian | sudo gem install rmagick -v 2.12.2 |
| 64 | 117 | yossarian | sudo gem install json -v=1.2.4 |
| 65 | 131 | yossarian | sudo gem install will_paginate -v=2.3.11 |
| 66 | 132 | mish | sudo gem install faker -v=0.3.1 |
| 67 | 132 | mish | sudo gem install rake ruby-debug daemons slave rio simple-rss mysql mongrel echoe mini_exiftool Ruby-IRC calendar_date_select subdomain-fu shoulda hpricot quietbacktrace machinist acts_as_tree acts_as_list uploadcolumn htmlentities rghost httparty ri_cal |
| 68 | 46 | yossarian | </pre> |
| 69 | 46 | yossarian | |
| 70 | 90 | yossarian | h2. Grab the code |
| 71 | 47 | yossarian | |
| 72 | 1 | <pre> |
|
| 73 | 90 | yossarian | git clone git://git.escapegoat.org/hyperactive.git |
| 74 | 90 | yossarian | </pre> |
| 75 | 90 | yossarian | |
| 76 | 90 | yossarian | OR if you can only check out via http due to firewall restrictions: |
| 77 | 90 | yossarian | |
| 78 | 90 | yossarian | <pre> |
| 79 | 90 | yossarian | git clone http://git.escapegoat.org/git/hyperactive.git |
| 80 | 46 | yossarian | </pre> |
| 81 | 46 | yossarian | |
| 82 | 96 | yossarian | If you know that you have commit access to the code, you can get it here: |
| 83 | 96 | yossarian | |
| 84 | 96 | yossarian | <pre> |
| 85 | 96 | yossarian | git clone git@git.escapegoat.org:hyperactive.git |
| 86 | 96 | yossarian | </pre> |
| 87 | 96 | yossarian | |
| 88 | 96 | yossarian | |
| 89 | 46 | yossarian | h2. Install the torrent gem from the lib folder |
| 90 | 47 | yossarian | |
| 91 | 46 | yossarian | <pre> |
| 92 | 51 | yossarian | sudo gem install hyperactive/lib/transmission-0.1.gem |
| 93 | 46 | yossarian | </pre> |
| 94 | 1 | ||
| 95 | 125 | garcon | h2. Development or production? |
| 96 | 91 | mish | |
| 97 | 125 | garcon | What you do next depends upon whether you are running the code for development or production purposes. |
| 98 | 116 | Dan | |
| 99 | 125 | garcon | If you just want to play with the code locally, as a development install, you can use the native web server. Follow the instructions for database migration and setup at [[DevSetUp]]. |
| 100 | 79 | yossarian | |
| 101 | 128 | yossarian | Alternatively, if you are planning on running hyperactive in a production environment, you will need to set it up with Apache or some other webserver; instructions are at [[SysAdminHome]]. |