Hi,
So I have successfully installed the RubyInstaller with DevKit 3.3.10 (x64) on my windows, added the folders to the environment and system path. I am using the current gem file in my application.
source '
https://rubygems.org'
ruby '3.3.10'
# Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main"
gem 'rails', '7.2.2'
gem 'rake', '~> 13.2'
# The original asset pipeline for Rails [
https://github.com/rails/sprockets-rails]
gem 'sprockets-rails'
# Use postgresql as the database for Active Record
gem 'pg', '~> 1.5', '>= 1.5'
# Use the Puma web server [
https://github.com/puma/puma]
gem 'puma', '>= 5.0'
# Hotwire's SPA-like page accelerator [
https://turbo.hotwired.dev]
gem 'turbo-rails'
# Hotwire's modest JavaScript framework [
https://stimulus.hotwired.dev]
gem 'stimulus-rails'
# Build JSON APIs with ease [
https://github.com/rails/jbuilder]
gem 'jbuilder'
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: %i[windows jruby]
# Reduces boot times through caching; required in config/boot.rb
gem 'bootsnap', require: false
gem 'cocoon', '~> 1.2', '>= 1.2.15'
gem 'jquery-rails', '~> 4.6'
gem 'dotenv-rails', '~> 3.1', '>= 3.1.2', groups: [:development, :test]
gem 'bootstrap', '~> 5.3', '>= 5.3.3'
gem 'importmap-rails', '~> 2.0', '>= 2.0.1'
group :test do
# Use system testing [
https://guides.rubyonrails.org/testing.html#system-testing]
gem 'capybara'
gem 'selenium-webdriver'
end
but I am still encountering this error:
Installing rack 3.1.19
error: failed to init transaction (unable to lock database)
error: could not lock database: Permission denied
.
.
.
Installing actiontext 7.2.2
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: C:/Users/Idrees
Khan/.local/share/gem/ruby/3.3.0/gems/psych-5.3.1/ext/psych
C:/Ruby33-x64/bin/ruby.exe extconf.rb
checking for pkg-config for yaml-0.1... not found
checking for yaml.h... no
yaml.h not found
*** extconf.rb failed ***
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.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include=${opt-dir}/include
--without-opt-include
--with-opt-lib=${opt-dir}/lib
--without-opt-lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=C:/Ruby33-x64/bin/$(RUBY_BASE_NAME)
--with-libyaml-source-dir
--without-libyaml-source-dir
--with-yaml-0.1-dir
--without-yaml-0.1-dir
--with-yaml-0.1-include=${yaml-0.1-dir}/include
--without-yaml-0.1-include
--with-yaml-0.1-lib=${yaml-0.1-dir}/lib
--without-yaml-0.1-lib
--with-yaml-0.1-config
--without-yaml-0.1-config
--with-pkg-config
--without-pkg-config
--with-libyaml-dir
--without-libyaml-dir
--with-libyaml-include=${libyaml-dir}/include
--without-libyaml-include
--with-libyaml-lib=${libyaml-dir}/lib
--without-libyaml-lib
To see why this extension failed to compile, please check the mkmf.log which can
be found here:
C:/Users/Idrees
Khan/.local/share/gem/ruby/3.3.0/extensions/x64-mingw-ucrt/3.3.0/psych-5.3.1/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in C:/Users/Idrees
Khan/.local/share/gem/ruby/3.3.0/gems/psych-5.3.1 for inspection.
Results logged to C:/Users/Idrees
Khan/.local/share/gem/ruby/3.3.0/extensions/x64-mingw-ucrt/3.3.0/psych-5.3.1/gem_make.out
.
.
.
An error occurred while installing psych (5.3.1), and Bundler cannot continue.
In Gemfile:
dotenv-rails was resolved to 3.2.0, which depends on
railties was resolved to 7.2.2, which depends on
irb was resolved to 1.16.0, which depends on
rdoc was resolved to 7.0.3, which depends on
psych
First I added psych gem to the gem file that did not work, then I manually deleted the gem from my local folders and vendor/bundle folders as well. I also reversed most of my configs in the application to the bundler. But nothing seems to work here
ruby -v
ruby 3.3.10 (2025-10-23 revision 343ea05002) [x64-mingw-ucrt]
bundle config list
Settings are listed in order of priority. The top value will be used.
--delete
Set for your local app (D:/Source/Repos/ezRealEstateROR.git/.bundle/config): "deployment"
system_bindir
Set via BUNDLE_SYSTEM_BINDIR: "C:/Users/Idrees Khan/AppData/Local/Microsoft/WindowsApps"
Regards,
Asim