ruby rails server not starting when i use command rails start in the correct directory - ruby-on-rails

Im not enirly sure why but just to show that all the mail directory files are in there
$ ls
app config.ru Gemfile.lock package.json README.md vendor
bin db lib public test
config Gemfile log Rakefile tmp
real problem is whenever I use
rails server
it pukes out garbage and the on thing I do understand of all of it is that
uglifier had an error. anyone know a fix>
It could aslo be that runtime isnt installed but Im not entirely sure about that. It needs me to add details to this thats why my question is dragging on
rails aborted!
Bundler::GemRequireError: There was an error while trying to load the
gem 'uglifier'.
Gem Load Error is: Could not find a JavaScript runtime. See
https://github.com/rails/execjs for a list of available runtimes.
Backtrace for gem load error is:
/home/hyperlisk/.rvm/gems/ruby-2.4.1/gems/execjs-
2.7.0/lib/execjs/runtimes.rb:58:in `autodetect'
/home/hyperlisk/.rvm/gems/ruby-2.4.1/gems/execjs-
2.7.0/lib/execjs.rb:5:in `<module:ExecJS>'
/home/hyperlisk/.rvm/gems/ruby-2.4.1/gems/execjs-
2.7.0/lib/execjs.rb:4:in `<top (required)>'
/home/hyperlisk/.rvm/gems/ruby-2.4.1/gems/uglifier-
3.2.0/lib/uglifier.rb:5:in `require'
/home/hyperlisk/.rvm/gems/ruby-2.4.1/gems/uglifier-
3.2.0/lib/uglifier.rb:5:in `<top (required)>'
/home/hyperlisk/.rvm/gems/ruby-2.4.1/gems/bundler-
1.16.0.pre.3/lib/bundler/runtime.rb:83:in `require'
/home/hyperlisk/.rvm/gems/ruby-2.4.1/gems/bundler-
1.16.0.pre.3/lib/bundler/runtime.rb:83:in `block (2 levels) in
require'
/home/hyperlisk/.rvm/gems/ruby-2.4.1/gems/bundler-
1.16.0.pre.3/lib/bundler/runtime.rb:78:in `each'
/home/hyperlisk/.rvm/gems/ruby-2.4.1/gems/bundler-
1.16.0.pre.3/lib/bundler/runtime.rb:78:in `block in require'
/home/hyperlisk/.rvm/gems/ruby-2.4.1/gems/bundler-
1.16.0.pre.3/lib/bundler/runtime.rb:67:in `each'
/home/hyperlisk/.rvm/gems/ruby-2.4.1/gems/bundler-
1.16.0.pre.3/lib/bundler/runtime.rb:67:in `require'
/home/hyperlisk/.rvm/gems/ruby-2.4.1/gems/bundler-
1.16.0.pre.3/lib/bundler.rb:114:in `require'
/home/hyperlisk/readit/config/application.rb:7:in `<top (required)>'
/home/hyperlisk/readit/Rakefile:4:in `require_relative'
/home/hyperlisk/readit/Rakefile:4:in `<top (required)>'
/home/hyperlisk/.rvm/gems/ruby-2.4.1/gems/rake-
12.2.1/lib/rake/rake_module.rb:29:in `load'
/home/hyperlisk/.rvm/gems/ruby-2.4.1/gems/rake-
12.2.1/lib/rake/rake_module.rb:29:in `load_rakefile'
/home/hyperlisk/.rvm/gems/ruby-2.4.1/gems/rake-
12.2.1/lib/rake/application.rb:703:in `raw_load_rakefile'
/home/hyperlisk/.rvm/gems/ruby-2.4.1/gems/rake-
12.2.1/lib/rake/application.rb:104:in `block in load_rakefile'
/home/hyperlisk/.rvm/gems/ruby-2.4.1/gems/rake-
12.2.1/lib/rake/application.rb:186:in `standard_exception_handling'
/home/hyperlisk/.rvm/gems/ruby-2.4.1/gems/rake-
12.2.1/lib/rake/application.rb:103:in `load_rakefile'
/home/hyperlisk/.rvm/gems/ruby-2.4.1/gems/railties-
5.1.4/lib/rails/commands/rake/rake_command.rb:20:in `block in perform'
/home/hyperlisk/.rvm/gems/ruby-2.4.1/gems/rake-
12.2.1/lib/rake/application.rb:186:in `standard_exception_handling'
/home/hyperlisk/.rvm/gems/ruby-2.4.1/gems/railties-
5.1.4/lib/rails/commands/rake/rake_command.rb:18:in `perform'
/home/hyperlisk/.rvm/gems/ruby-2.4.1/gems/railties-
5.1.4/lib/rails/command.rb:46:in `invoke'
/home/hyperlisk/.rvm/gems/ruby-2.4.1/gems/railties-
5.1.4/lib/rails/commands.rb:16:in `<top (required)>'
bin/rails:4:in `require'
bin/rails:4:in `<main>'
Bundler Error Backtrace:
/home/hyperlisk/.rvm/gems/ruby-2.4.1/gems/bundler-
1.16.0.pre.3/lib/bundler/runtime.rb:86:in `rescue in block (2 levels)
in require'
/home/hyperlisk/.rvm/gems/ruby-2.4.1/gems/bundler-
1.16.0.pre.3/lib/bundler/runtime.rb:82:in `block (2 levels) in
require'
/home/hyperlisk/.rvm/gems/ruby-2.4.1/gems/bundler-
1.16.0.pre.3/lib/bundler/runtime.rb:78:in `each'
/home/hyperlisk/.rvm/gems/ruby-2.4.1/gems/bundler-
1.16.0.pre.3/lib/bundler/runtime.rb:78:in `block in require'
/home/hyperlisk/.rvm/gems/ruby-2.4.1/gems/bundler-
1.16.0.pre.3/lib/bundler/runtime.rb:67:in `each'
/home/hyperlisk/.rvm/gems/ruby-2.4.1/gems/bundler-
1.16.0.pre.3/lib/bundler/runtime.rb:67:in `require'
/home/hyperlisk/.rvm/gems/ruby-2.4.1/gems/bundler-
1.16.0.pre.3/lib/bundler.rb:114:in `require'
/home/hyperlisk/readit/config/application.rb:7:in `<top (required)>'
/home/hyperlisk/readit/Rakefile:4:in `require_relative'
/home/hyperlisk/readit/Rakefile:4:in `<top (required)>'
/home/hyperlisk/.rvm/gems/ruby-2.4.1/gems/railties-
5.1.4/lib/rails/commands/rake/rake_command.rb:20:in `block in perform'
/home/hyperlisk/.rvm/gems/ruby-2.4.1/gems/railties-
5.1.4/lib/rails/commands/rake/rake_command.rb:18:in `perform'
/home/hyperlisk/.rvm/gems/ruby-2.4.1/gems/railties-
5.1.4/lib/rails/command.rb:46:in `invoke'
/home/hyperlisk/.rvm/gems/ruby-2.4.1/gems/railties-
5.1.4/lib/rails/commands.rb:16:in `<top (required)>'
bin/rails:4:in `require'
bin/rails:4:in `<main>'
Caused by:
ExecJS::RuntimeUnavailable: Could not find a JavaScript runtime. See
https://github.com/rails/execjs for a list of available runtimes.
/home/hyperlisk/.rvm/gems/ruby-2.4.1/gems/execjs-
2.7.0/lib/execjs/runtimes.rb:58:in `autodetect'
/home/hyperlisk/.rvm/gems/ruby-2.4.1/gems/execjs-
2.7.0/lib/execjs.rb:5:in
`<module:ExecJS>'
/home/hyperlisk/.rvm/gems/ruby-2.4.1/gems/execjs-
2.7.0/lib/execjs.rb:4:in
`<top (required)>'
/home/hyperlisk/.rvm/gems/ruby-2.4.1/gems/uglifier-
3.2.0/lib/uglifier.rb:5:in `require'
/home/hyperlisk/.rvm/gems/ruby-2.4.1/gems/uglifier-
3.2.0/lib/uglifier.rb:5:in `<top (required)>'
/home/hyperlisk/.rvm/gems/ruby-2.4.1/gems/bundler-
1.16.0.pre.3/lib/bundler/runtime.rb:83:in `require'
/home/hyperlisk/.rvm/gems/ruby-2.4.1/gems/bundler-
1.16.0.pre.3/lib/bundler/runtime.rb:83:in `block (2 levels) in
require'
/home/hyperlisk/.rvm/gems/ruby-2.4.1/gems/bundler-
1.16.0.pre.3/lib/bundler/runtime.rb:78:in `each'
/home/hyperlisk/.rvm/gems/ruby-2.4.1/gems/bundler-
1.16.0.pre.3/lib/bundler/runtime.rb:78:in `block in require'
/home/hyperlisk/.rvm/gems/ruby-2.4.1/gems/bundler-
1.16.0.pre.3/lib/bundler/runtime.rb:67:in `each'
/home/hyperlisk/.rvm/gems/ruby-2.4.1/gems/bundler-
1.16.0.pre.3/lib/bundler/runtime.rb:67:in `require'
/home/hyperlisk/.rvm/gems/ruby-2.4.1/gems/bundler-
1.16.0.pre.3/lib/bundler.rb:114:in `require'
/home/hyperlisk/readit/config/application.rb:7:in `<top (required)>'
/home/hyperlisk/readit/Rakefile:4:in `require_relative'
/home/hyperlisk/readit/Rakefile:4:in `<top (required)>'
/home/hyperlisk/.rvm/gems/ruby-2.4.1/gems/railties-
5.1.4/lib/rails/commands/rake/rake_command.rb:20:in `block in perform'
/home/hyperlisk/.rvm/gems/ruby-2.4.1/gems/railties-
5.1.4/lib/rails/commands/rake/rake_command.rb:18:in `perform'
/home/hyperlisk/.rvm/gems/ruby-2.4.1/gems/railties-
5.1.4/lib/rails/command.rb:46:in `invoke'
/home/hyperlisk/.rvm/gems/ruby-2.4.1/gems/railties-
5.1.4/lib/rails/commands.rb:16:in `<top (required)>'
bin/rails:4:in `require'
bin/rails:4:in `<main>'
(See full trace by running task with --trace)
(OMFG SO MANY SPACES)

You will have to have node.js installed on your system to fix the Javascript runtime error.
On OSX:
brew install nodejs
if your on Ubuntu just run:
sudo apt-get install nodejs
and then run your server, rails s.

If you read through your error message it says that you need to install a JavaScript Runtime.
If using debain/ubuntu you can sudo apt-get install nodejs to install Node
See: Rails - Could not find a JavaScript runtime?

Related

Unable to run sidekiq getting "No module named 'pandas'"

I am using Ruby version "ruby 2.5.1". My Ruby on Rails application fails with the following error even pandas installed in my machine. pandas (0.24.2) and bundler (2.0.1, default: 1.16.2) installed in my machine. What is the problem here, How can I resolve this issue?
$bundle exec sidekiq
There was an error while trying to load the gem 'pandas'.
Gem Load Error is: <class 'ModuleNotFoundError'>: No module named 'pandas'
Backtrace for gem load error is:
/home/user/.rvm/gems/ruby-2.5.1#myapp/gems/pycall-1.2.1/lib/pycall.rb:62:in `import_module'
/home/user/.rvm/gems/ruby-2.5.1#myapp/gems/pycall-1.2.1/lib/pycall.rb:62:in `import_module'
/home/user/.rvm/gems/ruby-2.5.1#myapp/gems/pandas-0.3.1/lib/pandas.rb:4:in `<main>'
/home/user/.rvm/gems/ruby-2.5.1#myapp/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require'
/home/user/.rvm/gems/ruby-2.5.1#myapp/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `block in require_with_bootsnap_lfi'
/home/user/.rvm/gems/ruby-2.5.1#myapp/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in `register'
/home/user/.rvm/gems/ruby-2.5.1#myapp/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in `require_with_bootsnap_lfi'
/home/user/.rvm/gems/ruby-2.5.1#myapp/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require'
/home/user/.rvm/rubies/ruby-2.5.1/lib/ruby/site_ruby/2.5.0/bundler/runtime.rb:81:in `block (2 levels) in require'
/home/user/.rvm/rubies/ruby-2.5.1/lib/ruby/site_ruby/2.5.0/bundler/runtime.rb:76:in `each'
/home/user/.rvm/rubies/ruby-2.5.1/lib/ruby/site_ruby/2.5.0/bundler/runtime.rb:76:in `block in require'
/home/user/.rvm/rubies/ruby-2.5.1/lib/ruby/site_ruby/2.5.0/bundler/runtime.rb:65:in `each'
/home/user/.rvm/rubies/ruby-2.5.1/lib/ruby/site_ruby/2.5.0/bundler/runtime.rb:65:in `require'
/home/user/.rvm/rubies/ruby-2.5.1/lib/ruby/site_ruby/2.5.0/bundler.rb:114:in `require'
/home/user/work/projects/myapp/config/application.rb:18:in `<top (required)>'
/home/user/work/projects/myapp/config/environment.rb:2:in `require_relative'
/home/user/work/projects/myapp/config/environment.rb:2:in `<top (required)>'
/home/user/.rvm/gems/ruby-2.5.1#myapp/gems/sidekiq-5.2.5/lib/sidekiq/cli.rb:288:in `require'
/home/user/.rvm/gems/ruby-2.5.1#myapp/gems/sidekiq-5.2.5/lib/sidekiq/cli.rb:288:in `boot_system'
/home/user/.rvm/gems/ruby-2.5.1#myapp/gems/sidekiq-5.2.5/lib/sidekiq/cli.rb:46:in `run'
/home/user/.rvm/gems/ruby-2.5.1#myapp/gems/sidekiq-5.2.5/bin/sidekiq:12:in `<top (required)>'
/home/user/.rvm/gems/ruby-2.5.1#myapp/bin/sidekiq:23:in `load'
/home/user/.rvm/gems/ruby-2.5.1#myapp/bin/sidekiq:23:in `<main>'
/home/user/.rvm/gems/ruby-2.5.1#myapp/bin/ruby_executable_hooks:24:in `eval'
/home/user/.rvm/gems/ruby-2.5.1#myapp/bin/ruby_executable_hooks:24:in `<main>'
Bundler Error Backtrace:
/home/user/.rvm/rubies/ruby-2.5.1/lib/ruby/site_ruby/2.5.0/bundler/runtime.rb:84:in `rescue in block (2 levels) in require'
/home/user/.rvm/rubies/ruby-2.5.1/lib/ruby/site_ruby/2.5.0/bundler/runtime.rb:80:in `block (2 levels) in require'
/home/user/.rvm/rubies/ruby-2.5.1/lib/ruby/site_ruby/2.5.0/bundler/runtime.rb:76:in `each'
/home/user/.rvm/rubies/ruby-2.5.1/lib/ruby/site_ruby/2.5.0/bundler/runtime.rb:76:in `block in require'
/home/user/.rvm/rubies/ruby-2.5.1/lib/ruby/site_ruby/2.5.0/bundler/runtime.rb:65:in `each'
/home/user/.rvm/rubies/ruby-2.5.1/lib/ruby/site_ruby/2.5.0/bundler/runtime.rb:65:in `require'
/home/user/.rvm/rubies/ruby-2.5.1/lib/ruby/site_ruby/2.5.0/bundler.rb:114:in `require'
/home/user/work/projects/myapp/config/application.rb:18:in `<top (required)>'
/home/user/work/projects/myapp/config/environment.rb:2:in `require_relative'
/home/user/work/projects/myapp/config/environment.rb:2:in `<top (required)>'
/home/user/.rvm/gems/ruby-2.5.1#myapp/gems/sidekiq-5.2.5/lib/sidekiq/cli.rb:288:in `require'
/home/user/.rvm/gems/ruby-2.5.1#myapp/gems/sidekiq-5.2.5/lib/sidekiq/cli.rb:288:in `boot_system'
/home/user/.rvm/gems/ruby-2.5.1#myapp/gems/sidekiq-5.2.5/lib/sidekiq/cli.rb:46:in `run'
/home/user/.rvm/gems/ruby-2.5.1#myapp/gems/sidekiq-5.2.5/bin/sidekiq:12:in `<top (required)>'
/home/user/.rvm/gems/ruby-2.5.1#myapp/bin/sidekiq:23:in `load'
/home/user/.rvm/gems/ruby-2.5.1#myapp/bin/sidekiq:23:in `<main>'
The above error getting resolved after installing python3-pandas
apt-get install python3-pandas

'libcurl.so.4.dll': The parameter is incorrect. Rails + LibCurl on Windows

I have Ruby 2.6.0 x64 installed using rubyinstaller on Windows 10.
Bundler seems to work fine but I am not able to use rake tasks or rails actions including rails s. Error traced is given below:
F:\Projects\ruby\myproject>rails db:migrate --trace
rails aborted!
LoadError: Could not open library 'libcurl': The parameter is incorrect.
.
Could not open library 'libcurl.dll': The parameter is incorrect.
.
Could not open library 'libcurl.so.4': The parameter is incorrect.
.
Could not open library 'libcurl.so.4.dll': The parameter is incorrect.
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/ffi-1.9.15/lib/ffi/library.rb:147:in `block in ffi_lib'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/ffi-1.9.15/lib/ffi/library.rb:100:in `map'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/ffi-1.9.15/lib/ffi/library.rb:100:in `ffi_lib'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/ethon-0.12.0/lib/ethon/curls/settings.rb:7:in `<module:Curl>'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/ethon-0.12.0/lib/ethon/curls/settings.rb:2:in `<module:Ethon>'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/ethon-0.12.0/lib/ethon/curls/settings.rb:1:in `<top (required)>'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `require'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `block in require'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:257:in `load_dependency'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `require'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/ethon-0.12.0/lib/ethon/curl.rb:27:in `<module:Curl>'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/ethon-0.12.0/lib/ethon/curl.rb:13:in `<module:Ethon>'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/ethon-0.12.0/lib/ethon/curl.rb:8:in `<top (required)>'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `require'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `block in require'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:257:in `load_dependency'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `require'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/ethon-0.12.0/lib/ethon.rb:15:in `<top (required)>'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `require'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `block in require'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:257:in `load_dependency'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `require'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/typhoeus-1.3.1/lib/typhoeus.rb:2:in `<top (required)>'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/bundler-2.0.1/lib/bundler/runtime.rb:81:in `require'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/bundler-2.0.1/lib/bundler/runtime.rb:81:in `block (2 levels) in require'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/bundler-2.0.1/lib/bundler/runtime.rb:76:in `each'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/bundler-2.0.1/lib/bundler/runtime.rb:76:in `block in require'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/bundler-2.0.1/lib/bundler/runtime.rb:65:in `each'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/bundler-2.0.1/lib/bundler/runtime.rb:65:in `require'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/bundler-2.0.1/lib/bundler.rb:114:in `require'
F:/Projects/ruby/myproject/config/application.rb:21:in `<top (required)>'
F:/Projects/ruby/myproject/Rakefile:4:in `require_relative'
F:/Projects/ruby/myproject/Rakefile:4:in `<top (required)>'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rake-12.3.2/lib/rake/rake_module.rb:29:in `load'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rake-12.3.2/lib/rake/rake_module.rb:29:in `load_rakefile'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rake-12.3.2/lib/rake/application.rb:703:in `raw_load_rakefile'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rake-12.3.2/lib/rake/application.rb:104:in `block in load_rakefile'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rake-12.3.2/lib/rake/application.rb:186:in `standard_exception_handling'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rake-12.3.2/lib/rake/application.rb:103:in `load_rakefile'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-5.2.2/lib/rails/commands/rake/rake_command.rb:22:in `block in perform'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rake-12.3.2/lib/rake/application.rb:186:in `standard_exception_handling'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-5.2.2/lib/rails/commands/rake/rake_command.rb:20:in `perform'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-5.2.2/lib/rails/command.rb:48:in `invoke'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-5.2.2/lib/rails/commands.rb:18:in `<top (required)>'
bin/rails:4:in `require'
bin/rails:4:in `<main>'
I thought this was same as The famous specified module libcurl.dll could not be found error on Windows, but this one doesn't report that it's missing or anything, and seems not to react to any of the libcurl.dll copies (libcurl-x64.dll) newly placed inside F:\Ruby26-x64\bin or restarts :(
What parameter is wrong and how do I fix this?

Rmagick fails after Ubuntu upgrade from 16.04 to 18.04

when i start rails server, server is not started
It is showing following Error
when i start rails server, server is not started
It is showing following Error
/home/effectech/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `require': libMagickCore-6.Q16.so.2: cannot open shared object file: No such file or directory - /home/effectech/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/rmagick-2.15.0/lib/RMagick2.so (LoadError)
from /home/effectech/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `block in require'
from /home/effectech/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:240:in `load_dependency'
from /home/effectech/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `require'
from /home/effectech/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/rmagick-2.15.0/lib/rmagick_internal.rb:12:in `<top (required)>'
from /home/effectech/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `require'
from /home/effectech/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `block in require'
from /home/effectech/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:240:in `load_dependency'
from /home/effectech/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `require'
from /home/effectech/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/rmagick-2.15.0/lib/rmagick.rb:1:in `<top (required)>'
from /home/effectech/.rbenv/versions/2.2.0/lib/ruby/site_ruby/2.2.0/bundler/runtime.rb:81:in `require'
from /home/effectech/.rbenv/versions/2.2.0/lib/ruby/site_ruby/2.2.0/bundler/runtime.rb:81:in `block (2 levels) in require'
from /home/effectech/.rbenv/versions/2.2.0/lib/ruby/site_ruby/2.2.0/bundler/runtime.rb:76:in `each'
from /home/effectech/.rbenv/versions/2.2.0/lib/ruby/site_ruby/2.2.0/bundler/runtime.rb:76:in `block in require'
from /home/effectech/.rbenv/versions/2.2.0/lib/ruby/site_ruby/2.2.0/bundler/runtime.rb:65:in `each'
from /home/effectech/.rbenv/versions/2.2.0/lib/ruby/site_ruby/2.2.0/bundler/runtime.rb:65:in `require'
from /home/effectech/.rbenv/versions/2.2.0/lib/ruby/site_ruby/2.2.0/bundler.rb:114:in `require'
from /home/effectech/workspace/hotel_management/config/application.rb:7:in `<top (required)>'
from /home/effectech/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:78:in `require'
from /home/effectech/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:78:in `block in server'
from /home/effectech/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:75:in `tap'
from /home/effectech/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:75:in `server'
from /home/effectech/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
from /home/effectech/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/railties-4.2.0/lib/rails/commands.rb:17:in `<top (required)>'
from /home/effectech/workspace/hotel_management/bin/rails:9:in `require'
from /home/effectech/workspace/hotel_management/bin/rails:9:in `<top (required)>'
from /home/effectech/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/spring-2.0.2/lib/spring/client/rails.rb:28:in `load'
from /home/effectech/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/spring-2.0.2/lib/spring/client/rails.rb:28:in `call'
from /home/effectech/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/spring-2.0.2/lib/spring/client/command.rb:7:in `call'
from /home/effectech/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/spring-2.0.2/lib/spring/client.rb:30:in `run'
from /home/effectech/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/spring-2.0.2/bin/spring:49:in `<top (required)>'
from /home/effectech/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/spring-2.0.2/lib/spring/binstub.rb:31:in `load'
from /home/effectech/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/spring-2.0.2/lib/spring/binstub.rb:31:in `<top (required)>'
from /home/effectech/workspace/hotel_management/bin/spring:15:in `require'
from /home/effectech/workspace/hotel_management/bin/spring:15:in `<top (required)>'
from bin/rails:3:in `load'
from bin/rails:3:in `<main>'
It seems shared object changed its location after system upgrade. Try gem uninstall rmagick and then bundle install to compile it against current imagemagick version.

ruby on rails uglifier error on server start up WINDOWS 10

so im new to this and im trying to star my localhost server for rails v5 on win10 i have looked around and cant figer it out
i put this code in`
bundler exec rails server
then i get this
C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/runtime.rb:94:in `rescue in block (2 levels) in require': There was an error while trying to load the gem 'uglifier'. (Bundler::GemRequireError)
Gem Load Error is: Could not find a JavaScript runtime. See https://github.com/rails/execjs for a list of available runtimes.
Backtrace for gem load error is:
C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/execjs-2.7.0/lib/execjs/runtimes.rb:58:in `autodetect'
C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/execjs-2.7.0/lib/execjs.rb:5:in `<module:ExecJS>'
C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/execjs-2.7.0/lib/execjs.rb:4:in `<top (required)>'
C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/uglifier-3.1.13/lib/uglifier.rb:5:in `require'
C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/uglifier-3.1.13/lib/uglifier.rb:5:in `<top (required)>'
C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/runtime.rb:91:in `require'
C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/runtime.rb:91:in `block (2 levels) in require'
C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/runtime.rb:86:in `each'
C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/runtime.rb:86:in `block in require'
C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/runtime.rb:75:in `each'
C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/runtime.rb:75:in `require'
C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler.rb:107:in `require'
C:/Sites/test_app/config/application.rb:7:in `<top (required)>'
C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:88:in `require'
C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:88:in `block in server'
C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:85:in `tap'
C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:85:in `server'
C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:49:in `run_command!'
C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/railties-5.0.2/lib/rails/commands.rb:18:in `<top (required)>'
bin/rails:4:in `require'
bin/rails:4:in `<main>'
Bundler Error Backtrace:
from C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/runtime.rb:90:in `block (2 levels) in require'
from C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/runtime.rb:86:in `each'
from C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/runtime.rb:86:in `block in require'
from C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/runtime.rb:75:in `each'
from C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/runtime.rb:75:in `require'
from C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler.rb:107:in `require'
from C:/Sites/test_app/config/application.rb:7:in `<top (required)>'
from C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:88:in `require'
from C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:88:in `block in server'
from C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:85:in `tap'
from C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:85:in `server'
from C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:49:in `run_command!'
from C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/railties-5.0.2/lib/rails/commands.rb:18:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
pls help
You need to install NodeJS, please check out https://nodejs.org/en/download/
But if you want to keep developing with Rails on Windows, you should check the WSL https://msdn.microsoft.com/pt-br/commandline/wsl/install_guide

Rails 4.1 - LoadError: cannot load such file -- active_support/core_ext/string/encoding

I'm updating to Rails 4.1 today. I ran bundle update rails and everything seemed to update nicely. However, when I now try to run any rake task I get the following error:
$ rake --trace
rake aborted!
LoadError: cannot load such file -- active_support/core_ext/string/encoding
/Users/foobar/.rvm/gems/ruby-2.0.0-p247#gemset/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:247:in `require'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247#gemset/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:247:in `block in require'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247#gemset/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:232:in `load_dependency'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247#gemset/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:247:in `require'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247#gemset/gems/bsm-sso-client-0.8.4/lib/bsm/sso/client/url_helpers.rb:1:in `<top (required)>'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247#gemset/gems/bsm-sso-client-0.8.4/lib/bsm/sso/client/strategies/ticket.rb:2:in `<class:Ticket>'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247#gemset/gems/bsm-sso-client-0.8.4/lib/bsm/sso/client/strategies/ticket.rb:1:in `<top (required)>'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247#gemset/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:247:in `require'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247#gemset/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:247:in `block in require'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247#gemset/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:232:in `load_dependency'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247#gemset/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:247:in `require'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247#gemset/gems/bsm-sso-client-0.8.4/lib/bsm/sso/client/strategies.rb:5:in `<top (required)>'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247#gemset/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:247:in `require'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247#gemset/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:247:in `block in require'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247#gemset/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:232:in `load_dependency'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247#gemset/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:247:in `require'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247#gemset/gems/bsm-sso-client-0.8.4/lib/bsm/sso/client.rb:100:in `<top (required)>'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247#gemset/gems/bsm-sso-client-0.8.4/lib/bsm-sso-client.rb:1:in `require'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247#gemset/gems/bsm-sso-client-0.8.4/lib/bsm-sso-client.rb:1:in `<top (required)>'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247#global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `require'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247#global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `block (2 levels) in require'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247#global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `each'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247#global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `block in require'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247#global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `each'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247#global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `require'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247#global/gems/bundler-1.3.5/lib/bundler.rb:132:in `require'
/Users/foobar/Work/VerveWireless/gemset/config/application.rb:5:in `<top (required)>'
/Users/foobar/Work/VerveWireless/gemset/Rakefile:5:in `require'
/Users/foobar/Work/VerveWireless/gemset/Rakefile:5:in `<top (required)>'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247#gemset/gems/rake-10.3.2/lib/rake/rake_module.rb:28:in `load'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247#gemset/gems/rake-10.3.2/lib/rake/rake_module.rb:28:in `load_rakefile'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247#gemset/gems/rake-10.3.2/lib/rake/application.rb:687:in `raw_load_rakefile'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247#gemset/gems/rake-10.3.2/lib/rake/application.rb:94:in `block in load_rakefile'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247#gemset/gems/rake-10.3.2/lib/rake/application.rb:176:in `standard_exception_handling'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247#gemset/gems/rake-10.3.2/lib/rake/application.rb:93:in `load_rakefile'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247#gemset/gems/rake-10.3.2/lib/rake/application.rb:77:in `block in run'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247#gemset/gems/rake-10.3.2/lib/rake/application.rb:176:in `standard_exception_handling'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247#gemset/gems/rake-10.3.2/lib/rake/application.rb:75:in `run'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247#gemset/gems/rake-10.3.2/bin/rake:33:in `<top (required)>'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247#gemset/bin/rake:23:in `load'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247#gemset/bin/rake:23:in `<main>'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247#gemset/bin/ruby_noexec_wrapper:14:in `eval'
/Users/foobar/.rvm/gems/ruby-2.0.0-p247#gemset/bin/ruby_noexec_wrapper:14:in `<main>'
Seems like a dependency issue, but I can't figure out what is missing. Any help would be great, thanks!
After some digging, I found this in the Rails 4.1 removal section of the release notes.
Removed deprecated String#encoding_aware? core extensions (core_ext/string/encoding).
So any instance of this line require 'active_support/core_ext/string/encoding' must be taken out or modified.

Resources