gem install compass error after Mac OS Sierra 10.12.6 update





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















A few days ago I did a Mac OS Sierra 10.12.6 Security Update 2018-005. Yesterday I ran grunt and got a:



Warning: Running "sass:dist" (sass) task
Warning: spawn sass ENOENT Use --force to continue.

Aborted due to warnings.


I followed the instructions here: https://github.com/appseed-io/supermodular/issues/45



xcode-select --install
sudo gem update --system
sudo gem install -n /usr/local/bin compass


I was still getting grunt errors:



Running "sass:build" (sass) task
ERROR: Cannot load compass.
Warning: Exited with error code 1 Use --force to continue.

Aborted due to warnings.


I then followed the instruction here: https://halfelf.org/2017/grunt-cant-build-sass-on-high-sierra/



brew install rbenv ruby-build

rbenv install 2.4.2
rbenv global 2.4.2

sudo gem update --system

sudo gem install -n /usr/local/bin sass


Still getting the grunt ERROR: Cannot load compass.



Then tried sudo gem install -n /usr/local/bin compass again, but get the following error:



ERROR:  Error installing compass:
ERROR: Failed to build gem native extension.


I checked the mkmf.log file which says:



"pkg-config --exists libffi"
package configuration for libffi is not found
"xcrun clang -o conftest -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/universal-darwin16 -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/ruby/backward -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -g -Os -pipe -DHAVE_GCC_ATOMIC_BUILTINS -iwithsysroot /usr/local/libressl/include conftest.c -L. -L/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib -L. -L /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.Internal.sdk/usr/local/libressl/lib -L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.Internal.sdk/usr/local/lib -arch x86_64 -arch i386 -lruby.2.3.0 -lpthread -ldl -lobjc "
In file included from conftest.c:1:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/ruby.h:33:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/ruby/ruby.h:24:10: fatal error: 'ruby/config.h' file not found
#include "ruby/config.h"
^~~~~~~~~~~~~~~
1 error generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main(int argc, char **argv)
4: {
5: return 0;
6: }
/* end */


What I take from that (not really knowing) is that package configuration for libffi is not found and fatal error: 'ruby/config.h' file not found.



Additional info:



Xcode Version 9.2 (9C40b)



ruby -v
ruby 2.3.7p456 (2018-03-28 revision 63024) [universal.x86_64-darwin16]

sass -v
Sass 3.4.25 (Selective Steve)

compass -v
-bash: /usr/local/bin/compass:
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby: bad interpreter: No such file or directory


Thanks in advance.



UPDATE



I ran gem env. This is the output:



RubyGems Environment:
- RUBYGEMS VERSION: 2.7.8
- RUBY VERSION: 2.3.7 (2018-03-28 patchlevel 456) [universal.x86_64-darwin16]
- INSTALLATION DIRECTORY: /Library/Ruby/Gems/2.3.0
- USER INSTALLATION DIRECTORY: /Users/username/.gem/ruby/2.3.0
- RUBY EXECUTABLE: /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby
- EXECUTABLE DIRECTORY: /usr/bin
- SPEC CACHE DIRECTORY: /Users/username/.gem/specs
- SYSTEM CONFIGURATION DIRECTORY: /Library/Ruby/Site
- RUBYGEMS PLATFORMS:
- ruby
- universal-darwin-16
- GEM PATHS:
- /Library/Ruby/Gems/2.3.0
- /Users/username/.gem/ruby/2.3.0
- /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/gems/2.3.0
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- https://rubygems.org/
- SHELL PATH:
- /Users/username/.nvm/versions/node/v8.4.0/bin
- /Users/username/.wp-cli/bin
- /usr/local/bin
- /usr/local/bin
- /usr/bin
- /bin
- /usr/sbin
- /sbin









share|improve this question

























  • paste the output of the following. gem env. It sounds like your $PATH is not setup correctly, this is often the problem with rbenv.

    – lacostenycoder
    Nov 16 '18 at 23:20











  • Thanks @lacostenycoder. I updated the question with the gem env output.

    – scpers0n
    Nov 17 '18 at 0:07











  • @lacostenycoder Seems like it's trying to find compass in a different directory than where ruby is not installed. How can I correct $PATH?

    – scpers0n
    Nov 17 '18 at 0:15











  • see updated answer

    – lacostenycoder
    Nov 17 '18 at 1:49


















0















A few days ago I did a Mac OS Sierra 10.12.6 Security Update 2018-005. Yesterday I ran grunt and got a:



Warning: Running "sass:dist" (sass) task
Warning: spawn sass ENOENT Use --force to continue.

Aborted due to warnings.


I followed the instructions here: https://github.com/appseed-io/supermodular/issues/45



xcode-select --install
sudo gem update --system
sudo gem install -n /usr/local/bin compass


I was still getting grunt errors:



Running "sass:build" (sass) task
ERROR: Cannot load compass.
Warning: Exited with error code 1 Use --force to continue.

Aborted due to warnings.


I then followed the instruction here: https://halfelf.org/2017/grunt-cant-build-sass-on-high-sierra/



brew install rbenv ruby-build

rbenv install 2.4.2
rbenv global 2.4.2

sudo gem update --system

sudo gem install -n /usr/local/bin sass


Still getting the grunt ERROR: Cannot load compass.



Then tried sudo gem install -n /usr/local/bin compass again, but get the following error:



ERROR:  Error installing compass:
ERROR: Failed to build gem native extension.


I checked the mkmf.log file which says:



"pkg-config --exists libffi"
package configuration for libffi is not found
"xcrun clang -o conftest -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/universal-darwin16 -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/ruby/backward -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -g -Os -pipe -DHAVE_GCC_ATOMIC_BUILTINS -iwithsysroot /usr/local/libressl/include conftest.c -L. -L/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib -L. -L /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.Internal.sdk/usr/local/libressl/lib -L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.Internal.sdk/usr/local/lib -arch x86_64 -arch i386 -lruby.2.3.0 -lpthread -ldl -lobjc "
In file included from conftest.c:1:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/ruby.h:33:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/ruby/ruby.h:24:10: fatal error: 'ruby/config.h' file not found
#include "ruby/config.h"
^~~~~~~~~~~~~~~
1 error generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main(int argc, char **argv)
4: {
5: return 0;
6: }
/* end */


What I take from that (not really knowing) is that package configuration for libffi is not found and fatal error: 'ruby/config.h' file not found.



Additional info:



Xcode Version 9.2 (9C40b)



ruby -v
ruby 2.3.7p456 (2018-03-28 revision 63024) [universal.x86_64-darwin16]

sass -v
Sass 3.4.25 (Selective Steve)

compass -v
-bash: /usr/local/bin/compass:
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby: bad interpreter: No such file or directory


Thanks in advance.



UPDATE



I ran gem env. This is the output:



RubyGems Environment:
- RUBYGEMS VERSION: 2.7.8
- RUBY VERSION: 2.3.7 (2018-03-28 patchlevel 456) [universal.x86_64-darwin16]
- INSTALLATION DIRECTORY: /Library/Ruby/Gems/2.3.0
- USER INSTALLATION DIRECTORY: /Users/username/.gem/ruby/2.3.0
- RUBY EXECUTABLE: /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby
- EXECUTABLE DIRECTORY: /usr/bin
- SPEC CACHE DIRECTORY: /Users/username/.gem/specs
- SYSTEM CONFIGURATION DIRECTORY: /Library/Ruby/Site
- RUBYGEMS PLATFORMS:
- ruby
- universal-darwin-16
- GEM PATHS:
- /Library/Ruby/Gems/2.3.0
- /Users/username/.gem/ruby/2.3.0
- /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/gems/2.3.0
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- https://rubygems.org/
- SHELL PATH:
- /Users/username/.nvm/versions/node/v8.4.0/bin
- /Users/username/.wp-cli/bin
- /usr/local/bin
- /usr/local/bin
- /usr/bin
- /bin
- /usr/sbin
- /sbin









share|improve this question

























  • paste the output of the following. gem env. It sounds like your $PATH is not setup correctly, this is often the problem with rbenv.

    – lacostenycoder
    Nov 16 '18 at 23:20











  • Thanks @lacostenycoder. I updated the question with the gem env output.

    – scpers0n
    Nov 17 '18 at 0:07











  • @lacostenycoder Seems like it's trying to find compass in a different directory than where ruby is not installed. How can I correct $PATH?

    – scpers0n
    Nov 17 '18 at 0:15











  • see updated answer

    – lacostenycoder
    Nov 17 '18 at 1:49














0












0








0








A few days ago I did a Mac OS Sierra 10.12.6 Security Update 2018-005. Yesterday I ran grunt and got a:



Warning: Running "sass:dist" (sass) task
Warning: spawn sass ENOENT Use --force to continue.

Aborted due to warnings.


I followed the instructions here: https://github.com/appseed-io/supermodular/issues/45



xcode-select --install
sudo gem update --system
sudo gem install -n /usr/local/bin compass


I was still getting grunt errors:



Running "sass:build" (sass) task
ERROR: Cannot load compass.
Warning: Exited with error code 1 Use --force to continue.

Aborted due to warnings.


I then followed the instruction here: https://halfelf.org/2017/grunt-cant-build-sass-on-high-sierra/



brew install rbenv ruby-build

rbenv install 2.4.2
rbenv global 2.4.2

sudo gem update --system

sudo gem install -n /usr/local/bin sass


Still getting the grunt ERROR: Cannot load compass.



Then tried sudo gem install -n /usr/local/bin compass again, but get the following error:



ERROR:  Error installing compass:
ERROR: Failed to build gem native extension.


I checked the mkmf.log file which says:



"pkg-config --exists libffi"
package configuration for libffi is not found
"xcrun clang -o conftest -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/universal-darwin16 -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/ruby/backward -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -g -Os -pipe -DHAVE_GCC_ATOMIC_BUILTINS -iwithsysroot /usr/local/libressl/include conftest.c -L. -L/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib -L. -L /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.Internal.sdk/usr/local/libressl/lib -L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.Internal.sdk/usr/local/lib -arch x86_64 -arch i386 -lruby.2.3.0 -lpthread -ldl -lobjc "
In file included from conftest.c:1:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/ruby.h:33:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/ruby/ruby.h:24:10: fatal error: 'ruby/config.h' file not found
#include "ruby/config.h"
^~~~~~~~~~~~~~~
1 error generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main(int argc, char **argv)
4: {
5: return 0;
6: }
/* end */


What I take from that (not really knowing) is that package configuration for libffi is not found and fatal error: 'ruby/config.h' file not found.



Additional info:



Xcode Version 9.2 (9C40b)



ruby -v
ruby 2.3.7p456 (2018-03-28 revision 63024) [universal.x86_64-darwin16]

sass -v
Sass 3.4.25 (Selective Steve)

compass -v
-bash: /usr/local/bin/compass:
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby: bad interpreter: No such file or directory


Thanks in advance.



UPDATE



I ran gem env. This is the output:



RubyGems Environment:
- RUBYGEMS VERSION: 2.7.8
- RUBY VERSION: 2.3.7 (2018-03-28 patchlevel 456) [universal.x86_64-darwin16]
- INSTALLATION DIRECTORY: /Library/Ruby/Gems/2.3.0
- USER INSTALLATION DIRECTORY: /Users/username/.gem/ruby/2.3.0
- RUBY EXECUTABLE: /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby
- EXECUTABLE DIRECTORY: /usr/bin
- SPEC CACHE DIRECTORY: /Users/username/.gem/specs
- SYSTEM CONFIGURATION DIRECTORY: /Library/Ruby/Site
- RUBYGEMS PLATFORMS:
- ruby
- universal-darwin-16
- GEM PATHS:
- /Library/Ruby/Gems/2.3.0
- /Users/username/.gem/ruby/2.3.0
- /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/gems/2.3.0
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- https://rubygems.org/
- SHELL PATH:
- /Users/username/.nvm/versions/node/v8.4.0/bin
- /Users/username/.wp-cli/bin
- /usr/local/bin
- /usr/local/bin
- /usr/bin
- /bin
- /usr/sbin
- /sbin









share|improve this question
















A few days ago I did a Mac OS Sierra 10.12.6 Security Update 2018-005. Yesterday I ran grunt and got a:



Warning: Running "sass:dist" (sass) task
Warning: spawn sass ENOENT Use --force to continue.

Aborted due to warnings.


I followed the instructions here: https://github.com/appseed-io/supermodular/issues/45



xcode-select --install
sudo gem update --system
sudo gem install -n /usr/local/bin compass


I was still getting grunt errors:



Running "sass:build" (sass) task
ERROR: Cannot load compass.
Warning: Exited with error code 1 Use --force to continue.

Aborted due to warnings.


I then followed the instruction here: https://halfelf.org/2017/grunt-cant-build-sass-on-high-sierra/



brew install rbenv ruby-build

rbenv install 2.4.2
rbenv global 2.4.2

sudo gem update --system

sudo gem install -n /usr/local/bin sass


Still getting the grunt ERROR: Cannot load compass.



Then tried sudo gem install -n /usr/local/bin compass again, but get the following error:



ERROR:  Error installing compass:
ERROR: Failed to build gem native extension.


I checked the mkmf.log file which says:



"pkg-config --exists libffi"
package configuration for libffi is not found
"xcrun clang -o conftest -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/universal-darwin16 -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/ruby/backward -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -g -Os -pipe -DHAVE_GCC_ATOMIC_BUILTINS -iwithsysroot /usr/local/libressl/include conftest.c -L. -L/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib -L. -L /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.Internal.sdk/usr/local/libressl/lib -L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.Internal.sdk/usr/local/lib -arch x86_64 -arch i386 -lruby.2.3.0 -lpthread -ldl -lobjc "
In file included from conftest.c:1:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/ruby.h:33:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/ruby/ruby.h:24:10: fatal error: 'ruby/config.h' file not found
#include "ruby/config.h"
^~~~~~~~~~~~~~~
1 error generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main(int argc, char **argv)
4: {
5: return 0;
6: }
/* end */


What I take from that (not really knowing) is that package configuration for libffi is not found and fatal error: 'ruby/config.h' file not found.



Additional info:



Xcode Version 9.2 (9C40b)



ruby -v
ruby 2.3.7p456 (2018-03-28 revision 63024) [universal.x86_64-darwin16]

sass -v
Sass 3.4.25 (Selective Steve)

compass -v
-bash: /usr/local/bin/compass:
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby: bad interpreter: No such file or directory


Thanks in advance.



UPDATE



I ran gem env. This is the output:



RubyGems Environment:
- RUBYGEMS VERSION: 2.7.8
- RUBY VERSION: 2.3.7 (2018-03-28 patchlevel 456) [universal.x86_64-darwin16]
- INSTALLATION DIRECTORY: /Library/Ruby/Gems/2.3.0
- USER INSTALLATION DIRECTORY: /Users/username/.gem/ruby/2.3.0
- RUBY EXECUTABLE: /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby
- EXECUTABLE DIRECTORY: /usr/bin
- SPEC CACHE DIRECTORY: /Users/username/.gem/specs
- SYSTEM CONFIGURATION DIRECTORY: /Library/Ruby/Site
- RUBYGEMS PLATFORMS:
- ruby
- universal-darwin-16
- GEM PATHS:
- /Library/Ruby/Gems/2.3.0
- /Users/username/.gem/ruby/2.3.0
- /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/gems/2.3.0
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- https://rubygems.org/
- SHELL PATH:
- /Users/username/.nvm/versions/node/v8.4.0/bin
- /Users/username/.wp-cli/bin
- /usr/local/bin
- /usr/local/bin
- /usr/bin
- /bin
- /usr/sbin
- /sbin






ruby macos sass gruntjs compass






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 17 '18 at 0:06







scpers0n

















asked Nov 16 '18 at 17:37









scpers0nscpers0n

286




286













  • paste the output of the following. gem env. It sounds like your $PATH is not setup correctly, this is often the problem with rbenv.

    – lacostenycoder
    Nov 16 '18 at 23:20











  • Thanks @lacostenycoder. I updated the question with the gem env output.

    – scpers0n
    Nov 17 '18 at 0:07











  • @lacostenycoder Seems like it's trying to find compass in a different directory than where ruby is not installed. How can I correct $PATH?

    – scpers0n
    Nov 17 '18 at 0:15











  • see updated answer

    – lacostenycoder
    Nov 17 '18 at 1:49



















  • paste the output of the following. gem env. It sounds like your $PATH is not setup correctly, this is often the problem with rbenv.

    – lacostenycoder
    Nov 16 '18 at 23:20











  • Thanks @lacostenycoder. I updated the question with the gem env output.

    – scpers0n
    Nov 17 '18 at 0:07











  • @lacostenycoder Seems like it's trying to find compass in a different directory than where ruby is not installed. How can I correct $PATH?

    – scpers0n
    Nov 17 '18 at 0:15











  • see updated answer

    – lacostenycoder
    Nov 17 '18 at 1:49

















paste the output of the following. gem env. It sounds like your $PATH is not setup correctly, this is often the problem with rbenv.

– lacostenycoder
Nov 16 '18 at 23:20





paste the output of the following. gem env. It sounds like your $PATH is not setup correctly, this is often the problem with rbenv.

– lacostenycoder
Nov 16 '18 at 23:20













Thanks @lacostenycoder. I updated the question with the gem env output.

– scpers0n
Nov 17 '18 at 0:07





Thanks @lacostenycoder. I updated the question with the gem env output.

– scpers0n
Nov 17 '18 at 0:07













@lacostenycoder Seems like it's trying to find compass in a different directory than where ruby is not installed. How can I correct $PATH?

– scpers0n
Nov 17 '18 at 0:15





@lacostenycoder Seems like it's trying to find compass in a different directory than where ruby is not installed. How can I correct $PATH?

– scpers0n
Nov 17 '18 at 0:15













see updated answer

– lacostenycoder
Nov 17 '18 at 1:49





see updated answer

– lacostenycoder
Nov 17 '18 at 1:49












1 Answer
1






active

oldest

votes


















2














Don't do sudo gem install -n /usr/local/bin compass



The whole point of using rbenv is to let it handle all of your dependencies and not have to deal at all with your OS system ruby or it's gems. You need to get your $PATH configuration right and then you won't need to ever use sudo in fact you should NOT with gem install or any gem commands after getting your environment setup correctly.



Did you happen to try npm install -g grunt-cli ?



UPDATE: as expect your $PATH is not correct.



Close all terminals. Start a new one. Then run this.



curl -fsSL https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-doctor | bash


This should help you figure out what's wrong in your $PATH setting.
Refer to https://github.com/rbenv/rbenv#installation



But first specifically try:



echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile


Then restart your terminal and check gem env again and see if your path includes .rbenv



If these steps don't get you working then I suggest to fully uninstall rbenv and start over from step 1 of https://github.com/rbenv/rbenv#installation






share|improve this answer


























  • Thank you for the clarification on rbenv. I tried npm install -g grunt-cli but getting same ERROR: Cannot load compass.

    – scpers0n
    Nov 17 '18 at 0:08











  • Thank you, this worked! I updated the $PATH setting. Then was able to run gem update --system then gem install compass and now grunt compiles.

    – scpers0n
    Nov 17 '18 at 22:12











  • Great! Did you end up having to reinstall rbenv or just updated your $PATH ?

    – lacostenycoder
    Nov 17 '18 at 22:18






  • 1





    No, didn't have to reinstall rbenv. I hadn't set it up correctly to begin with. rbenv-doctor said to run rbenv init then add eval "$(rbenv init -)" to .bash_profile. Then I added echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile like you said. And then it all worked!

    – scpers0n
    Nov 17 '18 at 23:07












Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53342821%2fgem-install-compass-error-after-mac-os-sierra-10-12-6-update%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









2














Don't do sudo gem install -n /usr/local/bin compass



The whole point of using rbenv is to let it handle all of your dependencies and not have to deal at all with your OS system ruby or it's gems. You need to get your $PATH configuration right and then you won't need to ever use sudo in fact you should NOT with gem install or any gem commands after getting your environment setup correctly.



Did you happen to try npm install -g grunt-cli ?



UPDATE: as expect your $PATH is not correct.



Close all terminals. Start a new one. Then run this.



curl -fsSL https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-doctor | bash


This should help you figure out what's wrong in your $PATH setting.
Refer to https://github.com/rbenv/rbenv#installation



But first specifically try:



echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile


Then restart your terminal and check gem env again and see if your path includes .rbenv



If these steps don't get you working then I suggest to fully uninstall rbenv and start over from step 1 of https://github.com/rbenv/rbenv#installation






share|improve this answer


























  • Thank you for the clarification on rbenv. I tried npm install -g grunt-cli but getting same ERROR: Cannot load compass.

    – scpers0n
    Nov 17 '18 at 0:08











  • Thank you, this worked! I updated the $PATH setting. Then was able to run gem update --system then gem install compass and now grunt compiles.

    – scpers0n
    Nov 17 '18 at 22:12











  • Great! Did you end up having to reinstall rbenv or just updated your $PATH ?

    – lacostenycoder
    Nov 17 '18 at 22:18






  • 1





    No, didn't have to reinstall rbenv. I hadn't set it up correctly to begin with. rbenv-doctor said to run rbenv init then add eval "$(rbenv init -)" to .bash_profile. Then I added echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile like you said. And then it all worked!

    – scpers0n
    Nov 17 '18 at 23:07
















2














Don't do sudo gem install -n /usr/local/bin compass



The whole point of using rbenv is to let it handle all of your dependencies and not have to deal at all with your OS system ruby or it's gems. You need to get your $PATH configuration right and then you won't need to ever use sudo in fact you should NOT with gem install or any gem commands after getting your environment setup correctly.



Did you happen to try npm install -g grunt-cli ?



UPDATE: as expect your $PATH is not correct.



Close all terminals. Start a new one. Then run this.



curl -fsSL https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-doctor | bash


This should help you figure out what's wrong in your $PATH setting.
Refer to https://github.com/rbenv/rbenv#installation



But first specifically try:



echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile


Then restart your terminal and check gem env again and see if your path includes .rbenv



If these steps don't get you working then I suggest to fully uninstall rbenv and start over from step 1 of https://github.com/rbenv/rbenv#installation






share|improve this answer


























  • Thank you for the clarification on rbenv. I tried npm install -g grunt-cli but getting same ERROR: Cannot load compass.

    – scpers0n
    Nov 17 '18 at 0:08











  • Thank you, this worked! I updated the $PATH setting. Then was able to run gem update --system then gem install compass and now grunt compiles.

    – scpers0n
    Nov 17 '18 at 22:12











  • Great! Did you end up having to reinstall rbenv or just updated your $PATH ?

    – lacostenycoder
    Nov 17 '18 at 22:18






  • 1





    No, didn't have to reinstall rbenv. I hadn't set it up correctly to begin with. rbenv-doctor said to run rbenv init then add eval "$(rbenv init -)" to .bash_profile. Then I added echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile like you said. And then it all worked!

    – scpers0n
    Nov 17 '18 at 23:07














2












2








2







Don't do sudo gem install -n /usr/local/bin compass



The whole point of using rbenv is to let it handle all of your dependencies and not have to deal at all with your OS system ruby or it's gems. You need to get your $PATH configuration right and then you won't need to ever use sudo in fact you should NOT with gem install or any gem commands after getting your environment setup correctly.



Did you happen to try npm install -g grunt-cli ?



UPDATE: as expect your $PATH is not correct.



Close all terminals. Start a new one. Then run this.



curl -fsSL https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-doctor | bash


This should help you figure out what's wrong in your $PATH setting.
Refer to https://github.com/rbenv/rbenv#installation



But first specifically try:



echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile


Then restart your terminal and check gem env again and see if your path includes .rbenv



If these steps don't get you working then I suggest to fully uninstall rbenv and start over from step 1 of https://github.com/rbenv/rbenv#installation






share|improve this answer















Don't do sudo gem install -n /usr/local/bin compass



The whole point of using rbenv is to let it handle all of your dependencies and not have to deal at all with your OS system ruby or it's gems. You need to get your $PATH configuration right and then you won't need to ever use sudo in fact you should NOT with gem install or any gem commands after getting your environment setup correctly.



Did you happen to try npm install -g grunt-cli ?



UPDATE: as expect your $PATH is not correct.



Close all terminals. Start a new one. Then run this.



curl -fsSL https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-doctor | bash


This should help you figure out what's wrong in your $PATH setting.
Refer to https://github.com/rbenv/rbenv#installation



But first specifically try:



echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile


Then restart your terminal and check gem env again and see if your path includes .rbenv



If these steps don't get you working then I suggest to fully uninstall rbenv and start over from step 1 of https://github.com/rbenv/rbenv#installation







share|improve this answer














share|improve this answer



share|improve this answer








edited Nov 17 '18 at 1:49

























answered Nov 16 '18 at 23:32









lacostenycoderlacostenycoder

4,59111331




4,59111331













  • Thank you for the clarification on rbenv. I tried npm install -g grunt-cli but getting same ERROR: Cannot load compass.

    – scpers0n
    Nov 17 '18 at 0:08











  • Thank you, this worked! I updated the $PATH setting. Then was able to run gem update --system then gem install compass and now grunt compiles.

    – scpers0n
    Nov 17 '18 at 22:12











  • Great! Did you end up having to reinstall rbenv or just updated your $PATH ?

    – lacostenycoder
    Nov 17 '18 at 22:18






  • 1





    No, didn't have to reinstall rbenv. I hadn't set it up correctly to begin with. rbenv-doctor said to run rbenv init then add eval "$(rbenv init -)" to .bash_profile. Then I added echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile like you said. And then it all worked!

    – scpers0n
    Nov 17 '18 at 23:07



















  • Thank you for the clarification on rbenv. I tried npm install -g grunt-cli but getting same ERROR: Cannot load compass.

    – scpers0n
    Nov 17 '18 at 0:08











  • Thank you, this worked! I updated the $PATH setting. Then was able to run gem update --system then gem install compass and now grunt compiles.

    – scpers0n
    Nov 17 '18 at 22:12











  • Great! Did you end up having to reinstall rbenv or just updated your $PATH ?

    – lacostenycoder
    Nov 17 '18 at 22:18






  • 1





    No, didn't have to reinstall rbenv. I hadn't set it up correctly to begin with. rbenv-doctor said to run rbenv init then add eval "$(rbenv init -)" to .bash_profile. Then I added echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile like you said. And then it all worked!

    – scpers0n
    Nov 17 '18 at 23:07

















Thank you for the clarification on rbenv. I tried npm install -g grunt-cli but getting same ERROR: Cannot load compass.

– scpers0n
Nov 17 '18 at 0:08





Thank you for the clarification on rbenv. I tried npm install -g grunt-cli but getting same ERROR: Cannot load compass.

– scpers0n
Nov 17 '18 at 0:08













Thank you, this worked! I updated the $PATH setting. Then was able to run gem update --system then gem install compass and now grunt compiles.

– scpers0n
Nov 17 '18 at 22:12





Thank you, this worked! I updated the $PATH setting. Then was able to run gem update --system then gem install compass and now grunt compiles.

– scpers0n
Nov 17 '18 at 22:12













Great! Did you end up having to reinstall rbenv or just updated your $PATH ?

– lacostenycoder
Nov 17 '18 at 22:18





Great! Did you end up having to reinstall rbenv or just updated your $PATH ?

– lacostenycoder
Nov 17 '18 at 22:18




1




1





No, didn't have to reinstall rbenv. I hadn't set it up correctly to begin with. rbenv-doctor said to run rbenv init then add eval "$(rbenv init -)" to .bash_profile. Then I added echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile like you said. And then it all worked!

– scpers0n
Nov 17 '18 at 23:07





No, didn't have to reinstall rbenv. I hadn't set it up correctly to begin with. rbenv-doctor said to run rbenv init then add eval "$(rbenv init -)" to .bash_profile. Then I added echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile like you said. And then it all worked!

– scpers0n
Nov 17 '18 at 23:07




















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53342821%2fgem-install-compass-error-after-mac-os-sierra-10-12-6-update%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Florida Star v. B. J. F.

Danny Elfman

Retrieve a Users Dashboard in Tumblr with R and TumblR. Oauth Issues