Forums General

New to Bitnami and Ruby and need help

Subscribe to New to Bitnami and Ruby and need help 4 post(s), 3 voice(s)

 
Avatar fogsmith 2 post(s)

Hey guys – I am trying to learn Ruby and a “friend” encouraged me to download and install Bitnami Ruby Stacks.

This arena is very new to me and as you can imagine without good guidance it is a bit frustrating.

So here’s where am I am -

1. can download and install much of Rubystacks.
2. can get script/server running
3. can execute a simple script/generate command
4. do not know how to get Rubystack to point to sqlite3
5. that’s as far as I have gotten so far so…

if anyone out there can help me along my journey (without making me feel like an ass) your help would be greatly appreciated.

Many thanks…

 
Avatar beltran Administrator 417 post(s)

Hi,

1. can download and install much of Rubystacks.

You can install several RubyStacks in different folders. If you want to run simultaneously, the installer will ask you about the Apache and MySQL ports during the installation. You only should modify them.

can get script/server running

The RubyStack includes a sample application in the projects folder. You only should access from the “rubyconsole” and execute script/server to start it. On Windows systems you have a shortcut in the Start menu to access to the rubyconsole. On OS X and Linux you can access from the terminal:

$ cd <installation_directory>
$ ./rubyconsole
$ cd projects/rubystack
$ script/server

3. can execute a simple script/generate command

Yes, you can execute this command from the rubyconsole

4. do not know how to get Rubystack to point to sqlite3

You only should modify the database.yml file in your application to use sqlite3. This is the database used by the default sample application.

I hope it helps.

 
Avatar fogsmith 2 post(s)

Thanks so much for replying. In the meantime I have gotten quite lucky (I guess the saying the more you prepare the luckier you get) and was able to get to the point where I could begin developing a new app but now I get the error message “no such file to load—sqlite3”.

I will continue to poke around and find out where I am making a mistake.

Thanks again!

Jeff

 
Avatar antonio Administrator 524 post(s)

Hi,

Load the environment variables by calling the ‘use_rubystack’ script and then type

gem install sqlite3

Tell us if it works!

Cheers

Forums General