Solrac Caritas wrote:
> Tanawat Limungkura wrote:
>> Peter De Berdt wrote:
>>> On 24 Sep 2010, at 10:59, Tanawat Limungkura wrote:
>>> 
>>>> I use rails 3.0  In my created dir I tried to use any command of rails
>>>> just like
>>>> rails -v but it show me that
>>>> Could not find gem 'sqlite3-ruby (>= 0, runtime)' in any of the gem
>>>> sources.
>>>> Try running `bundle install`.
>>>> I've already exactly installed gem Why this error occurred What's  
>>>> wrong
>>> 
>>> Make sure you have the following line in your Gemfile:
>>> 
>>> gem 'sqlite3-ruby', :require => 'sqlite3'
>>> 
>>> Then do "bundle install"
>>> 
>>> Gems not defined in your Gemfile will NOT be loaded, even if you have
>>> them installed.
>>> 
>>> 
>>> Best regards
>>> 
>>> Peter De Berdt
>> 
>> It did not work Peter I try to create project with mysql like
>> rails new apple -d mysql
>> gem 'rails', '3.0.0'
>> gem 'mysql2'
>> are already written
>> but the problem stay still
>> Could not find gem 'mysql2 (>= 0, runtime)' in any of the gem sources.
>> Try running `bundle install`.
>> 
>> What should I do T^T
> 
> do you run `bundle install`?
> 
> http://edgeguides.rubyonrails.org/getting_started.html
> 3.3 Installing the Required Gems
> 
> Rails applications manage gem dependencies with Bundler by default. As 
> we don’t need any other gems beyond the ones in the generated Gemfile we 
> can directly run
> bundle install to have them ready.

Problem stay still after running  bundle install it show

Installing mysql2 (0.2.4) with native extensions 
/usr/local/lib/ruby/1.9.1/rubygems/installer.rb:483:in `rescue in block 
in build_extensions': ERROR: Failed to build gem native extension. 
(Gem::Installer::ExtensionBuildError)

I exactly dont know why ?
cause of I install ruby 1.9.1 then reinstall  1.9.2 ????
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to