From: Jose Figueroa Date: 2012-05-20T14:34:36+09:00 Subject: Re: Rubygems problem on ubuntu 12 (server) --Apple-Mail=_3DF85581-4851-44B6-B9D1-28E760C6BB25 Content-Type: multipart/alternative; boundary="Apple-Mail=_4E66DEE0-E019-4CB7-9C4B-51C3712AE297" --Apple-Mail=_4E66DEE0-E019-4CB7-9C4B-51C3712AE297 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hello, I guess you can try to use rvm and after that install sinatra. after installing rvm: http://blog.jam.net.ve/2011/05/17/instalando-rvm-ruby-rails-en-ubuntu/ I guess you speak spanish because of the way you write. After you install the rvm and the version of the ruby, you can install = sinatra easily gem install sinatra And that's it. And try again your script. Regards, Jose On May 20, 2012, at 12:10 AM, Duong Quang Ha wrote: > Hello, >=20 > It's seem that you haven't probably set up Ruby and rubygems. >=20 >=20 > On Sun, May 20, 2012 at 11:49 AM, cristian d. = wrote: >=20 > test.rb:2:in `require': no such file to load -- rubygems (LoadError) > from test.rb:2 >=20 > .-how gems works? >=20 > Rubygems is an package manager framework for Ruby like apt in Ubuntu. > In order to get everything work quickly, I can suggest two ways. >=20 > 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=20 > package in Linux). You can read more about rubygems at [1] >=20 > Second method: You can install rvm (Ruby Version Manager) [2] and = install > a Ruby version you like and it'll install rubygems for you. > =20 > .-how my app works on a server? >=20 > 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. > =20 > .-i must specify a root to my path? >=20 > 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 >=20 > if so...from where i have to call the sim-link ? >=20 >=20 > In my opinion, in Ubuntu, install Ruby and rubygems from source isn't > good idea. > =20 > Thanks!! >=20 > Atte. Christian >=20 > -- > Posted via http://www.ruby-forum.com/. >=20 >=20 >=20 > [1] http://rubygems.org/ > [2] https://rvm.io// > [3] http://www.sinatrarb.com/intro > [3] >=20 >=20 > Best regards, >=20 > --=20 > Duong Quang Ha (H=C3=A0 Quang D=C6=B0=C6=A1ng in Vietnamese) > blog.haqduong.com >=20 --Apple-Mail=_4E66DEE0-E019-4CB7-9C4B-51C3712AE297 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 http://blog.jam.net.ve/2011/05/17/instalando-rvm-ruby-rails-en-ubunt= u/

I guess you speak spanish because of the = way you write.

After you install the rvm and = the version of the ruby, you can install sinatra = easily

gem install = sinatra

And that's = it.

And try again your = script.

Regards,
Jose

On May 20, 2012, at 12:10 AM, Duong Quang Ha wrote:

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. = <lists@ruby-forum.com> 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/.



[3]


Best = regards,

--
Duong Quang Ha (H=C3=A0 Quang = D=C6=B0=C6=A1ng in Vietnamese)

= --Apple-Mail=_4E66DEE0-E019-4CB7-9C4B-51C3712AE297-- --Apple-Mail=_3DF85581-4851-44B6-B9D1-28E760C6BB25 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) iQEcBAEBAgAGBQJPuIJlAAoJEHHWH+CBmbyg6YgH/1+IeZuW6OM7vSjEjNuc69z7 HIXO9vACSbj9SHMhkIbecTpdwCvDsxkBUgQa0HL+CN226HECF4VvNlWizBOYYVVy fb4NizkRF16i6jE2JX65dZBa10i2XZI5ONpADl/fQ73YYJ17/LzDtqiemwOZrwKo qiEuHnrSEpJuNJ2JXYa7Xt7lDiHOLM144qaoxGx+Wicj2NGcnxDSi3be+y0iUchq P73Jp1Ll5Kac2XQw/I2EewW9yXxXejsdMZTAU+lHexzW8HWrswtqm01VrZSOaUy+ BipYS7O9s4FAtZwTYkg2bwNRYdkGL59GQoRlI9Knev1z/j992CeJsijtZYRmKQ0= =/00Q -----END PGP SIGNATURE----- --Apple-Mail=_3DF85581-4851-44B6-B9D1-28E760C6BB25--