Link to home
Start Free TrialLog in
Avatar of Jess31
Jess31

asked on

Rails installation ?

Using windows ultimate 64.
I installed rails and gem and ruby. when I type rails server I get
"could not find gem 'turn <~> 0.8.3' in any of the gem sources listed in your Gemfile.
Run 'bundle install' to install missing gems."

I ran "bundle install" and after doing a bunch of things it says:

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
at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit'
An error occured while installing json (1.6.5), and Bundler cannot continue.
Make sure that `gem install json -v '1.6.5'` succeeds before bundling.

What do I do to fix this?
Avatar of F. Dominicus
F. Dominicus
Flag of Germany image

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

It means this stuff is not written  Ruby but some extension. The build tools are make, gcc, probably some lexer and other tools.
So it seems you better follow the first link and install the missing stuff.

Regards
Friedrich
Avatar of Jess31
Jess31

ASKER

I did do that, installed the Development Kit but I get the same errors.
What happens while you follow this advise?
5. Test Installation

    Confirm your Ruby environment is correctly using the DevKit by running gem install rdiscount --platform=ruby. RDiscount should install correctly and you should see Temporarily enhancing PATH to include DevKit... in the screen messages. Next run ruby -rubygems -e "require 'rdiscount'; puts RDiscount.new('**Hello RubyInstaller**').to_html" to confirm that the rdiscount gem is working.

Only then you can be sure that this was correctly installed.
Avatar of Jess31

ASKER

When I run gem install rdiscount --platform=ruby
I get:

Fetching: rdiscount-1.6.8.gem (100%)
ERROR:  Error installing rdiscount:
        The 'rdiscount' 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
at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit'
Then you know that you do not have the build tools properly installed. So fix that.
ASKER CERTIFIED SOLUTION
Avatar of Andrew Doades
Andrew Doades
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial