ERROR: Failed to build gem native extension. (Mac Mountain Lion / Compass / RVM ) - ruby

I don't have any clue how to solve this.
I reinstalled the Xcode Commandline tools which were missing previously - but the problem still persists.
Compass and CodeKit do not work as expected.
Any idea what to do?
Marcs-Mac-mini:~ marc$ gem update --system
Error loading RubyGems plugin "/Users/marc/.rvm/gems/ruby-2.1.0#global/gems/executable-hooks-1.3.1/lib/rubygems_plugin.rb": ERROR: Failed to build gem native extension.
/usr/local/Cellar/ruby/2.1.0/bin/ruby extconf.rb
/usr/local/Cellar/ruby/2.1.0/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': dlopen(/usr/local/Cellar/ruby/2.1.0/lib/ruby/2.1.0/x86_64-darwin12.0/openssl.bundle, 9): Library not loaded: ##HOMEBREW_CELLAR##/openssl/1.0.1f/lib/libcrypto.1.0.0.dylib (LoadError)
Referenced from: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
Reason: image not found - /usr/local/Cellar/ruby/2.1.0/lib/ruby/2.1.0/x86_64-darwin12.0/openssl.bundle
from /usr/local/Cellar/ruby/2.1.0/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/local/Cellar/ruby/2.1.0/lib/ruby/2.1.0/openssl.rb:17:in `<top (required)>'
from /usr/local/Cellar/ruby/2.1.0/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/local/Cellar/ruby/2.1.0/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/local/Cellar/ruby/2.1.0/lib/ruby/2.1.0/rubygems/security.rb:11:in `<top (required)>'
from /usr/local/Cellar/ruby/2.1.0/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/local/Cellar/ruby/2.1.0/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/local/Cellar/ruby/2.1.0/lib/ruby/2.1.0/rubygems/package.rb:43:in `<top (required)>'
from /usr/local/Cellar/ruby/2.1.0/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/local/Cellar/ruby/2.1.0/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/local/Cellar/ruby/2.1.0/lib/ruby/2.1.0/rubygems/installer.rb:9:in `<top (required)>'
from /usr/local/Cellar/ruby/2.1.0/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/local/Cellar/ruby/2.1.0/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/marc/.rvm/gems/ruby-2.1.0#global/gems/executable-hooks-1.3.1/lib/executable-hooks/regenerate_binstubs_command.rb:2:in `<top (required)>'
from /usr/local/Cellar/ruby/2.1.0/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/local/Cellar/ruby/2.1.0/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from extconf.rb:16:in `<main>'
extconf failed, exit code 1
Gem files will remain installed in /Users/marc/.rvm/gems/ruby-2.1.0#global/gems/executable-hooks-1.3.1 for inspection.
Results logged to /Users/marc/.rvm/gems/ruby-2.1.0#global/extensions/x86_64-darwin-12/2.1.0/executable-hooks-1.3.1/gem_make.out
(Gem::Ext::BuildError)
Error loading RubyGems plugin "/Users/marc/.rvm/gems/ruby-2.1.0#global/gems/gem-wrappers-1.2.4/lib/rubygems_plugin.rb": ERROR: Failed to build gem native extension.
/usr/local/Cellar/ruby/2.1.0/bin/ruby extconf.rb
/usr/local/Cellar/ruby/2.1.0/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': dlopen(/usr/local/Cellar/ruby/2.1.0/lib/ruby/2.1.0/x86_64-darwin12.0/openssl.bundle, 9): Library not loaded: ##HOMEBREW_CELLAR##/openssl/1.0.1f/lib/libcrypto.1.0.0.dylib (LoadError)
Referenced from: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
Reason: image not found - /usr/local/Cellar/ruby/2.1.0/lib/ruby/2.1.0/x86_64-darwin12.0/openssl.bundle
from /usr/local/Cellar/ruby/2.1.0/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/local/Cellar/ruby/2.1.0/lib/ruby/2.1.0/openssl.rb:17:in `<top (required)>'
from /usr/local/Cellar/ruby/2.1.0/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/local/Cellar/ruby/2.1.0/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/local/Cellar/ruby/2.1.0/lib/ruby/2.1.0/rubygems/security.rb:11:in `<top (required)>'
from /usr/local/Cellar/ruby/2.1.0/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/local/Cellar/ruby/2.1.0/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/local/Cellar/ruby/2.1.0/lib/ruby/2.1.0/rubygems/package.rb:43:in `<top (required)>'
from /usr/local/Cellar/ruby/2.1.0/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/local/Cellar/ruby/2.1.0/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/local/Cellar/ruby/2.1.0/lib/ruby/2.1.0/rubygems/installer.rb:9:in `<top (required)>'
from /usr/local/Cellar/ruby/2.1.0/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/local/Cellar/ruby/2.1.0/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/marc/.rvm/gems/ruby-2.1.0#global/gems/executable-hooks-1.3.1/lib/executable-hooks/regenerate_binstubs_command.rb:2:in `<top (required)>'
from /usr/local/Cellar/ruby/2.1.0/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/local/Cellar/ruby/2.1.0/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from extconf.rb:16:in `<main>'
extconf failed, exit code 1
Gem files will remain installed in /Users/marc/.rvm/gems/ruby-2.1.0#global/gems/executable-hooks-1.3.1 for inspection.
Results logged to /Users/marc/.rvm/gems/ruby-2.1.0#global/extensions/x86_64-darwin-12/2.1.0/executable-hooks-1.3.1/gem_make.out
(Gem::Ext::BuildError)
ERROR: Loading command: update (LoadError)
dlopen(/usr/local/Cellar/ruby/2.1.0/lib/ruby/2.1.0/x86_64-darwin12.0/openssl.bundle, 9): Library not loaded: ##HOMEBREW_CELLAR##/openssl/1.0.1f/lib/libcrypto.1.0.0.dylib
Referenced from: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
Reason: image not found - /usr/local/Cellar/ruby/2.1.0/lib/ruby/2.1.0/x86_64-darwin12.0/openssl.bundle
ERROR: While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args' for nil:NilClass

Ok … seem to having solved it myself:
gem uninstall compass
gem uninstall sass
gem install sass
gem install compass
after these step the issue has not been solved …
a rvm reinstall ruby-2.1.0 did the trick…

Related

why does bundle install and Gem install bundler give me an openssl error when openssl is already installed?

I am having a problem where neither bundle install nor gem install bundler is working giving me the following problems:
Warning: the running version of Bundler (1.16.1) is older than the version that created the lockfile (1.17.2). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.
/Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require': dlopen(/Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/2.4.0/x86_64-darwin17/openssl.bundle, 9): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib (LoadError)
Referenced from: /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/2.4.0/x86_64-darwin17/openssl.bundle
Reason: image not found - /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/2.4.0/x86_64-darwin17/openssl.bundle
from /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/2.4.0/openssl.rb:13:in `<top (required)>'
from /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/2.4.0/rubygems/security.rb:12:in `<top (required)>'
from /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/2.4.0/rubygems/package.rb:44:in `<top (required)>'
from /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/2.4.0/rubygems/dependency_installer.rb:4:in `<top (required)>'
from /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/lib/bundler/installer.rb:4:in `<top (required)>'
from /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/lib/bundler/cli/install.rb:65:in `run'
from /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/lib/bundler/cli.rb:224:in `block in install'
from /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/lib/bundler/settings.rb:136:in `temporary'
from /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/lib/bundler/cli.rb:223:in `install'
from /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
from /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
from /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch'
from /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/lib/bundler/cli.rb:27:in `dispatch'
from /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start'
from /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/lib/bundler/cli.rb:18:in `start'
from /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/exe/bundle:30:in `block in <top (required)>'
from /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/lib/bundler/friendly_errors.rb:122:in `with_friendly_errors'
from /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/exe/bundle:22:in `<top (required)>'
from ./bin/bundle:3:in `load'
from ./bin/bundle:3:in `<main>'
and when running gem install bundler
ERROR: Loading command: install (LoadError)
dlopen(/Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/2.4.0/x86_64-darwin17/openssl.bundle, 9): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
Referenced from: /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/2.4.0/x86_64-darwin17/openssl.bundle
Reason: image not found - /Users/tuanperera/.rbenv/versions/2.4.3/lib/ruby/2.4.0/x86_64-darwin17/openssl.bundle
ERROR: While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args' for nil:NilClass
I have already tried to reinstall openssl as well as ruby and rvm and nothing has worked so far and as such would really appreciate if anyone would know how to fix this.
Cheers

Rest-Client will not install for Ruby

I am trying to run a Ruby app with the rest-client gem install. I keep getting the error message:
C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/rest-client-1.8.0/lib/restclient/windows/root_certs.rb:2:in `require': cannot load such file -- ffi (LoadError)
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/rest-client-1.8.0/lib/restclient/windows/root_certs.rb:2:in `<top (required)>'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/rest-client-1.8.0/lib/restclient/windows.rb:7:in `require_relative'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/rest-client-1.8.0/lib/restclient/windows.rb:7:in `<top (required)>'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/rest-client-1.8.0/lib/restclient.rb:16:in `require'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/rest-client-1.8.0/lib/restclient.rb:16:in `<top (required)>'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/rest-client-1.8.0/lib/rest-client.rb:2:in `require'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/rest-client-1.8.0/lib/rest-client.rb:2:in `<top (required)>'
from app.rb:6:in `require'
from app.rb:6:in `<main>'
$ ./start ruby
Installing bundle
Starting server
C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/rest-client-1.8.0/lib/restclient/windows/root_certs.rb:2:in `require': cannot load such file -- ffi (LoadError)
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/rest-client-1.8.0/lib/restclient/windows/root_certs.rb:2:in `<top (required)>'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/rest-client-1.8.0/lib/restclient/windows.rb:7:in `require_relative'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/rest-client-1.8.0/lib/restclient/windows.rb:7:in `<top (required)>'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/rest-client-1.8.0/lib/restclient.rb:16:in `require'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/rest-client-1.8.0/lib/restclient.rb:16:in `<top (required)>'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/rest-client-1.8.0/lib/rest-client.rb:2:in `require'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/rest-client-1.8.0/lib/rest-client.rb:2:in `<top (required)>'
from app.rb:6:in `require'
from app.rb:6:in `<main>'
However I am sure that the gem is install:
rest-client (2.0.0.rc2, 1.8.0)
rest-open-uri (1.0.0)
rest_client (1.8.3)
Does anyone know possibly what I am doing wrong in the installation process?
The issue was the that FFI was not install and was the reason I was getting error messages. unfortunately using
bundle install
did not install it correct and I had to install the gem manually (which takes much longer than expected to install
gem install ffi

Thin can't find pg_ext

I'm trying to run the command
thin -R lat.ru start
in the directory 50web\servers\dev (lat.ru is part of the open source project 50web).
I get the following error:
D:\dev\derek\50web\servers\dev>thin -R lat.ru start
C:/Ruby21/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': ca
nnot load such file -- 2.1/pg_ext (LoadError)
from C:/Ruby21/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in
`require'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/pg-0.18.4/lib/pg.rb:14:in `rescu
e in <top (required)>'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/pg-0.18.4/lib/pg.rb:3:in `<top (
required)>'
from C:/Ruby21/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:135:in
`require'
from C:/Ruby21/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:135:in
`rescue in require'
from C:/Ruby21/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:144:in
`require'
from C:/Ruby21/lib/ruby/site_ruby/2.1.0/getdb.rb:11:in `<top (required)>
'
from C:/Ruby21/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in
`require'
from C:/Ruby21/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in
`require'
from D:/dev/derek/50web/routes/lat.rb:2:in `<top (required)>'
from C:/Ruby21/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in
`require'
from C:/Ruby21/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in
`require'
from lat.ru:3:in `block in <main>'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/rack-1.6.4/lib/rack/builder.rb:5
5:in `instance_eval'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/rack-1.6.4/lib/rack/builder.rb:5
5:in `initialize'
from lat.ru:1:in `new'
from lat.ru:1:in `<main>'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/thin-1.6.4/lib/rack/adapter/load
er.rb:33:in `eval'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/thin-1.6.4/lib/rack/adapter/load
er.rb:33:in `load'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/thin-1.6.4/lib/thin/controllers/
controller.rb:182:in `load_rackup_config'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/thin-1.6.4/lib/thin/controllers/
controller.rb:72:in `start'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/thin-1.6.4/lib/thin/runner.rb:20
0:in `run_command'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/thin-1.6.4/lib/thin/runner.rb:15
6:in `run!'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/thin-1.6.4/bin/thin:6:in `<top (
required)>'
from C:/Ruby21/bin/thin:23:in `load'
from C:/Ruby21/bin/thin:23:in `<main>'
I'm using pg 0.18.4, which seems like the most recent version:
D:\dev\derek\50web\servers\dev>gem list pg
*** LOCAL GEMS ***
pg (0.18.4)
D:\dev\derek\50web\servers\dev>gem update pg
Updating installed gems
Nothing to update
Ruby version is 2.1.7p400 (2015-08-18 revision 51632) [i386-mingw32].
How can I fix this error?
Update 1 (02.02.2016 08:08 MSK):
I've to run the same project on a different machine:
C:\usr\dp\dev\derek\50web\servers\dev>ruby lat.ru
C:/Ruby22/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- 2.2/pg_ext (LoadError)
from C:/Ruby22/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from C:/Ruby22/lib/ruby/gems/2.2.0/gems/pg-0.18.4/lib/pg.rb:14:in `rescue in <top (required)>'
from C:/Ruby22/lib/ruby/gems/2.2.0/gems/pg-0.18.4/lib/pg.rb:3:in `<top (required)>'
from C:/Ruby22/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:128:in `require'
I noticed that Ruby seems to look for the pg_ext file in 2.2/pg_ext directory, whereas in reality it's installed in the C:\Ruby22\lib\ruby\gems\2.2.0\gems\pg-0.18.4\lib directory.
It looks like installation of C-extension part of pg gem is broken.
make sure postgresql development libraries are installed
reinstall pg gem and see if there are no error messages
Reinstallation with -f force flag, or better gem uninstall and gem install anew.
I fixed the error by uninstalling the pg gem and re-installing it using gem install pg --pre command. It's necessary because of a bug, which hasn't been fixed in the release version yet.

Cannot run sass after installing

I have sass installed on my Mac but every time I try to run I get this error.
I am on a Mac with OSX 10.9.4
Ruby 1.9.3
Andrews-iMac:~ andrewcorliss$ sass -v
/Users/andrewcorliss/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': dlopen(/Users/andrewcorliss/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/x86_64-darwin12.3.0/digest/sha1.bundle, 9): Library not loaded: /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib (LoadError)
Referenced from: /Users/andrewcorliss/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/x86_64-darwin12.3.0/digest/sha1.bundle
Reason: image not found - /Users/andrewcorliss/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/x86_64-darwin12.3.0/digest/sha1.bundle
from /Users/andrewcorliss/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/andrewcorliss/.rvm/gems/ruby-1.9.3-p392/gems/sass-3.3.14/lib/sass/engine.rb:2:in `<top (required)>'
from /Users/andrewcorliss/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/andrewcorliss/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/andrewcorliss/.rvm/gems/ruby-1.9.3-p392/gems/sass-3.3.14/lib/sass.rb:104:in `<top (required)>'
from /Users/andrewcorliss/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/andrewcorliss/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/andrewcorliss/.rvm/gems/ruby-1.9.3-p392/gems/sass-3.3.14/bin/sass:8:in `rescue in <top (required)>'
from /Users/andrewcorliss/.rvm/gems/ruby-1.9.3-p392/gems/sass-3.3.14/bin/sass:5:in `<top (required)>'
from /Users/andrewcorliss/.rvm/gems/ruby-1.9.3-p392/bin/sass:19:in `load'
from /Users/andrewcorliss/.rvm/gems/ruby-1.9.3-p392/bin/sass:19:in `<main>'
from /Users/andrewcorliss/.rvm/gems/ruby-1.9.3-p392/bin/ruby_noexec_wrapper:14:in `eval'
from /Users/andrewcorliss/.rvm/gems/ruby-1.9.3-p392/bin/ruby_noexec_wrapper:14:in `<main>'
Any help is appreciated.
Yeah I finally found the Answer. I did not have node or ruby on rails properly installed on my machine. Once doing a clean and installing it fresh everything worked fine.

Ruby: cannot resolve dependencies for win32 package

I just installed win32-clibpoard for Ruby but it does not work because of a highly descriptive message RubyGem version error: win32-api(1.4.5 not >= 0).
Help needed.
C:> gem install win32-clipboard
Successfully installed win32-clipboard-0.5.2
1 gem installed
Installing ri documentation for win32-clipboard-0.5.2...
Installing RDoc documentation for win32-clipboard-0.5.2...
c:/ruby19/lib/ruby/site_ruby/1.9.1/rubygems.rb:926:in `report_activate_error': RubyGem version error: win32-api(1.4.5 not >= 0) (Gem::LoadError)
from c:/ruby19/lib/ruby/site_ruby/1.9.1/rubygems.rb:244:in `activate_dep'
from c:/ruby19/lib/ruby/site_ruby/1.9.1/rubygems.rb:236:in `activate'
from c:/ruby19/lib/ruby/site_ruby/1.9.1/rubygems.rb:213:in `rescue in try_activate'
from c:/ruby19/lib/ruby/site_ruby/1.9.1/rubygems.rb:210:in `try_activate'
from c:/ruby19/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:56:in `rescue in require'
from c:/ruby19/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
from c:/ruby19/lib/ruby/gems/1.9.1/gems/windows-api-0.4.0/lib/windows/api.rb:1:in `<top (required)>'
from c:/ruby19/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:53:in `require'
from c:/ruby19/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:53:in `require'
from c:/ruby19/lib/ruby/gems/1.9.1/gems/windows-pr-1.2.1/lib/windows/clipboard.rb:1:in `<top (required)>'
from c:/ruby19/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:53:in `require'
from c:/ruby19/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:53:in `require'
from c:/ruby19/lib/ruby/gems/1.9.1/gems/win32-clipboard-0.5.2/lib/win32/clipboard.rb:1:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:33:in `require'
from <internal:lib/rubygems/custom_require>:33:in `rescue in require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from files2tracks.rb:1:in `<main>'
You should uninstall the actual gem win32-api, just execute gem uninstall win-32-api
and then proceed with:
1 Download the gem from http://rubyforge.org/frs/download.php/62628/win32-api-1.4.5-x86-mswin32-60.gem
2 And install it locally with:
gem install win32-api-1.4.5-x86-mswin32-60.gem
3 and then try:
gem install win32-clipboard

Resources