Development:Setup:Linux:RHEL: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
No edit summary
Line 3: Line 3:
* You must have root access (via sudo), or the required software must already be installed
* You must have root access (via sudo), or the required software must already be installed
==Install Git==
==Install Git==
<pre>sudo yum install git</pre>
<pre style="white-space:normal;">sudo yum install git</pre>
==Get Expertiza==
==Get Expertiza==
====Expertiza Repository URLs====
====Expertiza Repository URLs====
Line 10: Line 10:
* (git, read-only) git://github.com/expertiza/expertiza.git
* (git, read-only) git://github.com/expertiza/expertiza.git
====Default====
====Default====
<pre>git clone <remote></pre>
<pre style="white-space:normal;">git clone <remote></pre>
<pre>git clone git@github.com:expertiza/expertiza.git</pre>
<pre style="white-space:normal;">git clone git@github.com:expertiza/expertiza.git</pre>
====Options====
====Options====
<pre>git clone -b <branch> <remote></pre>
<pre style="white-space:normal;">git clone -b <branch> <remote></pre>
<pre>git clone -b production git@github.com:expertiza/expertiza.git</pre>
<pre style="white-space:normal;">git clone -b production git@github.com:expertiza/expertiza.git</pre>


==Install RVM==
==Install RVM==
[https://rvm.io/rvm/install/ RVM Install]
[https://rvm.io/rvm/install/ RVM Install]
====Single User Mode (Recommended)====
====Single User Mode (Recommended)====
<pre>\curl -L https://get.rvm.io | bash -s stable</pre>
<pre style="white-space:normal;">\curl -L https://get.rvm.io | bash -s stable</pre>
=====Load RVM as a Function=====
=====Load RVM as a Function=====
<pre>source ~/.rvm/bin/rvm</pre>
<pre style="white-space:normal;">source ~/.rvm/bin/rvm</pre>


====Multi User Mode====
====Multi User Mode====
<pre>\curl -L https://get.rvm.io | sudo bash -s stable</pre>
<pre style="white-space:normal;">\curl -L https://get.rvm.io | sudo bash -s stable</pre>
=====Load RVM as a Function=====
=====Load RVM as a Function=====
<pre>source /etc/profile</pre>
<pre style="white-space:normal;">source /etc/profile</pre>


====Post-Installation====
====Post-Installation====
=====Is RVM a Function?=====
=====Is RVM a Function?=====
<pre>$ type rvm | head -1
<pre style="white-space:normal;">$ type rvm | head -1
rvm is a shell function</pre>
rvm is a shell function</pre>
If not, try loading RVM as a function again. If it is still not a function, try reinstalling RVM.
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=====
=====Make sure all the dependencies are met for RVM=====
<pre>rvm requirements</pre>
<pre style="white-space:normal;">rvm requirements</pre>
This will show a yum command. Run it to install the dependancies for Ruby.
This will show a yum command. Run it to install the dependancies for Ruby.
For example:
For example:
Line 41: Line 41:


==Install Ruby v. 1.8.7==
==Install Ruby v. 1.8.7==
<pre>rvm install 1.8.7</pre>
<pre style="white-space:normal;">rvm install 1.8.7</pre>
<pre>rvm use 1.8.7</pre>
<pre style="white-space:normal;">rvm use 1.8.7</pre>


==Create Expertiza Gemset (optional)==
==Create Expertiza Gemset (optional)==
<pre>rvm use 1.8.7</pre>
<pre style="white-space:normal;">rvm use 1.8.7</pre>
<pre>rvm gemset create expertiza</pre>
<pre style="white-space:normal;">rvm gemset create expertiza</pre>


==Install Native Expertiza Dependencies==
==Install Native Expertiza Dependencies==

Revision as of 16:39, 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

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

RVM Install

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

Install Native Expertiza Dependencies

Install Bundled Gems

Set Up MySQL

Build the Expertiza Database