New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: Could not find a valid gem 'jekyll' (>= 0), here is why: #34

Open
EnterpriseWide opened this Issue Dec 5, 2014 · 26 comments

Comments

Projects
None yet
@EnterpriseWide

EnterpriseWide commented Dec 5, 2014

C:\RubyDevKit>gem install jekyll
ERROR: Could not find a valid gem 'jekyll' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://api.rubygems.org/latest_specs.4.8.gz)

Any Ideas?

@EnterpriseWide

This comment has been minimized.

EnterpriseWide commented Dec 5, 2014

I just found this and it worked so this may be worth putting in your doco.

$ gem sources --remove https://rubygems.org/
$ gem sources -a http://rubygems.org/
$ gem install jekyll

I found this info here - jekyll/jekyll#1409

@linacurious

This comment has been minimized.

linacurious commented Dec 7, 2014

@EnterpriseWide This problem (and fix) is desribed here: https://gist.github.com/luislavena/f064211759ee0f806c88
I agree, it could be included in the guide.

@andikarekatias

This comment has been minimized.

andikarekatias commented Dec 17, 2014

@EnterpriseWide
in step 2
error
can you help me ?

@EnterpriseWide

This comment has been minimized.

EnterpriseWide commented Dec 17, 2014

Hi there,
When I did this, the installer was very fussy about the url used. When I
run gem sources , I get http://rubygems.org/. I think you may have to put
the forward slash on the end.

Regards

On Wed, Dec 17, 2014 at 2:29 PM, andikart notifications@github.com wrote:

@EnterpriseWide https://github.com/EnterpriseWide
in step 2
[image: error]
https://cloud.githubusercontent.com/assets/10099168/5466147/57f87808-85d7-11e4-8680-24430152ebc4.png
can you help me ?


Reply to this email directly or view it on GitHub
#34 (comment)
.

[image: Liquid Visual] http://ewide.com.au/Ben NormanWeb Developer / .NET
Specialiste support@ewide.biz t (+61) 404 828 246
w ewide.com.au

@juristr

This comment has been minimized.

juristr commented Dec 27, 2014

Hi,

just went here to file this issue. I just had the same error. Installing any gem failed due to some certificate validation issues. I found the solution by myself on the web, but took some time, so I think it would be really useful to include some note about this on the guide.

I simply removed the SSL source and added the plain HTTP one

gem source -a http://rubygems.org
gem source --remove https://rubygems.org

I used ruby 2.0 x64 on a Windows 8.1 machine.

Thx

@achimnol

This comment has been minimized.

achimnol commented Jan 7, 2015

I just ran into the same issue on Ruby 2.1 x64 + Windows 8.1, and found another solution: https://stackoverflow.com/questions/5720484/how-to-solve-certificate-verify-failed-on-windows/16134586#16134586 .

@bst27

This comment has been minimized.

bst27 commented Jan 17, 2015

I hade the same issue and solved it by creating a gemrc file (workaround 3) like described there:
http://railsapps.github.io/openssl-certificate-verify-failed.html

@dmcglinn

This comment has been minimized.

dmcglinn commented Feb 1, 2015

The solution suggested by @juristr worked for me, thanks!

@tnbuig

This comment has been minimized.

tnbuig commented Feb 1, 2015

Thanks @juristr its help for me as well

@kleinfreund kleinfreund referenced this issue Feb 8, 2015

Closed

Weird error #268

@DONGChuan

This comment has been minimized.

DONGChuan commented Feb 10, 2015

Thanks to @juristr. It works well. But It's better to fix this issue in beloved jekyll itself

@MohammedRabaya

This comment has been minimized.

MohammedRabaya commented Feb 11, 2015

I just tried installing the latest version of gem manually and it worked!

@joeywen

This comment has been minimized.

joeywen commented Feb 13, 2015

Thanks to @EnterpriseWide . It works well

@josekenya

This comment has been minimized.

josekenya commented Mar 5, 2015

I encountered the same issue.The fix is here https://gist.github.com/luislavena/f064211759ee0f806c88
Thx Everyone.

@XhmikosR

This comment has been minimized.

Contributor

XhmikosR commented Mar 10, 2015

Just upgrade to the latest rubygems available and it should fix the issue. Specifically, 2.2.3, 2.0.15, 1.8.30 have this fix backported. Note that on Windows 2.4.x might have other issues so in that case switch to 2.3.0.

@0xa6a

This comment has been minimized.

0xa6a commented Nov 5, 2015

For Chinese user blocked by the Great Wall , you can refer ruby.taobao.com do this:

$ gem sources --add https://ruby.taobao.org/ --remove https://rubygems.org/
@WhaleChen

This comment has been minimized.

WhaleChen commented Jan 5, 2016

@EnterpriseWide @juristr 3x。 It really works!
@wenzhishen Great Wall Oh! 3x!

@zdawei

This comment has been minimized.

zdawei commented Oct 6, 2016

@EnterpriseWide
thank you .

@JashonWang

This comment has been minimized.

JashonWang commented Oct 14, 2016

@juristr Your suggestion worked for me! Thanks very muck.

@jeffersondesouza

This comment has been minimized.

jeffersondesouza commented Nov 15, 2016

@juristr suggestion worked to me, I'm using windows 7

@MukunziChild

This comment has been minimized.

MukunziChild commented Nov 27, 2016

Thanks man, you saved my ass from a lot of pain. I've been dealing with this for months every time I installed a new gem in my rails projects.

Thanks Ben @EnterpriseWide

@0LING0

This comment has been minimized.

0LING0 commented Dec 3, 2016

@juristr your suggestion works for me, i'm using windows 10, thank you

@Donatoni

This comment has been minimized.

Donatoni commented Dec 8, 2016

This worked for me and I got the guide off of Jekyll's install page. So I'm pretty confident this will work for anyone having the same issue.

http://guides.rubygems.org/ssl-certificate-update/

@costanzo

This comment has been minimized.

costanzo commented Dec 22, 2016

@EnterpriseWide you solution is perfect!

@SalN3t

This comment has been minimized.

SalN3t commented Jan 14, 2018

Make sure you have all the packages

sudo apt-get update
sudo apt-get install ruby ruby-dev make gcc 

If you do then remove ruby first

sudo apt-get remove ruby

Then run the ones above.

Then do the commands @EnterpriseWide shared above

gem sources --remove https://rubygems.org/
gem sources -a http://rubygems.org/
sudo gem install jekyll
@martianworm17

This comment has been minimized.

martianworm17 commented Jul 5, 2018

What @juristr said fixed my gem install problem on macOS Sierra 10.12.6 (16G29)

@ashirafzal

This comment has been minimized.

ashirafzal commented Sep 5, 2018

juristr you boii you have fixed my problem on windows 7 thnx for it buddy ! @juristr . Many many thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment