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
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.
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.
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?
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.
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.
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 ???
I don’t see mysql…what is the output of:
cd /
su root
gem install mysql
The result is
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.
.
.
.
.
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Have you ever installed MySQL (the database server) from source on
this computer? It sounds like you don’t have the libraries and headers
that the mysql gem needs to compile a native Ruby bridge for your
specific server. It is entirely possible and likely to have a working
mysql server daemon on your computer, without having the development
header files that compiled it.
I don’t see mysql…what is the output of:
cd /
su root
gem install mysql
The result is
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.
.
.
.
.
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
I don’t see mysql…what is the output of:
cd /
su root
gem install mysql
The result is
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.
.
.
.
.
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
can you post your mkmf.log ?
cd /usr/local/lib/ruby
find . -name mkmf.log
I change to windows 7 platform and use Netbeans to develop the problem
stay still the same WTF ???
Any one help meeeeeeeeeeeeeeee plzzzzzz T____________T
Hi,
am not too sure if this would help you. but try the installation guide
(attached) that I had created to help with the ruby-rails installation
on windows. i suppose your problem should be because you dont have the
sqlite3dll files in your ruby/bin directory…
I don’t see mysql…what is the output of:
cd /
su root
gem install mysql
The result is
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.
.
.
.
.
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
can you post your mkmf.log ?
cd /usr/local/lib/ruby
find . -name mkmf.log
I change to windows 7 platform and use Netbeans to develop the problem
stay still the same WTF ???
Any one help meeeeeeeeeeeeeeee plzzzzzz T____________T
Hi,
I am not too sure if my documentation would help you. But give it a try.
I have attached a word doc that I had created to help with ruby-rails
installation.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.