I am using ROR with oracle database I created a project and then run the command
rails generate migration test
I get the error
'cannot load such file -- oci8'. ActiveRecord oracle_enhanced adapter could not load ruby-oci8 library. You may need install ruby-oci8 gem.
By running the following command,
gem install ruby-oci8
i gets the following errors,
Error installing ruby-oci8:
ERROR: Failed to build gem native extension.
Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options.
Error Message:
The compiler failed to generate an executable file.
You have to install development tools first.
So I added this line to my gemfile
gem 'ruby-oci8', '~> 2.0.6'
after that i run
bundle install
i get this error
An error occurred while installing nio4r (2.1.0), and Bundler cannot continue. Make sure that
gem install nio4r -v '2.1.0'
succeeds before bundling.
then i run this command
gem install nio4r -v '2.1.0'
i get this error
Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details.
The compiler failed to generate an executable file. (RuntimeError) You have to install development tools first
What should I do? I am stucked in loop of these errors.
I followed these links but in vain.
ActiveRecord oracle_enhanced adapter can't load ruby-oci8 library
Rails 3.0.3 - Oracle_enhanced doesn't work
Nokogiri issues with Ruby on Rails
Take a look at this Q/A, by following this Sounds like you're missing the devtools for ruby
i have installed the rubyDevKit and run the command
ruby dk.rb init
but on running this command
ruby dk.rb install
i got this error
Invalid configuration or no Rubies listed. Please fix 'config.yml' and rerun 'ruby dk.rb install'
now, how should i modify config.yml file? In which format should i write the path or which path I have to write ? is it "C:\Sites"?