These are the instructions to get Avalon up and running on a clean RHEL machine. Your mileage may vary for other Linux distributions.
Install Avalon
Install developer tools
Install packages required for dependencies to build properly.
yum install gcc-c++ zlib-devel readline-devel openssl-devel java-1.7.0-openjdk
Install RVM to manage Ruby (http://rvm.io/)
curl -L https://get.rvm.io | bash -s stable --ruby
Reload shell environment using the instructions given in rvm's installation output.
Make sure ruby installed correctly
rvm list
Update rubygem
gem update --system
Install bundler for managing dependencies
gem install bundler
Install & setup Git
Install Git
yum install git
The next step is for committers.
Create an account on github and set up SSH keys. For more help see the detailed instructions
cd ~/.ssh ssh-keygen -t rsa -C "your_email@youremail.com"
Install Matterhorn dependencies
Install subversion
yum install subversion
Download Matterhorn's dependency installation scripts
svn checkout http://opencast.jira.com/svn/MH/trunk/docs/scripts/3rd_party matterhorn_dependencies cd matterhorn_dependencies
Read the README.txt file for instructions on how to run the ./menu3p installation script.
This may take a LONG time to run so have something else to keep you busy!
Setup Avalon
The next step may be slightly different depending on your operating system if you are not using RHEL6. When running bundle install you may need to set: QMAKE=/usr/bin/qmake-qt4
Add the required dependencies so that all gems will install properly.
yum install ruby-devel libxml2-devel libxslt libxslt-devel libcurl-devel sqlite-devel
Go to your workspace. This command will download avalon source from github. Run bundle install to install all of the necessary dependency gems.
git clone git@github.com:avalonmediasystem/avalon.git cd avalon bundle install --gemfile=Gemfile.first QMAKE=/usr/bin/qmake-qt4 bundle install
Prepare the databases
rake db:migrate rake db:test:prepare
Install the hydra-jetty, avalon-felix, and avalon-red5 submodules. The hydra-jetty submodule contains Fedora and Solr and can be managed via jettywrapper rake tasks. The avalon-felix submodule is a custom instance of Matterhorn. avalon-red5 is a custom instance of Red5 with Matterhorn integration. These two servers can also be controlled with rake tasks. After installing them, force them to track the master branch for their respective repositories.
git submodule init git submodule update cd jetty/ git fetch --tags git checkout 4.x cd .. cd felix/ git fetch --tags git checkout 1.4.x cd ..
Start all services
rake jetty:config rake avalon:services:start
Test Avalon
From your avalon installation execute
rails server
Navigate to http://localhost:3000