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 dependent packages.
yum install gcc-c++ zlib-devel readline-devel openssl-devel java-1.7.0-openjdk
Install RVM, we'll use RVM to manage Ruby (http://rvm.io/)
curl -L https://get.rvm.io | bash -s stable --ruby
Reload shell environment using instructions given in rvm 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. Detailed instructions
cd ~/.ssh ssh-keygen -t rsa -C "your_email@youremail.com"
Install Matterhorn dependencies
First install subversion:
yum install subversion
Then 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 Hydrant
The next step may be slightly different depending on your operating system if not 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 hydrant source from github to a directory. Then 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, hydrant-felix, and hydrant-red5 submodules. The hydra-jetty submodule contains fedora and solr and can be run via jettywrapper rake tasks (e.g. rake jetty:start). The hydrant-felix submodule is a VoV configured instance of Matterhorn and hydrant-red5 is a VoV configured instance of Red5 which has Matterhorn integration. These two servers can also be controlled with rake tasks similar to jetty. 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 these services
rake jetty:config rake avalon:services:start
Test Hydrant
Inside hydrant folder, run
rails server
Navigate to http://localhost:3000
Follow instructions for Logging in via IU CAS