Development:Setup:Linux:RHEL: Difference between revisions
Jump to navigation
Jump to search
Line 53: | Line 53: | ||
==Install Native Expertiza Dependencies== | ==Install Native Expertiza Dependencies== | ||
Dependencies are for the gems raspell and rjb. | Dependencies are for the gems raspell and rjb. | ||
<pre style="white-space:normal;">sudo yum install aspell-devel java</pre> | <pre style="white-space:normal;">sudo yum install aspell-devel java-devel</pre> | ||
==Install Bundled Gems== | ==Install Bundled Gems== |
Revision as of 17:24, 6 January 2013
Prerequisites
- You must have shell access
- You must have root access (via sudo), or the required software must already be installed
Install Git
sudo yum install git
Get Expertiza
Expertiza Repository URLs
- (ssh, read/write) git@github.com:expertiza/expertiza.git
- (https, read/write) https://github.com/expertiza/expertiza.git
- (git, read-only) git://github.com/expertiza/expertiza.git
Default
git clone <remote>
git clone git@github.com:expertiza/expertiza.git
Options
git clone -b <branch> <remote>
git clone -b production git@github.com:expertiza/expertiza.git
Install RVM
Single User Mode (Recommended)
\curl -L https://get.rvm.io | bash -s stable
Load RVM as a Function
source ~/.rvm/bin/rvm
Multi User Mode
\curl -L https://get.rvm.io | sudo bash -s stable
Load RVM as a Function
source /etc/profile
Post-Installation
Is RVM a Function?
$ type rvm | head -1 rvm is a shell function
If not, try loading RVM as a function again. If it is still not a function, try reinstalling RVM.
Make sure all the dependencies are met for RVM
rvm requirements
This will show a yum command. Run it to install the dependancies for Ruby. For example:
sudo yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel make bzip2 autoconf automake libtool bison iconv-devel
Install Ruby v. 1.8.7
rvm install 1.8.7
rvm use 1.8.7
Create Expertiza Gemset (optional)
rvm use 1.8.7
rvm gemset create expertiza
rvm use 1.8.7@expertiza
Create a .rvmrc File (optional)
echo 'rvm use 1.8.7@expertiza' > .rvmrc
Install Native Expertiza Dependencies
Dependencies are for the gems raspell and rjb.
sudo yum install aspell-devel java-devel
Install Bundled Gems
Set JAVA_HOME to whatever your JDK version is:
export JAVA_HOME=/etc/alternatives/java_sdk_X.X.X
bundle install