Postgres OS X 10.9.5 - heroku

Humbly seeking assistance. Learning Ruby on Rails.
Watching this YouTube video https://www.youtube.com/watch?v=7EzzoULwWx8#t=480 and at 9:10 the instructor enters:
psql
The bash shell is different than mine and does not have the $ at the terminal prompt.
When I try:
Michels-MacBook-Pro:~ michelfrechette$ pqsl
These are my results:
Michels-MacBook-Pro:~ michelfrechette$ psql
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
Michels-MacBook-Pro:~ michelfrechette$
Using: PostgreSQL 9.3.5
What am I missing? Can anyone offer guidance? Thank you.
Additional info:
Michels-MacBook-Pro:~ michelfrechette$ heroku --v
/Users/michelfrechette/.rbenv/versions/2.1.2/lib/ruby/2.1.0/tmpdir.rb:85:in `mkdir': ERROR: Failed to build gem native extension. (Gem::Ext::BuildError)
Permission denied # dir_s_mkdir - ./.gem.20141013-60662-6x4qt9
Gem files will remain installed in /Users/michelfrechette/.rvm/gems/ruby-2.0.0- p481#global/gems/executable-hooks-1.3.2 for inspection.
Results logged to /Users/michelfrechette/.rvm/gems/ruby-2.0.0-p481#global/extensions/x86_64-darwin-13/2.1.0-static/executable-hooks-1.3.2/gem_make.out
from /Users/michelfrechette/.rbenv/versions/2.1.2/lib/ruby/2.1.0/tmpdir.rb:85:in `block in mktmpdir'
from /Users/michelfrechette/.rbenv/versions/2.1.2/lib/ruby/2.1.0/tmpdir.rb:142:in `create'
from /Users/michelfrechette/.rbenv/versions/2.1.2/lib/ruby/2.1.0/tmpdir.rb:85:in `mktmpdir'
from /Users/michelfrechette/.rbenv/versions/2.1.2/lib/ruby/2.1.0/rubygems/ext/ext_conf_builder.rb:14:in `build'
from /Users/michelfrechette/.rbenv/versions/2.1.2/lib/ruby/2.1.0/rubygems/ext/builder.rb:161:in `block (2 levels) in build_extension'
from /Users/michelfrechette/.rbenv/versions/2.1.2/lib/ruby/2.1.0/rubygems/ext/builder.rb:160:in `chdir'
from /Users/michelfrechette/.rbenv/versions/2.1.2/lib/ruby/2.1.0/rubygems/ext/builder.rb:160:in `block in build_extension'
from /Users/michelfrechette/.rbenv/versions/2.1.2/lib/ruby/2.1.0/rubygems/ext/builder.rb:159:in `synchronize'
from /Users/michelfrechette/.rbenv/versions/2.1.2/lib/ruby/2.1.0/rubygems/ext/builder.rb:159:in `build_extension'
from /Users/michelfrechette/.rbenv/versions/2.1.2/lib/ruby/2.1.0/rubygems/ext/builder.rb:198:in `block in build_extensions'
from /Users/michelfrechette/.rbenv/versions/2.1.2/lib/ruby/2.1.0/rubygems/ext/builder.rb:195:in `each'
from /Users/michelfrechette/.rbenv/versions/2.1.2/lib/ruby/2.1.0/rubygems/ext/builder.rb:195:in `build_extensions'
from /Users/michelfrechette/.rbenv/versions/2.1.2/lib/ruby/2.1.0/rubygems/specification.rb:1436:in `block in build_extensions'
from /Users/michelfrechette/.rbenv/versions/2.1.2/lib/ruby/2.1.0/rubygems/user_interaction.rb:45:in `use_ui'
from /Users/michelfrechette/.rbenv/versions/2.1.2/lib/ruby/2.1.0/rubygems/specification.rb:1434:in `build_extensions'
from /Users/michelfrechette/.rbenv/versions/2.1.2/lib/ruby/2.1.0/rubygems/stub_specification.rb:60:in `build_extensions'
from /Users/michelfrechette/.rbenv/versions/2.1.2/lib/ruby/2.1.0/rubygems/basic_specification.rb:56:in `contains_requirable_file?'
from /Users/michelfrechette/.rbenv/versions/2.1.2/lib/ruby/2.1.0/rubygems/specification.rb:925:in `block in find_inactive_by_path'
from /Users/michelfrechette/.rbenv/versions/2.1.2/lib/ruby/2.1.0/rubygems/specification.rb:924:in `each'
from /Users/michelfrechette/.rbenv/versions/2.1.2/lib/ruby/2.1.0/rubygems/specification.rb:924:in `find'
from /Users/michelfrechette/.rbenv/versions/2.1.2/lib/ruby/2.1.0/rubygems/specification.rb:924:in `find_inactive_by_path'
from /Users/michelfrechette/.rbenv/versions/2.1.2/lib/ruby/2.1.0/rubygems.rb:185:in `try_activate'
from /Users/michelfrechette/.rbenv/versions/2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:132:in `rescue in require'
from /Users/michelfrechette/.rbenv/versions/2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:144:in `require'
from /Users/michelfrechette/.rvm/gems/ruby-2.0.0-p481#railstutorial_rails_4_0/bin/ruby_executable_hooks:9:in `<main>'
Additional Info:
Michels-MacBook-Pro:~ michelfrechette$ ps -ef | grep postgres
501 60896 60710 0 6:06am ttys000 0:00.00 grep postgres
Michels-MacBook-Pro:~ michelfrechette$ gem install pg
Error loading RubyGems plugin "/Users/michelfrechette/.rvm/gems/ruby-2.0.0- p481#global/gems/executable-hooks-1.3.2/lib/rubygems_plugin.rb": ERROR: Failed to build gem native extension.
Permission denied # dir_s_mkdir - ./.gem.20141013-60906-9b5gwl
Gem files will remain installed in /Users/michelfrechette/.rvm/gems/ruby-2.0.0- p481#global/gems/executable-hooks-1.3.2 for inspection.
Results logged to /Users/michelfrechette/.rvm/gems/ruby-2.0.0- p481#global/extensions/x86_64-darwin-13/2.1.0-static/executable-hooks-1.3.2/gem_make.out
(Gem::Ext::BuildError)
Error loading RubyGems plugin "/Users/michelfrechette/.rvm/gems/ruby-2.0.0- p481#global/gems/gem-wrappers-1.2.5/lib/rubygems_plugin.rb": ERROR: Failed to build gem native extension.
Permission denied # dir_s_mkdir - ./.gem.20141013-60906-m2ih6w
Gem files will remain installed in /Users/michelfrechette/.rvm/gems/ruby-2.0.0- p481#global/gems/executable-hooks-1.3.2 for inspection.
Results logged to /Users/michelfrechette/.rvm/gems/ruby-2.0.0- p481#global/extensions/x86_64-darwin-13/2.1.0-static/executable-hooks-1.3.2/gem_make.out
(Gem::Ext::BuildError)
Building native extensions. This could take a while...
Successfully installed pg-0.17.1
invalid options: -f fivefish
(invalid options are ignored)
Parsing documentation for pg-0.17.1
Done installing documentation for pg after 1 seconds
1 gem installed
Michels-MacBook-Pro:~ michelfrechette$

Related

How can I solve bundle install error so that I can install my github.io site?

I'm trying to set up my personal website via github.io. But when I enter the "bundle install" command I get the following error. I couldn't find the exact cause of the problem and I even reinstalled them all.
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory:
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/libv8-node-16.10.0.0/ext/libv8-node
C:/Ruby31-x64/bin/ruby.exe -I C:/Ruby31-x64/lib/ruby/3.1.0 extconf.rb
creating Makefile
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/libv8-node-16.10.0.0/ext/libv8-node/builder.rb:12:in
`build_libv8!': failed to download node 16.10.0 (Libv8::Node::BuilderError)
from
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/libv8-node-16.10.0.0/ext/libv8-node/location.rb:30:in
`install!'
from extconf.rb:9:in `<main>'
==== in
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/libv8-node-16.10.0.0/ext/libv8-node
==== running
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/libv8-node-16.10.0.0/libexec/download-node
extconf failed, exit code 1
Gem files will remain installed in
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/libv8-node-16.10.0.0 for inspection.
Results logged to
C:/Ruby31-x64/lib/ruby/gems/3.1.0/extensions/x64-mingw-ucrt/3.1.0/libv8-node-16.10.0.0/gem_make.out
C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/ext/builder.rb:102:in `run'
C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/ext/ext_conf_builder.rb:28:in `build'
C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/ext/builder.rb:171:in `build_extension'
C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/ext/builder.rb:205:in `block in
build_extensions'
C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/ext/builder.rb:202:in `each'
C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/ext/builder.rb:202:in `build_extensions'
C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/installer.rb:843:in `build_extensions'
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.26/lib/bundler/rubygems_gem_installer.rb:72:in
`build_extensions'
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.26/lib/bundler/rubygems_gem_installer.rb:28:in
`install'
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.26/lib/bundler/source/rubygems.rb:207:in
`install'
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.26/lib/bundler/installer/gem_installer.rb:54:in
`install'
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.26/lib/bundler/installer/gem_installer.rb:16:in
`install_from_spec'
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.26/lib/bundler/installer/parallel_installer.rb:186:in
`do_install'
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.26/lib/bundler/installer/parallel_installer.rb:177:in
`block in worker_pool'
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.26/lib/bundler/worker.rb:62:in
`apply_func'
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.26/lib/bundler/worker.rb:57:in
`block in process_queue'
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.26/lib/bundler/worker.rb:54:in
`loop'
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.26/lib/bundler/worker.rb:54:in
`process_queue'
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.26/lib/bundler/worker.rb:91:in
`block (2 levels) in create_threads'
An error occurred while installing libv8-node (16.10.0.0), and Bundler cannot
continue.
In Gemfile:
mini_racer was resolved to 0.6.3, which depends on
libv8-node
I updated these (gem, ruby, etc) but still nothing changed. What do you suggest I do, thanks in advance.
Have you checked for potential differences in the Gemfile? I recommend you check out this potential solution.

'rest_client' vs 'rest-client' error

Trying to use rest-client gem in ruby but keep getting error: "WARNING: The rest_client gem is deprecated and will be removed from RubyGems. Please use rest-client gem instead."
Even though my code uses 'rest-client' and not 'rest_client'
#!/usr/bin/ruby
require 'rest-client'
Also, when i try to do 'gem install rest-client' it fails with:
Building native extensions. This could take a while...
ERROR: Error installing rest-client:
ERROR: Failed to build gem native extension.
/usr/bin/ruby2.1 mkrf_conf.rb
Building native extensions. This could take a while...
/usr/lib/ruby/2.1.0/rubygems/ext/builder.rb:89:in `run': ERROR: Failed to build gem native extension. (Gem::Ext::BuildError)
/usr/bin/ruby2.1 extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h
extconf failed, exit code 1
Gem files will remain installed in /var/lib/gems/2.1.0/gems/unf-0.2.0.beta2/ext/gems/gems/unf_ext-0.0.7.2 for inspection.
Results logged to /var/lib/gems/2.1.0/gems/unf-0.2.0.beta2/ext/gems/extensions/x86_64-linux/2.1.0/unf_ext-0.0.7.2/gem_make.out
from /usr/lib/ruby/2.1.0/rubygems/ext/ext_conf_builder.rb:38:in `block in build'
from /usr/lib/ruby/2.1.0/tempfile.rb:324:in `open'
from /usr/lib/ruby/2.1.0/rubygems/ext/ext_conf_builder.rb:17:in `build'
from /usr/lib/ruby/2.1.0/rubygems/ext/builder.rb:161:in `block (2 levels) in build_extension'
from /usr/lib/ruby/2.1.0/rubygems/ext/builder.rb:160:in `chdir'
from /usr/lib/ruby/2.1.0/rubygems/ext/builder.rb:160:in `block in build_extension'
from /usr/lib/ruby/2.1.0/rubygems/ext/builder.rb:159:in `synchronize'
from /usr/lib/ruby/2.1.0/rubygems/ext/builder.rb:159:in `build_extension'
from /usr/lib/ruby/2.1.0/rubygems/ext/builder.rb:198:in `block in build_extensions'
from /usr/lib/ruby/2.1.0/rubygems/ext/builder.rb:195:in `each'
from /usr/lib/ruby/2.1.0/rubygems/ext/builder.rb:195:in `build_extensions'
from /usr/lib/ruby/2.1.0/rubygems/installer.rb:677:in `build_extensions'
from /usr/lib/ruby/2.1.0/rubygems/installer.rb:232:in `install'
from /usr/lib/ruby/2.1.0/rubygems/resolver/specification.rb:78:in `install'
from /usr/lib/ruby/2.1.0/rubygems/request_set.rb:206:in `block in install_into'
from /usr/lib/ruby/2.1.0/rubygems/request_set.rb:198:in `each'
from /usr/lib/ruby/2.1.0/rubygems/request_set.rb:198:in `install_into'
from /usr/lib/ruby/2.1.0/rubygems/request_set.rb:119:in `install'
from /usr/lib/ruby/2.1.0/rubygems/dependency_installer.rb:389:in `install'
from mkrf_conf.rb:15:in `<main>'
rake failed, exit code 1
Gem files will remain installed in /var/lib/gems/2.1.0/gems/unf-0.2.0.beta2 for inspection.
Results logged to /var/lib/gems/2.1.0/extensions/x86_64-linux/2.1.0/unf-0.2.0.beta2/gem_make.out
Thanks for any help
I didn't have ruby dev installed... doh!
gem install: Failed to build gem native extension (can't find header files)
sudo apt-get install ruby-dev
fixed my problem

Installing ruby-debug-ide - Failed to build gem native extension

I have win7x64 and struggling to install ruby-debug-ide to use debugger in my ide. It is failing to build gem native extensions
have tried everything i could find through net
--verbose, --pre, --with ruby etc
Its still failing (
Can anyone give some tip please? thanks
$ ruby -v
ruby 2.3.1p112 (2016-04-26 revision 54768) [x64-mingw32]
$ gem install ruby-debug-ide
Building native extensions. This could take a while...
System cannot find path specified
ERROR: Error installing ruby-debug-ide:
ERROR: Failed to build gem native extension.
current directory: C:/Ruby231-x64/lib/ruby/gems/2.3.0/gems/ruby-debug-ide-0.6.0/ext
C:/Ruby231-x64/bin/ruby.exe mkrf_conf.rb
'Ёбв?┐? -? г¤ ?вбп - cвЁ гЄ § --лc Їгвм.
'Ёбв?┐? -? г¤ ?вбп - cвЁ гЄ § --лc Їгвм.
Installing base gem
Building native extensions. This could take a while...
Building native extensions. This could take a while...
ERROR: Failed to build gem native extension.
current directory: C:/Ruby231-x64/lib/ruby/gems/2.3.0/gems/debase-0.2.2.beta9/ext
C:/Ruby231-x64/bin/ruby.exe -r ./siteconf20170120-10104-1f4a8us.rb extconf.rb
checking for vm_core.h... no
checking for vm_core.h... no
checking for vm_core.h... yes
creating Makefile
To see why this extension failed to compile, please check the mkmf.log which can be found here:
C:/Ruby231-x64/lib/ruby/gems/2.3.0/extensions/x64-mingw32/2.3.0/debase-0.2.2.beta9/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in C:/Ruby231-x64/lib/ruby/gems/2.3.0/gems/debase-0.2.2.beta9 for inspection.
Results logged to C:/Ruby231-x64/lib/ruby/gems/2.3.0/extensions/x64-mingw32/2.3.0/debase-0.2.2.beta9/gem_make.out
C:/Ruby231-x64/lib/ruby/site_ruby/2.3.0/rubygems/ext/builder.rb:92:in `run'
C:/Ruby231-x64/lib/ruby/site_ruby/2.3.0/rubygems/ext/ext_conf_builder.rb:48:in `block in build'
C:/Ruby231-x64/lib/ruby/2.3.0/tempfile.rb:295:in `open'
C:/Ruby231-x64/lib/ruby/site_ruby/2.3.0/rubygems/ext/ext_conf_builder.rb:31:in `build'
C:/Ruby231-x64/lib/ruby/site_ruby/2.3.0/rubygems/ext/builder.rb:164:in `block (2 levels) in build_extension'
C:/Ruby231-x64/lib/ruby/site_ruby/2.3.0/rubygems/ext/builder.rb:163:in `chdir'
C:/Ruby231-x64/lib/ruby/site_ruby/2.3.0/rubygems/ext/builder.rb:163:in `block in build_extension'
C:/Ruby231-x64/lib/ruby/site_ruby/2.3.0/rubygems/ext/builder.rb:162:in `synchronize'
C:/Ruby231-x64/lib/ruby/site_ruby/2.3.0/rubygems/ext/builder.rb:162:in `build_extension'
C:/Ruby231-x64/lib/ruby/site_ruby/2.3.0/rubygems/ext/builder.rb:201:in `block in build_extensions'
C:/Ruby231-x64/lib/ruby/site_ruby/2.3.0/rubygems/ext/builder.rb:198:in `each'
C:/Ruby231-x64/lib/ruby/site_ruby/2.3.0/rubygems/ext/builder.rb:198:in `build_extensions'
C:/Ruby231-x64/lib/ruby/site_ruby/2.3.0/rubygems/installer.rb:752:in `build_extensions'
C:/Ruby231-x64/lib/ruby/site_ruby/2.3.0/rubygems/installer.rb:304:in `install'
C:/Ruby231-x64/lib/ruby/site_ruby/2.3.0/rubygems/resolver/specification.rb:97:in `install'
C:/Ruby231-x64/lib/ruby/site_ruby/2.3.0/rubygems/request_set.rb:166:in `block in install'
C:/Ruby231-x64/lib/ruby/site_ruby/2.3.0/rubygems/request_set.rb:156:in `each'
C:/Ruby231-x64/lib/ruby/site_ruby/2.3.0/rubygems/request_set.rb:156:in `install'
C:/Ruby231-x64/lib/ruby/site_ruby/2.3.0/rubygems/dependency_installer.rb:405:in `install'
mkrf_conf.rb:35:in `rescue in <main>'
mkrf_conf.rb:28:in `<main>'
rake failed, exit code 1
Gem files will remain installed in C:/Ruby231-x64/lib/ruby/gems/2.3.0/gems/ruby-debug-ide-0.6.0 for inspection.
Results logged to C:/Ruby231-x64/lib/ruby/gems/2.3.0/extensions/x64-mingw32/2.3.0/ruby-debug-ide-0.6.0/gem_make.out
$ gem install debase-ruby_core_source
Successfully installed debase-ruby_core_source-0.9.6
$ gem install debase -- --with-ruby-include=C:\Ruby231-x64\lib\ruby\gems\2.3.0\gems\debase-ruby_core_source-0.9.6\lib\debase\ruby_core_source\ruby-2.3.1-p112
Building native extensions with: '--with-ruby-include=C:\Ruby231-x64\lib\ruby\gems\2.3.0\gems\debase-ruby_core_source-0.9.6\lib\debase\ruby_core_source\ruby-2.3.1-p112ruby -v'
This could take a while...
System cannot find path specified
ERROR: Error installing debase:
ERROR: Failed to build gem native extension.
$ gem install debase --pre
Building native extensions. This could take a while...
System cannot find path specified
ERROR: Error installing debase:
ERROR: Failed to build gem native extension.
$ gem install ruby-debug-ide --pre
Building native extensions. This could take a while...
Системе не удается найти указанный путь.
ERROR: Error installing ruby-debug-ide:
ERROR: Failed to build gem native extension.
current directory: C:/Ruby231-x64_unit/lib/ruby/gems/2.3.0/gems/ruby-debug-ide-0.6.1.beta4/ext
C:/Ruby231-x64_unit/bin/ruby.exe mkrf_conf.rb
'Ёбв?┐? -? г¤ ?вбп - cвЁ гЄ § --лc Їгвм.
'Ёбв?┐? -? г¤ ?вбп - cвЁ гЄ § --лc Їгвм.
Installing base gem
Building native extensions. This could take a while...
Building native extensions. This could take a while...
ERROR: Failed to build gem native extension.
current directory: C:/Ruby231-x64_unit/lib/ruby/gems/2.3.0/gems/debase-0.2.2.beta9/ext
C:/Ruby231-x64_unit/bin/ruby.exe -r ./siteconf20170201-7760-7dws4t.rb extconf.rb
checking for vm_core.h... no
checking for vm_core.h... no
checking for vm_core.h... yes
creating Makefile
To see why this extension failed to compile, please check the mkmf.log which can be found here:
C:/Ruby231-x64_unit/lib/ruby/gems/2.3.0/extensions/x64-mingw32/2.3.0/debase-0.2.2.beta9/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in C:/Ruby231-x64_unit/lib/ruby/gems/2.3.0/gems/debase-0.2.2.beta9 for inspection.
Results logged to C:/Ruby231-x64_unit/lib/ruby/gems/2.3.0/extensions/x64-mingw32/2.3.0/debase-0.2.2.beta9/gem_make.out
C:/Ruby231-x64_unit/lib/ruby/site_ruby/2.3.0/rubygems/ext/builder.rb:91:in `run'
C:/Ruby231-x64_unit/lib/ruby/site_ruby/2.3.0/rubygems/ext/ext_conf_builder.rb:36:in `block in build'
C:/Ruby231-x64_unit/lib/ruby/2.3.0/tempfile.rb:295:in `open'
C:/Ruby231-x64_unit/lib/ruby/site_ruby/2.3.0/rubygems/ext/ext_conf_builder.rb:19:in `build'
C:/Ruby231-x64_unit/lib/ruby/site_ruby/2.3.0/rubygems/ext/builder.rb:163:in `block (2 levels) in build_extension'
C:/Ruby231-x64_unit/lib/ruby/site_ruby/2.3.0/rubygems/ext/builder.rb:162:in `chdir'
C:/Ruby231-x64_unit/lib/ruby/site_ruby/2.3.0/rubygems/ext/builder.rb:162:in `block in build_extension'
C:/Ruby231-x64_unit/lib/ruby/site_ruby/2.3.0/rubygems/ext/builder.rb:161:in `synchronize'
C:/Ruby231-x64_unit/lib/ruby/site_ruby/2.3.0/rubygems/ext/builder.rb:161:in `build_extension'
C:/Ruby231-x64_unit/lib/ruby/site_ruby/2.3.0/rubygems/ext/builder.rb:200:in `block in build_extensions'
C:/Ruby231-x64_unit/lib/ruby/site_ruby/2.3.0/rubygems/ext/builder.rb:197:in `each'
C:/Ruby231-x64_unit/lib/ruby/site_ruby/2.3.0/rubygems/ext/builder.rb:197:in `build_extensions'
C:/Ruby231-x64_unit/lib/ruby/site_ruby/2.3.0/rubygems/installer.rb:741:in `build_extensions'
C:/Ruby231-x64_unit/lib/ruby/site_ruby/2.3.0/rubygems/installer.rb:290:in `install'
C:/Ruby231-x64_unit/lib/ruby/site_ruby/2.3.0/rubygems/request_set.rb:166:in `block in install'
C:/Ruby231-x64_unit/lib/ruby/site_ruby/2.3.0/rubygems/request_set.rb:150:in `each'
C:/Ruby231-x64_unit/lib/ruby/site_ruby/2.3.0/rubygems/request_set.rb:150:in `install'
C:/Ruby231-x64_unit/lib/ruby/site_ruby/2.3.0/rubygems/dependency_installer.rb:404:in `install'
mkrf_conf.rb:35:in `rescue in <main>'
mkrf_conf.rb:28:in `<main>'
rake failed, exit code 1
Gem files will remain installed in C:/Ruby231-x64_unit/lib/ruby/gems/2.3.0/gems/ruby-debug-ide-0.6.1.beta4 for inspection.
Results logged to C:/Ruby231-x64_unit/lib/ruby/gems/2.3.0/extensions/x64-mingw32/2.3.0/ruby-debug-ide-0.6.1.beta4/gem_make.out

trouble installing ruby rest-client

I recently tried to install rest-client on Ruby, in order to follow along with a tutorial, and I get the error that I will post down below. I've successfully installed DevKit. When I input gem -v, command prompt returns 2.2.5. The entirety of the error is down below.
Gem files will remain installed in C:/Ruby21/lib/ruby/gems/2.1.0/gems/unf-0.2.0.
beta2/ext/gems/gems/unf_ext-0.0.7.1 for inspection.
Results logged to C:/Ruby21/lib/ruby/gems/2.1.0/gems/unf-0.2.0.beta2/ext/gems/ex
tensions/x86-mingw32/2.1.0/unf_ext-0.0.7.1/gem_make.out
from C:/Ruby21/lib/ruby/2.1.0/rubygems/ext/ext_conf_builder.rb:38:in `bl
ock in build'
from C:/Ruby21/lib/ruby/2.1.0/tempfile.rb:324:in `open'
from C:/Ruby21/lib/ruby/2.1.0/rubygems/ext/ext_conf_builder.rb:17:in `bu
ild'
from C:/Ruby21/lib/ruby/2.1.0/rubygems/ext/builder.rb:161:in `block (2 l
evels) in build_extension'
from C:/Ruby21/lib/ruby/2.1.0/rubygems/ext/builder.rb:160:in `chdir'
from C:/Ruby21/lib/ruby/2.1.0/rubygems/ext/builder.rb:160:in `block in b
uild_extension'
from C:/Ruby21/lib/ruby/2.1.0/rubygems/ext/builder.rb:159:in `synchroniz
e'
from C:/Ruby21/lib/ruby/2.1.0/rubygems/ext/builder.rb:159:in `build_exte
nsion'
from C:/Ruby21/lib/ruby/2.1.0/rubygems/ext/builder.rb:198:in `block in b
uild_extensions'
from C:/Ruby21/lib/ruby/2.1.0/rubygems/ext/builder.rb:195:in `each'
from C:/Ruby21/lib/ruby/2.1.0/rubygems/ext/builder.rb:195:in `build_exte
nsions'
from C:/Ruby21/lib/ruby/2.1.0/rubygems/installer.rb:677:in `build_extens
ions'
from C:/Ruby21/lib/ruby/2.1.0/rubygems/installer.rb:232:in `install'
from C:/Ruby21/lib/ruby/2.1.0/rubygems/resolver/specification.rb:78:in `
install'
from C:/Ruby21/lib/ruby/2.1.0/rubygems/request_set.rb:206:in `block in i
nstall_into'
from C:/Ruby21/lib/ruby/2.1.0/rubygems/request_set.rb:198:in `each'
from C:/Ruby21/lib/ruby/2.1.0/rubygems/request_set.rb:198:in `install_in
to'
from C:/Ruby21/lib/ruby/2.1.0/rubygems/request_set.rb:119:in `install'
from C:/Ruby21/lib/ruby/2.1.0/rubygems/dependency_installer.rb:389:in `i
nstall'
from mkrf_conf.rb:15:in `<main>'
Building native extensions. This could take a while...
rake failed, exit code 1
Gem files will remain installed in C:/Ruby21/lib/ruby/gems/2.1.0/gems/unf-0.2.0.
beta2 for inspection.
Results logged to C:/Ruby21/lib/ruby/gems/2.1.0/extensions/x86-mingw32/2.1.0/unf
-0.2.0.beta2/gem_make.out

"Too many Redirections (even after re-installing Ruby 2.0.0 with OpenSSL)"

I am inexperienced (ground zero) with ruby programming and am attempting to install Snorby on a laptop running Ubuntu 13.10, with Ruby 2.0.0-p247 installed with OpenSSL using RVM.
The tutorial I am following for installing Snorby is at: http://everydayiszeroday.blogspot.com/2013/01/installing-snorby-on-ubuntu-1204.html?showComment=1383320783310#c6938351151419073746
When I execute the sudo bundle install --no-deployment --verbose, I end up with "Too Many redirections" (partial output is provided below). In addition, I am wondering whether the rubygem path, accessed by the bundler is correct for the installed ruby version (2.0.0).
Can someone advise me what to do next?
Sample Output:
$ sudo bundle install --no-deployment --verbose
Updating http://github.com/postmodern/dm-is-read_only.git
Fetching from: http://rubygems.org/api/v1/dependencies
HTTP Redirection
.
.
.
Fetching from: http://rubygems.global.ssl.fastly.net/quick/Marshal.4.8/json-1.7.7-java.gemspec.rz
HTTP Redirection
Too many redirects
Bundler::HTTPError: Too many redirects
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/fetcher.rb:197:in `fetch'
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/fetcher.rb:222:in `fetch'
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/fetcher.rb:222:in `fetch'
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/fetcher.rb:222:in `fetch'
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/fetcher.rb:222:in `fetch'
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/fetcher.rb:222:in `fetch'
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/fetcher.rb:92:in `fetch_spec'
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/remote_specification.rb:46:in `_remote_specification'
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/remote_specification.rb:51:in `method_missing'
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/resolver.rb:101:in `block in __dependencies'
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/resolver.rb:98:in `each'
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/resolver.rb:98:in `__dependencies'
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/resolver.rb:68:in .
.
.
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/installer.rb:83:in `run'
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/installer.rb:14:in `install'
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/cli.rb:247:in `install'
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/vendor/thor/task.rb:27:in `run'
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/vendor/thor/invocation.rb:120:in `invoke_task'
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/vendor/thor.rb:344:in `dispatch'
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/vendor/thor/base.rb:434:in `start'
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/bin/bundle:20:in `block in '
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/friendly_errors.rb:3:in `with_friendly_errors'
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/bin/bundle:20:in `'
/usr/local/bin/bundle:19:in `load'
/usr/local/bin/bundle:19:in `'
Looks like an outdated rubygems, try:
$ gem update --system
Or if you are stick with sudo
$ sudo gem update --system
If that command fails, try this:
$ sudo gem install rubygems-update
$ sudo gem update --system

Resources