how's going?
I trying to create my first application with Ruby on Rails, I can create the project but I can't run the server.
My OS is Windows.
I installed Node, Yarn, Ruby, Rails, Sqlite3.
This message appears when I try to run "rails s"
Could not find gem 'sqlite3' in locally installed gems.
Run `bundle install` to install missing gems.
I run the command "bundle install", "bundle update" and doesn't work. This message appears when I run "bundle install":
An error occurred while installing sqlite3 (1.4.2), and Bundler cannot continue.
In Gemfile:
sqlite3
When I verify the version of sqlite3:
enter image description here
I tried editing Gemfile:
gem 'sqlite3', '~> 1.4.2'
And tried install this way:
gem install sqlite3 -v '1.4.2' --source 'https://rubygems.org/'
I tried this steps too:
https://www.youtube.com/watch?v=cAseoJeNG8I
I follow the recommendation in the documentation for windows users and run "bin/rails s" on Bash, but still the same problem.
I read other answers here to similar questions but did not help me, for this I ask with this.
If something was a miss to you understand the problem please tell me and I provide the information.
Thanks, everyone.
The above Error occurred because sqlite3 is not installed on your system.
Step1:- First, install the sqlite3 on your system by following the steps mention here
Step2:- Run bundle install
Have you tried deleting gemfile.lock? Try delete and after that again type bundle install
Related
I am running on a Windows.
On my Project, I did a Bundle Install with no errors. Then I try to do rake db:create, it says
I did a gem install pg, which worked but I still get this error. Judging by the error, I think it is saying that it doesn't recognize PostgreSQL installed on my computer but I do have it installed. I have 9.6 installed:
I also created an Environment Path but to no result.
What am I missing here?
Did you add the gem to your gemfile? "bundle add pg" in your terminal followed by 'bundle install'. This should solve your problem.
i am new to Ruby on rails and i have facing this problem during Rails installation. I have searched a lot and tried many solution which were available on stackoverflow but nothing work for me. Please help how can i get out of this problem..
I have had this problem before, and the reason you are getting this method, is because you are trying to download from an https website.
My guess is you are trying to install all the gems in your gemfile and bundle install didn't work. It would give you a message like
bundler cannot continue. Please make sure gem install samplegem succeeds
Change the following line in your gemfile
source 'https://rubygems.org'
to
source 'http://rubygems.org'
and run bundle
alternatively, you could do the following
gem install mysql2 -s http://rubygems.org
Either way, you should be able to install the gem.
Had you already installed mysql in your machine? The same experiencing happened with me. I was using a virtual environment and trying to install gem mysql2 but I forget that I haven't mysql in my "main" environment.
I ran the following and mysql2 installed successfully.
gem install mysql2 -s http://rubygems.org
But the problem remaied the same when re ran the "bundle install"
I am new to ruby on rails and I just downloaded a new Rails project directory that my friend sent to me. I put that directory on the Desktop and cd into it. I want to play with the code on my local host to learn from the code. But when I tried to run "rails s", it gives me the error saying that
"Could not find pg-0.17.1 in any of the sources
Run `bundle install` to install missing gems."
So I ran "bundle install", then it gave the error that
"An error occurred while installing pg (0.17.1), and Bundler cannot continue.
Make sure that `gem install pg -v '0.17.1'` succeeds before bundling."
I googled the problem for a while but I did not find any solution..
"rails s" stills works fine in my own project's directory. But how can I make it work in the directory I just downloaded? Am I supposed to do some other setup or installing?
Make sure you have installed postgres on your local machine.
gem install pg --with-pg-config works, bundle fails
Here how I made development environment on my Mac.
Install PostgreSQL via Homebrew package manager brew install postgresql. This should install all necessary header files for gem compilation.
I have installed ruby193 and I've installed rails via the command prompt (I also installed a DevKit). However, whenever I try the command:
rails server
I get this error:
←[31mCould not find gem 'jquery-rails (>= 0) x86-mingw32' in the gems available
on this machine.←[0m
←[33mRun `bundle install` to install missing gems.←[0m
I've tried a bundle install and it gives me an error with when trying to install the json gem. Any suggestions?
make sure in your Gemfile you are including the right gem (no misspellings, etc)
Looks like you are on Windows.
I defeated the very same problem on Windows by manually installing my gems from Gemfile (gem install gem_to_install). After successfully installing a particular gem I ran bundle check to see what else I need to install. And this way after few installed gems I ran bundle check again and saw the output The Gemfile's dependencies are satisfied.
And then server started. I wish you the same!
P.S. You can install few gems at once: gem install gem1 gem2.
I am totally new to ror. Installed it today. Created the first app following Lynda instructions. Within the app folder, tried to run WEBrick but got this mistake:
Could not find gem 'turn<>=0>' in any of the gem sources listed in your Gemfile. Run 'bundle install' to install missing gem.
I did run "bundle install", but it didn't help. I get the same error. What should I do?
For some strange reason not everything is installed by budler. Some gems must be installed as root.
Try: sudo gem install turn