The Gems Mac OS

broken image


I am trying to install Sass on macOS Sierra but get the error below. I've tried looking on stack overflow and there are similar questions, but no solutions that help me.

Thank you in advance.

Gem install -no-document List installed gems gem list To check if any installed gems are outdated: gem outdated Update installed gems. To update all gems or a particular gem: gem update Remove old gem versions. RubyGems keeps old versions of gems, so feel free to do some cleaning after updating: gem cleanup. We recommend not installing Ruby gems globally to avoid file permissions problems and using sudo. On Mojave (10.14) Because of SIP Protections in Mojave, run. From hard-core shooters to amazingly fun casual games, thousands of quality Mac games are available for purchase and download. Explore the latest demos, dive into the best sellers, or check out the newest indie gems. Mac Game Compatibility Checker™ Ever purchase a game but only later learn it's not compatible with your Mac?

Jermaine

Jermaines-MBP:~ jermainesmith$ gem install sass
Fetching: ffi-1.9.18.gem (100%)
ERROR: While executing gem … (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
Jermaines-MBP:~ jermainesmith$ sudo gem install sass
Password:
Building native extensions. This could take a while…
ERROR: Error installing sass:
ERROR: Failed to build gem native extension.

mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/include/ruby.h

Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/ffi-1.9.18 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/gems/ffi-1.9.18/ext/ffi_c/gem_make.out
Jermaines-MBP:~ jermainesmith$

The gems mac os download

I previously posted about how to upgrade your ruby environment for OS X Mavericks: https://coderwall.com/p/5awmcq. I was helping a friend update his environment using the same steps, but we kept running into issues building gems with native extensions.

This was apparently due to a conflict between RVM (ruby version manager) and the installed version of GCC.

After a lot of dead ends attempting to get the gem bundle to install, I eventually stumbled on this SO question: http://stackoverflow.com/questions/15204141/adding-usr-bin-gcc-4-2-to-path-installing-ruby.

The only answer (at time of writing) was to run:

This spills out a ton of useful information about the rvm config. In the case of the machine I was working on, there were a variety of things missing for rvm to successfully install ruby and compile gems.

First I removed the existing version of ruby:

Lowpolydioramajam2016 - entry mac os. Then followed the detailed instructions returned by running rvm requirements. In my case:

Reopen your terminal windows. Then install gcc-4.2:

The Gems Mac Os Catalina

Further information: http://stackoverflow.com/questions/8032824/cant-install-ruby-under-lion-with-rvm-gcc-issues

The Gems Mac Os 11

After running these steps, ruby was installed cleanly and bundler was able to install gems with native extensions. There are many questions on SO and various fixes recommended, but these were the steps that worked for me.





broken image