SunQuest
           Ruby Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesRuby Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old May 12th, 2008, 11:34 AM
Rogare Rogare is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2008
Posts: 57 Rogare User rank is Private First Class (20 - 50 Reputation Level)Rogare User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 12 h 51 m 44 sec
Reputation Power: 1
Server error in RoR

I recently installed Ruby and Rails on it, and tried to run the server using:
Code:
ruby script\server

After doing so I tried to enter one of my existing controllers (which I made before and got
Code:
MissingSourceFile in My testController#index

no such file to load -- sqlite3

RAILS_ROOT: C:/test

This error occurred while loading the following files:
   sqlite3

Request

Parameters:

None

Show session dump


Response

Headers:

{"cookie"=>[],
 "Cache-Control"=>"no-cache"}


What to do to solve this problem??

Reply With Quote
  #2  
Old May 12th, 2008, 12:45 PM
L7Sqr L7Sqr is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jan 2004
Location: Constant Limbo
Posts: 591 L7Sqr User rank is Second Lieutenant (5000 - 10000 Reputation Level)L7Sqr User rank is Second Lieutenant (5000 - 10000 Reputation Level)L7Sqr User rank is Second Lieutenant (5000 - 10000 Reputation Level)L7Sqr User rank is Second Lieutenant (5000 - 10000 Reputation Level)L7Sqr User rank is Second Lieutenant (5000 - 10000 Reputation Level)L7Sqr User rank is Second Lieutenant (5000 - 10000 Reputation Level)L7Sqr User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 13 h 51 m 38 sec
Reputation Power: 100
Send a message via AIM to L7Sqr
Code:
irb(main):001:0> require 'sqlite3'
LoadError: no such file to load -- sqlite3
        from (irb):1:in `require'
        from (irb):1

You need to ensure that you have all sqlite3 requirements satisfied before you can include the files (notice the bolded section above)
See here
__________________
-- I'll provide you with reference points; if they dont work, refer to something else.

If you process text, this might make your life a little easier.

Reply With Quote
  #3  
Old May 12th, 2008, 12:55 PM
Rogare Rogare is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2008
Posts: 57 Rogare User rank is Private First Class (20 - 50 Reputation Level)Rogare User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 12 h 51 m 44 sec
Reputation Power: 1
Two questions about it:
1. I have Windows XP Home Edition, and I know PHP doesn't support Home Edition - the SQLite does?
2. Isn't MySQL better than SQLite?

Reply With Quote
  #4  
Old May 12th, 2008, 03:33 PM
L7Sqr L7Sqr is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jan 2004
Location: Constant Limbo
Posts: 591 L7Sqr User rank is Second Lieutenant (5000 - 10000 Reputation Level)L7Sqr User rank is Second Lieutenant (5000 - 10000 Reputation Level)L7Sqr User rank is Second Lieutenant (5000 - 10000 Reputation Level)L7Sqr User rank is Second Lieutenant (5000 - 10000 Reputation Level)L7Sqr User rank is Second Lieutenant (5000 - 10000 Reputation Level)L7Sqr User rank is Second Lieutenant (5000 - 10000 Reputation Level)L7Sqr User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 13 h 51 m 38 sec
Reputation Power: 100
Send a message via AIM to L7Sqr
Quote:
Originally Posted by Rogare
1. I have Windows XP Home Edition, and I know PHP doesn't support
Home Edition - the SQLite does?
I do not know enough about PHP or Windows to give you a definitive answer.
Quote:
Originally Posted by Rogare
2. Isn't MySQL better than SQLite?
This is an opinion question (especially as stated). You will have to investigate what exactly you need out of a DB and what each of the variations you are considering offer.

Reply With Quote
  #5  
Old May 12th, 2008, 04:48 PM
ptr2void ptr2void is offline
I haz teh codez!
Dev Shed Novice (500 - 999 posts)
 
Join Date: Dec 2003
Location: MA
Posts: 862 ptr2void User rank is First Lieutenant (10000 - 20000 Reputation Level)ptr2void User rank is First Lieutenant (10000 - 20000 Reputation Level)ptr2void User rank is First Lieutenant (10000 - 20000 Reputation Level)ptr2void User rank is First Lieutenant (10000 - 20000 Reputation Level)ptr2void User rank is First Lieutenant (10000 - 20000 Reputation Level)ptr2void User rank is First Lieutenant (10000 - 20000 Reputation Level)ptr2void User rank is First Lieutenant (10000 - 20000 Reputation Level)ptr2void User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 5 h 43 m 42 sec
Reputation Power: 164
Quote:
Originally Posted by Rogare
Two questions about it:
1. I have Windows XP Home Edition, and I know PHP doesn't support Home Edition - the SQLite does?
2. Isn't MySQL better than SQLite?


What's with the jump from Ruby on Rails to PHP? That was a total nonsequitur.

Anyway, PHP will run on XP Home. Google up WAMP or XAMPP for implementations of the LAMP stack (Apache/MySQL/PHP) on Windows if you need a webserver, DB and PHP on Windows.

There's nothing wrong with SQLite, but as L7 said, it all depends on your requirements.
__________________
This is a sig, and not a necessarily a comment on the OP:
Please don't be a help vampire!

Reply With Quote
  #6  
Old May 13th, 2008, 02:16 AM
Rogare Rogare is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2008
Posts: 57 Rogare User rank is Private First Class (20 - 50 Reputation Level)Rogare User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 12 h 51 m 44 sec
Reputation Power: 1
Another problem!
I am trying to follow this guide: Here
(I did steps 1-5)
And they ask that I will add a row into my MySQL table - I tried to use
Code:
INSERT INTO people VALUES (1, 'bla', 'dsa', 'dsad', 'das', 'dsa', '564');

via the MySQL Administrator query browser but I get error #1054 ("Unknown column in 'field set'" or something).
Any ideas?

Edit: This problem was solved.

Last edited by Rogare : May 13th, 2008 at 06:04 AM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesRuby Programming > Server error in RoR


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway