I didn't post for a very long time!
I had alot of sketches though but didn't had the time to finish and publish them..
But i hope to come back now with more posts!
Also i'm gonna stick to a new format in my posts thati think is better to read. maybe i'll also update old posts to this format.
I just started learning Ruby on Rails few weeks ago and ran into a very weird problem.
I'm using Windows 7 64bit with RubyMine 4.5.1, Ruby 1.9.3, Rails 3.2.
I was able to install all this working environment on my Desktop but not on my Laptop..
I encounterd the following errors on cmd & RubyMine:
I had alot of sketches though but didn't had the time to finish and publish them..
But i hope to come back now with more posts!
Also i'm gonna stick to a new format in my posts thati think is better to read. maybe i'll also update old posts to this format.
I just started learning Ruby on Rails few weeks ago and ran into a very weird problem.
Environment:
I was able to install all this working environment on my Desktop but not on my Laptop..
Problem:
`block in materialize': Could not find rake-0.9.2.2 in any of the sources (Bundler::GemNotFound)C:\Users\Danpe>gem install railsWARNING: Error fetching data: Errno::ECONNREFUSED: No connection could be madebecause the target machine actively refused it. - connect(2) (http://rubygems.org/latest_specs.4.8.gz)
Fetching source index for `http://rubygems.org/` Could not reach rubygems repository `http://rubygems.org/` Could not find gem 'rspec-rails (>= 2.0.0.beta.22, runtime)' in any of the gem sources.
ERROR: http://rubygems.org/ does not appear to be a repository ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
Errno::ETIMEDOUT: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed
because connected host has failed to respond. - connect(2) (http://rubygems.org/yaml)
I got all these kind of weird errors!
Research:
so i started looking around the web and around my PC network settings.
I double checked my Internet Options to see that there is no proxy enabled, and there was none!
I opened cmd and typed SET to see my Environment Variables:
As you can see there is an Environment Variable for HTTP_PROXY...C:\Users\Danpe>SETALLUSERSPROFILE=C:\ProgramDataAPPDATA=C:\Users\Danpe\AppData\RoamingCOMPUTERNAME=DANPE-ZENBOOKComSpec=C:\Windows\system32\cmd.exeHOMEDRIVE=C:HOMEPATH=\Users\DanpeHTTP_PROXY=192.168.0.1:8080
Solution:
Go to Start (WinKey) type Edit the system environment variables and you'll get this window:
Click on Environment Variables and then remove HTTP_PROXY from System Variables!
Make sure you reopen cmd and RubyMine :)