Error Could Not Find Rails Locally Or In A Repository
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring could not find in any of the sources bundler developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question could not find in any of the sources run `bundle install` to install missing gems. x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join could not find in any of the sources rails them; it only takes a minute: Sign up Ubuntu: “Could not find rails locally or in a repository” up vote 3 down vote favorite 2 I'm following these instructions to set up Ruby on Rails on my Ubuntu machine. For
Could Not Find A Valid Gem 'bundler' ( = 0) Here Is Why
now at least, I'm planning to use Mongrel. When I get to this step: sudo gem install rails ...I get this message: Bulk updating Gem source index for: http://gems.rubyforge.org/ ERROR: could not find rails locally or in a repository What should I do next? ruby-on-rails ubuntu share|improve this question asked May 12 '09 at 11:29 Nathan Long 52.8k61236328 What's the output of gem sources list? –Gareth May 12 '09 at 11:34 what's the output of bundler could not find gem in any of the sources gem -v? –Jason Punyon♦ May 12 '09 at 11:37 also are you behind a firewall? –Jason Punyon♦ May 12 '09 at 11:38 Sorry, I meant are you behind a HTTP proxy? –Jason Punyon♦ May 12 '09 at 11:39 Output of 'gem sources list' is gems.rubyforge.org –Nathan Long May 12 '09 at 11:48 | show 1 more comment 3 Answers 3 active oldest votes up vote 3 down vote accepted +50 basically, try again! It could be a serious error, but in earlier versions ( I encountered this about 1 year ago or so ) it happend on the first try and when trying again the gem would eventually be found. I think it had something to do with the servers performance or such. Using a recent version of rubygems is probably a good idea, and if it really won't work you can always get the .gem file from sourceforge directly and install from it. For example with the file rails-2.3.2.gem: gem install rails-2.3.2 –local share|improve this answer edited May 21 '09 at 14:55 answered May 20 '09 at 21:30 Paul 1736 Just wanted to second this point about it being inconsistent. I believe "rails" is a special sort of compound gem. For some reason installing the separate parts, such as activerecord, activesupport, and so forth, never fails for me, but in the past (not so much n
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers could not find a valid gem in any repository or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x
Could Not Find Gem In Any Of The Gem Sources Listed In Your Gemfile Or Available On This Machine
Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only
Could Not Find Rake In Any Of The Sources
takes a minute: Sign up ERROR: Could not find a valid gem 'LocalGem' (>= 0) in any repository up vote 0 down vote favorite I've done a good search now and I haven't come across anything that quite relates. I'm http://stackoverflow.com/questions/852280/ubuntu-could-not-find-rails-locally-or-in-a-repository trying to install a local decimal to roman numeral gem I compiled myself using bundler to wrap the gem, on a Rails 4 application. I used bundle install with as many different variants in the gemfile as I could find/think of, but the error I get is the single line ERROR: Could not find a valid gem 'AoifesRoman' (>= 0) in any repository even using the sudo command wont work. I used: gem search -l AoifesRoman and it shows *** http://stackoverflow.com/questions/27678089/error-could-not-find-a-valid-gem-localgem-0-in-any-repository LOCAL GEMS *** AoifesRoman (0.0.1) I found a command here http://help.rubygems.org/kb/rubygems/installing-gems-with-no-network gem install --force --local *.gem But its for installing a gem on a machine, does anyone think this would work or will it just break something? Many Thanks ruby-on-rails ruby ruby-on-rails-4 gem install share|improve this question asked Dec 28 '14 at 16:02 Aoife Ni D 13 add a comment| 2 Answers 2 active oldest votes up vote 0 down vote Yes, gem install --local aoifes_roman.gem should work, if you want to install the gem locally, from your local directory. Then you can reference it in your Gemfile as usual. share|improve this answer answered Dec 28 '14 at 17:24 TK-421 5,53922528 Thanks for getting back to me.Do you know if there would there be any reason why that wouldn't be working? –Aoife Ni D Dec 28 '14 at 18:59 Are you seeing a particular error, or it's just not showing after running gem install? –TK-421 Dec 28 '14 at 23:13 add a comment| up vote 0 down vote Kindly try this command, gem install gem_name --source http://rubygems.org share|improve this answer answered Apr 29 '15 at 11:50 Soumojit Ghosh 320110 You should make bit more effort to explain what the command is doing and how it solves the OP's problem. –G. Cito Apr 29 '15 at 13:06 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up usi
2 years ago by Andres Morales Andres Morales 10,634 Points I get the error message "Could not find a valid gem 'bundler' <>= 0> in any repository" How can I fix this issue? I'm trying https://teamtreehouse.com/community/i-get-the-error-message-could-not-find-a-valid-gem-bundler-0-in-any-repository-how-can-i-fix-this-issue to install the gems but I get the message: "Could not find a valid gem 'bundler' <>= 0> in any repository" How can I fix this issue? 5 Answers Nikolay Batrakov 9,604 Points Nikolay Batrakov Nikolay Batrakov 9,604 Points almost 2 years ago You are probably behind a proxy or have problems with internet connection. Can you pls check with your windows settings is your terminal could not or VM allowed to access the Internet? Andres Morales 10,634 Points Andres Morales Andres Morales 10,634 Points 2y ago I am behind a proxy at my University, let me get back home and try that out first. Thank you for your response Michael Day 8,879 Points Michael Day Michael Day 8,879 Points almost 2 years ago You are behind a firewall or virus software. You need could not find to switch to use http://rubygems.org instead of https://rubygems.org. You can use the gem sources -r https://rubygems.org then -a http://rubygems.org it will remove the https and add just the http if you are having this issue you will have to change it in your Gemfile of your test app as well or your server won't run. Lonnie Parker 5,964 Points Lonnie Parker Lonnie Parker 5,964 Points 2y ago Thank you Michael. I'm working on a 64-bit Windows Professional machine and, at least for me, this worked. For the cmd line newbies: gem sources -r https://rubygems.org -a http://rubygems.org alkin kasap 3,626 Points alkin kasap alkin kasap 3,626 Points over 1 year ago Ok on Windows 8.1 i had this problem. I've tried everything i found on the internet taking this as a starting point. In the end the best result (and simpliest one) is to change source adress to http instead of https by typing gem sources -a http://rubygems.org to command line. It will ask if you're sure to change adress just type y and you're done. pff Sophia Harrison 4,534 Points Sophia Harrison Sophia Harrison 4,534 Points >1y ago I did this after reading the SSL c