Skip to content
This repository has been archived by the owner on Aug 3, 2020. It is now read-only.

Installing visage app using rvm

JarleB edited this page Aug 12, 2011 · 6 revisions

I had some problems with versions of Ruby, and gems that visage-app depens upon. (sinatra,rack,haml etc.)

I found the best way around it to be a separate single user install of ruby and gems using rvm (https://rvm.beginrescueend.com/)

This is how I got visage-app running as a dedicated user on RHEL5 (which has too old ruby stack (in EPEL)) .

# yum install gcc
# yum install git
# useradd visage
su - visage 
[visage~] $ wget https://rvm.beginrescueend.com/install/rvm
[visage~] $ sh rvm

Running rvm adds [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" to .bash_profile

[visage~] $ exit
# su - visage 
[visage~] $ rvm install 1.8.7
[visage~] $ rvm ruby-1.8.7-p352
[visage~] $ exit
# yum install rrdtool-devel
# su - visage 
[visage~] $ gem install librrd
[visage~] $ gem install visage-app
[visage~] $ visage-app start

Using this method, visage-app does not start without the gem librrd and this gem depends on the rrdtool-devel package in RHEL5.