Jump to content

[Solved] Ruby on rails bundle install problem


shankar

Recommended Posts

i am having issue while running bundle install

Fetching gem metadata from https://rubygems.org/.........
Using rake 13.0.6
Using base64 0.1.1
Using bigdecimal 3.1.4
Using ruby2_keywords 0.0.5
Using mutex_m 0.1.2
Using erubi 1.12.0
Using racc 1.7.1
Using crass 1.0.6
Using rack 3.0.8
Using nio4r 2.5.9
Using websocket-extensions 0.1.5
Using zeitwerk 2.6.12
Using timeout 0.4.0
Using marcel 1.0.2
Using mini_mime 1.1.5
Using date 3.3.3
Using public_suffix 5.0.3
Using bcrypt 3.1.19
Using bindex 0.8.1
Using msgpack 1.7.2
Using bundler 2.4.13
Using matrix 0.4.2
Using regexp_parser 2.8.2
Using io-console 0.6.0
Using thor 1.3.0
Using orm_adapter 0.5.0
Using kaminari-core 1.2.2
Using rexml 3.2.6
Using concurrent-ruby 1.2.2
Using connection_pool 2.4.1
Using drb 2.1.1
Using i18n 1.14.1
Using tzinfo 2.0.6
Using nokogiri 1.15.4 (x86_64-linux)
Using rack-session 2.0.0
Using rack-test 2.1.0
Using websocket-driver 0.7.6
Using net-protocol 0.2.1
Using addressable 2.8.5
Using bootsnap 1.16.0
Using reline 0.3.9
Using warden 1.2.9
Using puma 6.4.0
Using sprockets 4.2.1
Using minitest 5.20.0
Using loofah 2.21.4
Using net-imap 0.4.2
Using net-pop 0.1.2
Using net-smtp 0.4.0
Using xpath 3.2.0
Using faker 3.2.1
Using builder 3.2.4
Using activesupport 7.1.1
Using rails-html-sanitizer 1.6.0
Using mail 2.8.1
Using capybara 3.39.2
Using stringio 3.0.8
Using webrick 1.8.1
Using globalid 1.2.1
Using activemodel 7.1.1
Using rubyzip 2.3.2
Using pundit 2.3.1
Using websocket 1.2.10
Using rails-dom-testing 2.2.0
Using actionview 7.1.1
Using activejob 7.1.1
Using activerecord 7.1.1
Using rackup 2.1.0
Using selenium-webdriver 4.14.0
Using actionpack 7.1.1
Using jbuilder 2.11.5
Using kaminari-activerecord 1.2.2
Using ransack 4.1.0
Using kaminari-actionview 1.2.2
Using activestorage 7.1.1
Using sprockets-rails 3.4.2
Using actionmailbox 7.1.1
Using actiontext 7.1.1
Using kaminari 1.2.2
Using actioncable 7.1.1
Using actionmailer 7.1.1
Installing pg 1.5.4 with native extensions
Installing psych 5.1.1.1 with native extensions
 
[DEPRECATED] The `--path` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set --local path 'vendor/bundle'`, and stop using this flag
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
 
current directory:
/home/shankar.helioho.st/vendor/bundle/ruby/3.2.0/gems/psych-5.1.1.1/ext/psych
/opt/plesk/ruby/3.2.1/bin/ruby extconf.rb
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
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib64
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/opt/plesk/ruby/3.2.1/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
--without-yaml-0.1-include=${yaml-0.1-dir}/include
--with-yaml-0.1-lib
--without-yaml-0.1-lib=${yaml-0.1-dir}/lib64
--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
--without-libyaml-include=${libyaml-dir}/include
--with-libyaml-lib
--without-libyaml-lib=${libyaml-dir}/lib64
 
To see why this extension failed to compile, please check the mkmf.log which can
be found here:
 
/home/shankar.helioho.st/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0-static/psych-5.1.1.1/mkmf.log
 
extconf failed, exit code 1
 
Gem files will remain installed in
/home/shankar.helioho.st/vendor/bundle/ruby/3.2.0/gems/psych-5.1.1.1 for
inspection.
Results logged to
/home/shankar.helioho.st/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0-static/psych-5.1.1.1/gem_make.out
 
/opt/plesk/ruby/3.2.1/lib64/ruby/site_ruby/3.2.0/rubygems/ext/builder.rb:119:in
`run'
/opt/plesk/ruby/3.2.1/lib64/ruby/site_ruby/3.2.0/rubygems/ext/ext_conf_builder.rb:27:in
`build'
/opt/plesk/ruby/3.2.1/lib64/ruby/site_ruby/3.2.0/rubygems/ext/builder.rb:187:in
`build_extension'
/opt/plesk/ruby/3.2.1/lib64/ruby/site_ruby/3.2.0/rubygems/ext/builder.rb:221:in
`block in build_extensions'
/opt/plesk/ruby/3.2.1/lib64/ruby/site_ruby/3.2.0/rubygems/ext/builder.rb:218:in
`each'
/opt/plesk/ruby/3.2.1/lib64/ruby/site_ruby/3.2.0/rubygems/ext/builder.rb:218:in
`build_extensions'
/opt/plesk/ruby/3.2.1/lib64/ruby/site_ruby/3.2.0/rubygems/installer.rb:843:in
`build_extensions'
/opt/plesk/ruby/3.2.1/lib64/ruby/site_ruby/3.2.0/bundler/rubygems_gem_installer.rb:72:in
`build_extensions'
/opt/plesk/ruby/3.2.1/lib64/ruby/site_ruby/3.2.0/bundler/rubygems_gem_installer.rb:28:in
`install'
/opt/plesk/ruby/3.2.1/lib64/ruby/site_ruby/3.2.0/bundler/source/rubygems.rb:198:in
`install'
/opt/plesk/ruby/3.2.1/lib64/ruby/site_ruby/3.2.0/bundler/installer/gem_installer.rb:54:in
`install'
/opt/plesk/ruby/3.2.1/lib64/ruby/site_ruby/3.2.0/bundler/installer/gem_installer.rb:16:in
`install_from_spec'
/opt/plesk/ruby/3.2.1/lib64/ruby/site_ruby/3.2.0/bundler/installer/parallel_installer.rb:156:in
`do_install'
/opt/plesk/ruby/3.2.1/lib64/ruby/site_ruby/3.2.0/bundler/installer/parallel_installer.rb:147:in
`block in worker_pool'
/opt/plesk/ruby/3.2.1/lib64/ruby/site_ruby/3.2.0/bundler/worker.rb:62:in
`apply_func'
/opt/plesk/ruby/3.2.1/lib64/ruby/site_ruby/3.2.0/bundler/worker.rb:57:in
`block in process_queue'
/opt/plesk/ruby/3.2.1/lib64/ruby/site_ruby/3.2.0/bundler/worker.rb:54:in
`loop'
/opt/plesk/ruby/3.2.1/lib64/ruby/site_ruby/3.2.0/bundler/worker.rb:54:in
`process_queue'
/opt/plesk/ruby/3.2.1/lib64/ruby/site_ruby/3.2.0/bundler/worker.rb:90:in
`block (2 levels) in create_threads'
 
An error occurred while installing psych (5.1.1.1), and Bundler cannot continue.
 
In Gemfile:
cssbundling-rails was resolved to 1.3.3, which depends on
railties was resolved to 7.1.1, which depends on
irb was resolved to 1.8.3, which depends on
rdoc was resolved to 6.5.0, which depends on
psych
ERROR:__main__:Command '['/usr/local/psa/admin/sbin/filemng', 'shankar', 'exec', '/home/shankar.helioho.st/', '/bin/bash', '-l', '-c', 'bundle install --path vendor/bundle']' returned non-zero exit status 5.
 
 
please guide me to resolve this issue.
 
 
Link to comment
Share on other sites

4 hours ago, Krydos said:

How are you running bundle install?

i am running this from website and domains

and here is my contents of my gem file please do the needful

source "https://rubygems.org"

ruby "3.2.1"

# Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main"
gem "rails", "~> 7.1.1"

# 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.1"

# Use the Puma web server [https://github.com/puma/puma]
gem "puma", ">= 5.0"

# Bundle and transpile JavaScript [https://github.com/rails/jsbundling-rails]
gem "jsbundling-rails"

# 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"

# Bundle and process CSS [https://github.com/rails/cssbundling-rails]
gem "cssbundling-rails"

# Build JSON APIs with ease [https://github.com/rails/jbuilder]
gem "jbuilder"

# Use Redis adapter to run Action Cable in production
# gem "redis", ">= 4.0.1"

# Use Kredis to get higher-level data types in Redis [https://github.com/rails/kredis]
# gem "kredis"

# Use Active Model has_secure_password [https://guides.rubyonrails.org/active_model_basics.html#securepassword]
# gem "bcrypt", "~> 3.1.7"

# 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

# Use Active Storage variants [https://guides.rubyonrails.org/active_storage_overview.html#transforming-images]
# gem "image_processing", "~> 1.2"


#custom
gem "faker"
gem "ransack"
gem "devise"
gem "kaminari"
gem "pundit"
gem "rolify"

group :development, :test do
  # See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem
  gem "debug", platforms: %i[ mri windows ]
end

group :development do
  # Use console on exceptions pages [https://github.com/rails/web-console]
  gem "web-console"

  # Add speed badges [https://github.com/MiniProfiler/rack-mini-profiler]
  # gem "rack-mini-profiler"

  # Speed up commands on slow machines / big apps [https://github.com/rails/spring]
  # gem "spring"

end

group :test do
  # Use system testing [https://guides.rubyonrails.org/testing.html#system-testing]
  gem "capybara"
  gem "selenium-webdriver"
end

 

Screenshot_2023-11-03_06-49-21.png

Link to comment
Share on other sites

5 hours ago, Krydos said:

What does this mean?

Does it work now?

No sir its not working also i am facing another problem i am unable to log on to plesk after entering my email and password.

i meant to say is to resolve the issue. please fix the above issue and the login issue i am facing

Edit :

i can log in using my userID not my email also running   bundle install finishes right now i am trying to figure out how can i run

rails db:migrate

Edit2:

i am unable to run db:migrate

i have attached a screenshot of the screen please see

contents of my database.yml 

production:
  adapter: postgresql
  encoding: unicode
  username: shankar_scp
  password: *****
  host: 127.0.0.1
  port: 5432

 

i have given the correct userid and password after creation a user and database in plesk

 

 

 

 

 

rake.jpg

Link to comment
Share on other sites

  • Krydos changed the title to [Solved] Ruby on rails bundle install problem
  • Krydos locked this topic
Guest
This topic is now closed to further replies.
×
×
  • Create New...