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

error installing jekyll #1393

Closed
spladow opened this issue Aug 7, 2013 · 12 comments
Closed

error installing jekyll #1393

spladow opened this issue Aug 7, 2013 · 12 comments
Labels
frozen-due-to-age support This is a question about Jekyll's usage.

Comments

@spladow
Copy link

spladow commented Aug 7, 2013

I apologize for posting here, but I have looked for other people having problems installing Jekyll and almost all of the ones I've found have had something to do with the gcc path, but when I do "which gcc" I get "/usr/bin/gcc" and when I do "which gcc-4.2" I get "/usr/bin/gcc-4.2" which seems to line up with what it should be according to different forum threads.

I have ruby 2.0.0 installed and have the most up to date rubygems installed as well. I'm using xcode 4.6.3.

when I try to install Jekyll I get an error that reads:

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

    /Users/Spladow/.rvm/rubies/ruby-2.0.0-p247/bin/ruby extconf.rb
creating Makefile

make "DESTDIR="
compiling porter.c
make: I.: No such file or directory
make: [porter.o] Error 1 (ignored)
compiling porter_wrap.c
make: I.: No such file or directory
make: [porter_wrap.o] Error 1 (ignored)
linking shared-object stemmer.bundle
make: dynamic: No such file or directory
make: [stemmer.bundle] Error 1 (ignored)

make "DESTDIR=" install
compiling porter.c
make: I.: No such file or directory
make: [porter.o] Error 1 (ignored)
compiling porter_wrap.c
make: I.: No such file or directory
make: [porter_wrap.o] Error 1 (ignored)
linking shared-object stemmer.bundle
make: dynamic: No such file or directory
make: [stemmer.bundle] Error 1 (ignored)
/usr/bin/install -c -m 0755 stemmer.bundle ./.gem.20130807-6413-10rjees
install: stemmer.bundle: No such file or directory
make: *** [install-so] Error 71

While many people have posted about seeing "ERROR: Failed to build gem native extension." I haven't seen anything that looked quite like mine.

Thanks for any help you can provide.

@parkr
Copy link
Member

parkr commented Aug 7, 2013

Curious, jekyll doesn't have any core extensions of its own. Several gems do, however. Is this all of the output you see when you run gem install jekyll?

@spladow
Copy link
Author

spladow commented Aug 7, 2013

Oops, I missed this from the end when I copied.

Gem files will remain installed in /Users/Spladow/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/fast-stemmer-1.0.2 for inspection.
Results logged to /Users/Spladow/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/fast-stemmer-1.0.2/ext/gem_make.out

That's it though.

@spladow
Copy link
Author

spladow commented Aug 7, 2013

I decided to try installing another gem, any gem, to see what happened. I chose hpricot and got this:

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

/Users/Spladow/.rvm/rubies/ruby-2.0.0-p247/bin/ruby extconf.rb

checking for stdio.h... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.

Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/Users/Spladow/.rvm/rubies/ruby-2.0.0-p247/bin/ruby
/Users/Spladow/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/mkmf.rb:434:in try_do': The compiler failed to generate an executable file. (RuntimeError) You have to install development tools first. from /Users/Spladow/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/mkmf.rb:565:intry_cpp'
from /Users/Spladow/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/mkmf.rb:1044:in block in have_header' from /Users/Spladow/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/mkmf.rb:895:inblock in checking_for'
from /Users/Spladow/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/mkmf.rb:340:in block (2 levels) in postpone' from /Users/Spladow/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/mkmf.rb:310:inopen'
from /Users/Spladow/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/mkmf.rb:340:in block in postpone' from /Users/Spladow/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/mkmf.rb:310:inopen'
from /Users/Spladow/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/mkmf.rb:336:in postpone' from /Users/Spladow/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/mkmf.rb:894:inchecking_for'
from /Users/Spladow/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/mkmf.rb:1043:in have_header' from extconf.rb:2:in

'

Gem files will remain installed in /Users/Spladow/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/hpricot-0.8.6 for inspection.
Results logged to /Users/Spladow/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/hpricot-0.8.6/ext/fast_xs/gem_make.out

Is that helpful at all?

@mattr-
Copy link
Member

mattr- commented Aug 7, 2013

Have you installed the command line tools yet? They're a separate package
that you'll need to install from the XCode preferences in order to compile
native extensions for gems.

@spladow
Copy link
Author

spladow commented Aug 7, 2013

Yes, I installed them and have tried to follow all the troubleshooting advice for them. I think the path is correct, but could be wrong.

@parkr
Copy link
Member

parkr commented Aug 7, 2013

If it doesn't happen exclusively with fast-stemmer, then we know that it's a problem with your system, not with Jekyll. So that's good.

StackOverflow has something to try here and here.

Did you install Ruby before or after you installed the Command Line Tools?

@spladow
Copy link
Author

spladow commented Aug 7, 2013

Yes, I installed Ruby 2.0.0. and made sure Rubygems was up to date. I am using xcode 4.3.6 and installed the command line tools. I uninstalled my super old version of xcode in case that was causing a conflict of some sort.

@mattr-
Copy link
Member

mattr- commented Aug 7, 2013

The thing that bugs me about your error is that RVM was able to install
Ruby 2 which requires compilation. What happens if you just install Jekyll
using the system ruby instead of an RVM ruby?

On Wed, Aug 7, 2013 at 4:46 PM, Thomas notifications@github.com wrote:

Yes, I installed Ruby 2.0.0. and made sure Rubygems was up to date. I am
using xcode 4.3.6 and installed the command line tools. I uninstalled my
super old version of xcode in case that was causing a conflict of some sort.


Reply to this email directly or view it on GitHubhttps://github.com//issues/1393#issuecomment-22286802
.

@spladow
Copy link
Author

spladow commented Aug 7, 2013

I'm not really much of a programmer so I'm not sure what the difference would be exactly. I installed ruby a few years ago using rvm to install 1.8.7. I installed 2.0.0 with rvm yesterday just to try to use with Jekyll. 2.0.0. is the version of ruby used by default thanks to rvm. Does that mean it is the system ruby?

Sorry again for answering your questions with more questions. I appreciate the help.

@parkr
Copy link
Member

parkr commented Aug 7, 2013

@spladow I was more concerned about the order of the installation. If you installed Ruby after installing the command-line tools, you could have run into problems. I'd suggest uninstalling Ruby 2.0 and re-installing it :)

@spladow
Copy link
Author

spladow commented Aug 7, 2013

@parkr Thanks! I installed Ruby beforehand but uninstalled and reinstalled and now it works. Computers, amiright?

@spladow spladow closed this as completed Aug 7, 2013
@parkr
Copy link
Member

parkr commented Aug 7, 2013

Totally man. Glad you got it working!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
frozen-due-to-age support This is a question about Jekyll's usage.
Projects
None yet
Development

No branches or pull requests

4 participants