Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trouble installing software #2

Open
StephenGriffies opened this issue Jun 16, 2018 · 5 comments
Open

trouble installing software #2

StephenGriffies opened this issue Jun 16, 2018 · 5 comments

Comments

@StephenGriffies
Copy link
Contributor

On my Mac I get an error with gem. I have MacOS HighSierra 10.13.5. Google turns up something similar, but my initial leads came up dry.

/Users/stephen.griffies
Stephens-Air-4:~ stephen.griffies$ gem install bundler jekyll
Fetching: bundler-1.16.2.gem (100%)
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.3.0 directory.
Stephens-Air-4:~ stephen.griffies$

@aidanheerdegen
Copy link
Contributor

aidanheerdegen commented Jun 16, 2018 via email

@StephenGriffies
Copy link
Contributor Author

Thanks for the "sudo" step. I got further. But there is still an error in the install "ERROR: Failed to build gem native extension.". Should I ignore?

Stephens-Air-4:~ stephen.griffies$ sudo gem install bundler jekyll
Password:
Fetching: bundler-1.16.2.gem (100%)
Successfully installed bundler-1.16.2
Parsing documentation for bundler-1.16.2
Installing ri documentation for bundler-1.16.2
Done installing documentation for bundler after 7 seconds
Fetching: public_suffix-3.0.2.gem (100%)
Successfully installed public_suffix-3.0.2
Fetching: addressable-2.5.2.gem (100%)
Successfully installed addressable-2.5.2
Fetching: colorator-1.1.0.gem (100%)
Successfully installed colorator-1.1.0
Fetching: http_parser.rb-0.6.0.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing jekyll:
ERROR: Failed to build gem native extension.

current directory: /Library/Ruby/Gems/2.3.0/gems/http_parser.rb-0.6.0/ext/ruby_http_parser

/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby -r ./siteconf20180617-95585-mwuegc.rb extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/include/ruby.h

extconf failed, exit code 1

Gem files will remain installed in /Library/Ruby/Gems/2.3.0/gems/http_parser.rb-0.6.0 for inspection.
Results logged to /Library/Ruby/Gems/2.3.0/extensions/universal-darwin-17/2.3.0/http_parser.rb-0.6.0/gem_make.out
1 gem installed

@aidanheerdegen
Copy link
Contributor

aidanheerdegen commented Jun 17, 2018 via email

@StephenGriffies
Copy link
Contributor Author

Tried it again, with same error. I will move forward.

@aidanheerdegen
Copy link
Contributor

It seems this error is because you don't have Xcode command line tools installed.

Follow the instructions here:

http://osxdaily.com/2014/02/12/install-command-line-tools-mac-os-x/

to install just the command line tools in the first instance, and see if that fixes it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants