# Installing RoR on PenDrive

**URL:** <https://www.ruby-forum.com/t/installing-ror-on-pendrive/93182>\
**Category:** Rails\
**Created:** [April 28, 2007, 8:03pm UTC](https://www.ruby-forum.com/t/installing-ror-on-pendrive/93182 "2007-04-28T20:03:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/a88e57/32.png) [@kas](https://www.ruby-forum.com/u/kas)\
**Post date:** [April 28, 2007, 8:03pm UTC](https://www.ruby-forum.com/t/installing-ror-on-pendrive/93182/1 "2007-04-28T20:03:32Z")

</div>

Hi,

I’m a very noob ror programer (i’ve started yesterday), but for my live,  
i’ve pass all the day going up & down, and in order to have a constant  
learning, i want to install ruby on rails, mysql, mysql-front, and  
RadRails on a 512mb PenDrive.

I’ve followed these steps:

1. Download latest RubyOnRails windows installer.
2. Execute it settign the path to the desired folder into yout pend  
drive (i.e: G:\DATA\RUBYONRAILS)
3. Go to sleep.
4. When installed, type this on command:

cd \<PEN\_DRIVE\_UNIT\>  
gem install rails --remote -i G:\DATA\RUBYONRAILS

1. Be able to say YES to all question while sleeping.
2. Download a non-installable IDE for RoR, copy the folder to the  
\<PEN\_DRIVE\_UNIT\> (i.e: RadRails)

Note: When i say: go to sleep, is because the extraction / gem  
installation are veeery slow because of the usb port speed.

Also, i’ve developed a little app in C# .NET 2.0 to start Mysq,  
Mysql-front and RadRails.

But the dream stops here. When i open RadRails and try to create a new  
Rails project, i’ve got that message:

“rails” is not an intern or exter recognized command, program…

So i’ve configured it on:

Window / Preferences / Rails / Configuration

Not enought. Now when creating a rails project… :

“ruby” is not an intern or exter recognized command, program…

Ok. I’ve gone to Window / Preferences / Ruby / Installed Interpreters

And manually added “ruby” and the path on pen drive. Now, i have this  
error:

H:/RUBYONRAILS/lib/ruby/site\_ruby/1.8/rubygems.rb:301:in  
`report_activate_error': Could not find RubyGem rails (> 0) (Gem::LoadError) from H:/RUBYONRAILS/lib/ruby/site_ruby/1.8/rubygems.rb:238:in`activate’  
from H:/RUBYONRAILS/lib/ruby/site\_ruby/1.8/rubygems.rb:76:in  
`active_gem_with_options' from H:/RUBYONRAILS/lib/ruby/site_ruby/1.8/rubygems.rb:50:in`gem’  
from H:\RUBYONRAILS\bin\rails:15  
from -e:3:in `load’  
from -e:3

And that goes over me…

Please can anybody give me a gift or help?

---

<div class="post-metadata">

**Author:** ![kas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/a88e57/32.png) [@kas](https://www.ruby-forum.com/u/kas)\
**Post date:** [April 29, 2007, 6:52am UTC](https://www.ruby-forum.com/t/installing-ror-on-pendrive/93182/2 "2007-04-29T06:52:17Z")

</div>

Kas Naranja wrote:

> 1. Execute it settign the path to the desired folder into yout pend  
> drive (i.e: G:\DATA\RUBYONRAILS)
> 2. Go to sleep.
> 3. When installed, type this on command:

There are 2 distributions that will work straight off from an external  
drive. The first is InstantRails and the other was announced on this  
list a few weeks back but I couldn’t find it again. You may be able to  
search the archives of the list for that. I think, if you’re just  
looking for it from the idea of learning and doing initial development  
(not deployment), InstantRails is a very good bet!

Cheers  
Mohit.

---

<div class="post-metadata">

**Author:** ![kas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/a88e57/32.png) [@kas](https://www.ruby-forum.com/u/kas)\
**Post date:** [April 30, 2007, 6:05pm UTC](https://www.ruby-forum.com/t/installing-ror-on-pendrive/93182/3 "2007-04-30T18:05:03Z")

</div>

On 4/29/07, Mohit S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Kas Naranja wrote:
> 
> > Hi,
> > 
> > I’m a very noob ror programer (i’ve started yesterday), but for my live,  
> > i’ve pass all the day going up & down, and in order to have a constant  
> > learning, i want to install ruby on rails, mysql, mysql-front, and  
> > RadRails on a 512mb PenDrive.

> There are 2 distributions that will work straight off from an external  
> drive. The first is InstantRails and the other was announced on this  
> list a few weeks back but I couldn’t find it again. You may be able to  
> search the archives of the list for that. I think, if you’re just  
> looking for it from the idea of learning and doing initial development  
> (not deployment), InstantRails is a very good bet!

Okay, here is how to do it properly:  
[http://ruby.about.com/od/resources/ss/portable\_ruby.htm](http://ruby.about.com/od/resources/ss/portable_ruby.htm)  
[http://ruby.about.com/od/resources/qt/portable\_rails.htm](http://ruby.about.com/od/resources/qt/portable_rails.htm)

This allows your apps to execute properly off of the pen drive.  
It also has workarounds for when your pen drive maps to a  
different drive letter.

I have followed these instructions and find them to work fine. I  
would be worried about the long term effects on your USB drive.  
You end up doing an awful lot of write operations.

Just as a precaution I would probably create Databases on the  
windows C: drive (and copy them forward and back after use)

---

<div class="post-metadata">

**Author:** ![kas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/a88e57/32.png) [@kas](https://www.ruby-forum.com/u/kas)\
**Post date:** [May 1, 2007, 2:15pm UTC](https://www.ruby-forum.com/t/installing-ror-on-pendrive/93182/4 "2007-05-01T14:15:54Z")

</div>

You can use SQLite instead of MySQL to save some space and minimize  
writes  
to your pen drive. I’ve done this before but I tend to use SQLite3 to  
start  
almost all of my projects.

---

<div class="post-metadata">

**Author:** ![kas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/a88e57/32.png) [@kas](https://www.ruby-forum.com/u/kas)\
**Post date:** [April 30, 2007, 6:21pm UTC](https://www.ruby-forum.com/t/installing-ror-on-pendrive/93182/5 "2007-04-30T18:21:26Z")

</div>

Thank you all for reply.

I’ve succesfully crated a portable RoR with mysql-front and RadRaisl,  
updating my app in order to set to the environtment variable PATH, the  
path of the USB installed ror. It can be better, by the way.

Thank you richard for the links, i’ll try it!
