Struggling to build site

Hello

I would greatly appreciate help in building this site. I am getting so many errors and permission denied messages and have been trying all of the ways comments I find on google suggest to fix the issue to no avail.

Can anyone help run through these problems?

Thanks.

can you post the errors? and a link to the repo?

Hi there,

Apologies for my slow reply!!

What is a link to the repo?

The errors are like this;

sam$ gem install bundler jekyll
ERROR: While executing gem … (Gem::FilePermissionError)
You don’t have write permissions for the /Library/Ruby/Gems/2.3.0 directory.
samuels-MacBook-Pro:~ sam$

Basically, no matter what I do… I keep running into ‘permission errors’ on the command line.

I tried it out on a new admin profile on my mac but it said the same thing. I’m running the latest MacOS software.

I had a go at making a jekyll site last year on the older MacOS and it worked so I don’t know why I can’t do it now.

Did you try running the command as sudo ?

sudo gem install bundler jekyll

yeah

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 -I /Library/Ruby/Site/2.3.0 -r ./siteconf20190807-1043-19yjtxd.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

this may help - you need the developer extension/command line tools?

Try to install the command line tools again.
xcode-select --install

Now, reinstall rails again.

sudo gem install rails

thank you

i get this back…

Last login: Tue Aug 13 15:33:01 on console
samuels-MacBook-Pro% xcode-select --install
xcode-select: error: command line tools are already installed, use “Software Update” to install updates
samuels-MacBook-Pro%

and then…

Building native extensions. This could take a while…
ERROR: Error installing rails:
ERROR: Failed to build gem native extension.

current directory: /Library/Ruby/Gems/2.3.0/gems/nokogiri-1.10.4/ext/nokogiri

/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby -I /Library/Ruby/Site/2.3.0 -r ./siteconf20190814-2673-31ihj9.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/nokogiri-1.10.4 for inspection.
Results logged to /Library/Ruby/Gems/2.3.0/extensions/universal-darwin-18/2.3.0/nokogiri-1.10.4/gem_make.out
samuels-MacBook-Pro%

I’m new to Jekyll & ran into the same issue using Mac’s (10.4) default Ruby. To see what version you’re using:

ruby -v

I read you can avoid using sudo by [nstalling Ruby via Homebrew. Once I did that, permission errors went away.

Check to make sure you’re using Homebrew’s Ruby & not default Mac’s. This is helpful for configuring rbenv in order to do that:
https://gorails.com/setup/osx/10.14-mojave

Another helpful link: