From: Duong Quang Ha Date: 2012-05-20T14:10:22+09:00 Subject: Re: Rubygems problem on ubuntu 12 (server) --e89a8ffba02b5cd6d504c070cd05 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello, It's seem that you haven't probably set up Ruby and rubygems. On Sun, May 20, 2012 at 11:49 AM, cristian d. wrote: test.rb:2:in `require': no such file to load -- rubygems (LoadError) > from test.rb:2 > > .-how gems works? > Rubygems is an package manager framework for Ruby like apt in Ubuntu. In order to get everything work quickly, I can suggest two ways. First method: You can install Ruby and rubygems from Ubuntu's repository. Then use 'gem install sinatra' to install sinatra gem (gem is equivalent to package in Linux). You can read more about rubygems at [1] Second method: You can install rvm (Ruby Version Manager) [2] and install a Ruby version you like and it'll install rubygems for you. > .-how my app works on a server? > At least in my system, it use WEBrick as web server because sinatra is a DSL, not a web server. You can also use *thin* as sinatra [3] recommend. > .-i must specify a root to my path? > > im really gettint tired with this... i searched over and over and i > found nothing, only 1 post telling how to create sim-links. Is that the > solution ? > reference: > http://www.ruby-forum.com/topic/957272 > > if so...from where i have to call the sim-link ? > > In my opinion, in Ubuntu, install Ruby and rubygems from source isn't good idea. > Thanks!! > > Atte. Christian > > -- > Posted via http://www.ruby-forum.com/. > > [1] http://rubygems.org/ [2] https://rvm.io// [3] http://www.sinatrarb.com/intro [3] Best regards, --=20 Duong Quang Ha (H=C3=A0 Quang D=C6=B0=C6=A1ng in Vietnamese) blog.haqduong.com --e89a8ffba02b5cd6d504c070cd05 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello,

It's seem that you haven't probably set u= p Ruby and rubygems.


On Sun, May 20, 2012 at 11:49 AM, cristian d. <lists@ruby-forum.com> wrote:

test.rb:2:in `require': no such file to load -- rubygems (LoadError) =C2=A0from test.rb:2

=C2=A0.-how gems works?

Rubygems is an = package manager framework for Ruby like apt in Ubuntu.
In order t= o get everything work quickly, I can suggest two ways.

First method: You can install Ruby and rubygems from Ubuntu's repo= sitory.
Then use 'gem install sinatra' to install sinatra gem = (gem is equivalent to=C2=A0
package=C2=A0in= Linux). You can read more about rubygems at [1]

Second meth= od: You can install rvm (Ruby Version Manager) [2] and install
a Ruby version you like and it'll install rubygems = for you.