Ruby on Rails Friday, September 19, 2014

Well if rails and gem are working I wonder:
Have you installed the dev kit?

Looks like the Json gem is failing because the dev kit isnt installed and it needs the build tools inside it

If you have installed the dev kit make sure you follow its instructions. It probably the path issue your error mentions.



Ive used this setup before though so I know its doable



On 18 September, 2014 4:39:40 AM PDT, Rohan Sarker <rohansarkerhr@gmail.com> wrote:
Starting up the Web Server Error Details:

I executed the following commands:

$ rails new blog
$ cd blog


"Starting up the Web Server"


$ bin/rails server

C:\Ruby200\blog>bin/rails server
'bin' is not recognized as an internal or external command,
operable program or batch file.

C:\Ruby200\blog>rails server
Could not find gem 'tzinfo-data (>= 0) x86-mingw32' in the gems available on thi
s machine.
Run `bundle install` to install missing gems.

C:\Ruby200\blog>bundle install
DL is deprecated, please use Fiddle
Fetching gem metadata from https://rubygems.org/..........
Resolving dependencies...
Using rake 10.3.2
Using i18n 0.6.11

Gem::InstallError: The 'json' native gem requires installed build tools.

Please update your PATH to include build tools or download the DevKit
from 'http://rubyinstaller.org/downloads' and follow the instructions
An error occurred while installing json (1.8.1), and Bundler cannot continue.
Make sure that `gem install json -v '1.8.1'` succeeds before bundling.

C:\Ruby200\blog>rails server
Could not find gem 'tzinfo-data (>= 0) x86-mingw32' in the gems available on thi
s machine.
Run `bundle install` to install missing gems.

C:\Ruby200\blog>


Also I could not open the Web Server in http://localhost:3000

Unable to connect       
        
Firefox can't establish a connection to the server at localhost:3000.  

        
        

  The site could be temporarily unavailable or too busy. Try again in a few
    moments.
  If you are unable to load any pages, check your computer's network
    connection.
  If your computer or network is protected by a firewall or proxy, make sure
    that Firefox is permitted to access the Web.


Please help in correcting the problem.




Regards
Rohan Sarker
+913324288069 / +917278539338


--
Sent from my Android

No comments:

Post a Comment