This repository has been archived by the owner. It is now read-only.

Problem installing jekyll #167

Closed
dbmumford opened this Issue Oct 11, 2014 · 4 comments

Comments

Projects
None yet
5 participants
@dbmumford

dbmumford commented Oct 11, 2014

On my macbook air OSX, 10.9.4, I ran
sudo gem install jekyll
and got the following:

Successfully installed kramdown-1.4.2
Fetching: mercenary-0.3.4.gem (100%)
Successfully installed mercenary-0.3.4
Fetching: safe_yaml-1.0.4.gem (100%)
Successfully installed safe_yaml-1.0.4
Fetching: colorator-0.1.gem (100%)
Successfully installed colorator-0.1
Fetching: yajl-ruby-1.1.0.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing jekyll:
ERROR: Failed to build gem native extension.

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb

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/yajl-ruby-1.1.0 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/gems/yajl-ruby-1.1.0/ext/yajl/gem_make.out

I followed your advice and ran successfully:
sudo gem update --system
but this did not affect the error. The second time it gave the same error:

Fetching: fast-stemmer-1.0.2.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing jekyll:
ERROR: Failed to build gem native extension.

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby -r ./siteconf20141011-1666-1at401u.rb extconf.rb

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

extconf failed, exit code 1

Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/fast-stemmer-1.0.2 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-13/2.0.0/fast-stemmer-1.0.2/gem_make.out

Can you help??

@alfredxing

This comment has been minimized.

Show comment
Hide comment
@alfredxing

alfredxing Oct 11, 2014

Member

It seems like you have to install the Xcode Command Line Tools first (run xcode-select --install in your terminal).

Hope that helps!

Member

alfredxing commented Oct 11, 2014

It seems like you have to install the Xcode Command Line Tools first (run xcode-select --install in your terminal).

Hope that helps!

@kleinfreund

This comment has been minimized.

Show comment
Hide comment
@kleinfreund

kleinfreund Oct 12, 2014

Also running gem install jekyll with sudo should not be necessary and may lead to problems later on.

kleinfreund commented Oct 12, 2014

Also running gem install jekyll with sudo should not be necessary and may lead to problems later on.

@dbmumford

This comment has been minimized.

Show comment
Hide comment
@dbmumford

dbmumford Oct 12, 2014

On Oct 11, 2014, at 6:22 PM, Alfred Xing notifications@github.com wrote:

It seems like you have to install the Xcode Command Line Tools first (run xcode-select --install in your terminal).

Hope that helps!

On Oct 12, 2014, at 2:59 AM, Philipp Rudloff notifications@github.com wrote:

Also running gem install jekyll with sudo should not be necessary and may lead to problems later on.

Thanks. I believe it installed fully this time.

But if I don't do it as superuser, I have to change permissions on dozens of folders one at a time (at least, I'm not sure of the command to do it wholesale on a tree of subfolders so was doing it with command-I, then unlocking each folder). I'm not sure what problems this may lead to. I'm working on my own macbook air and am my own admin so I'm hoping there are no security issues.

David Mumford

dbmumford commented Oct 12, 2014

On Oct 11, 2014, at 6:22 PM, Alfred Xing notifications@github.com wrote:

It seems like you have to install the Xcode Command Line Tools first (run xcode-select --install in your terminal).

Hope that helps!

On Oct 12, 2014, at 2:59 AM, Philipp Rudloff notifications@github.com wrote:

Also running gem install jekyll with sudo should not be necessary and may lead to problems later on.

Thanks. I believe it installed fully this time.

But if I don't do it as superuser, I have to change permissions on dozens of folders one at a time (at least, I'm not sure of the command to do it wholesale on a tree of subfolders so was doing it with command-I, then unlocking each folder). I'm not sure what problems this may lead to. I'm working on my own macbook air and am my own admin so I'm hoping there are no security issues.

David Mumford

@stugerdt

This comment has been minimized.

Show comment
Hide comment
@stugerdt

stugerdt Dec 15, 2015

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

I encounter this error when I tried to install Jekyll using Terminal..

I ran a command for stem update: this was successful. Now I need to know what to do next.

Thanks in advance.

stugerdt commented Dec 15, 2015

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

I encounter this error when I tried to install Jekyll using Terminal..

I ran a command for stem update: this was successful. Now I need to know what to do next.

Thanks in advance.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.