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

Cannot install jekyll on MacOS #6893

Closed
PJOssenbruggen opened this issue Apr 2, 2018 · 3 comments
Closed

Cannot install jekyll on MacOS #6893

PJOssenbruggen opened this issue Apr 2, 2018 · 3 comments

Comments

@PJOssenbruggen
Copy link

The Output I Wanted

Establish a GitHub Pages website using jekyll.

  • [x ] I updated to the latest Jekyll (or) if on GitHub Pages to the latest github-pages
  • [ x] I read the CONTRIBUTION file at https://jekyllrb.com/docs/contributing/
  • [x ] I am on macOS 10+
  • [x ] I was trying to install.

My Reproduction Steps

My approach is trial and error. Originally, I received the following error several times: (Gem::FilePermissionError) For example,

<PJO:~ PJO$ gem install jekyll bundler>

ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.3.0 directory.

Next, I tried several different approaches, including rubyonrails, without success. Now, I am using Xcode version 9.3, ruby 2.5.1, and gem 2.7.6.
This approach looks promising. Now, my error is: (Errno::EACCES) . This error appears to be associated with rubyonrails. I searched the web and found people had difficulty removing rubyonrails.

Note that t successfully performed several installations where above I did not.

<PJO:~ PJO$ gem install jekyll>

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: While executing gem ... (Errno::EACCES)
Permission denied @ dir_s_mkdir - /usr/local/lib/ruby/gems/2.5.0/extensions/x86_64-darwin-17

<PJO:~ PJO$ gem install jekyll>

Building native extensions. This could take a while...
ERROR: While executing gem ... (Errno::EACCES)
Permission denied @ dir_s_mkdir - /usr/local/lib/ruby/gems/2.5.0/extensions/x86_64-darwin-17

It appears that I close to a solution: Remove rubyonrails.

I would appreciate help.
Thanks
Paul

@posadaj
Copy link

posadaj commented Apr 3, 2018

Try running with sudo permissions:
$ sudo gem install jekyll bundler

@PJOssenbruggen
Copy link
Author

Thanks @posadaj

It works! After resolving a few dependency issues, http://localhost:4000 was displayed.

Now, I will take the next baby step in setting up a GitHub Page site.

Thanks to all,
Paul

@PJOssenbruggen
Copy link
Author

PJOssenbruggen commented Apr 3, 2018 via email

@jekyll jekyll locked and limited conversation to collaborators Jul 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants