jekyll / jekyll-help

NO LONGER MAINTAINED. USE JEKYLL TALK INSTEAD.
https://talk.jekyllrb.com
146 stars 19 forks source link

Error Installing Jekyll with Native Mavericks Ruby #19

Closed jennazee closed 10 years ago

jennazee commented 10 years ago

Had native Mavericks ruby, and updated gems, and XCode Command LIne tools. Ran into this error:

ERROR:  Error installing jekyll:
    ERROR: Failed to build gem native extension.

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

make "DESTDIR=" clean

make "DESTDIR="
compiling porter.c
porter.c:359:27: warning: '&&' within '||' [-Wlogical-op-parentheses]
      if (a > 1 || a == 1 && !cvc(z, z->k - 1)) z->k--;
                ~~ ~~~~~~~^~~~~~~~~~~~~~~~~~~~
porter.c:359:27: note: place parentheses around the '&&' expression to silence this warning
      if (a > 1 || a == 1 && !cvc(z, z->k - 1)) z->k--;
                          ^
                   (                          )
1 warning generated.
compiling porter_wrap.c
linking shared-object stemmer.bundle
clang: error: unknown argument: '-multiply_definedsuppress' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
make: *** [stemmer.bundle] Error 1

make failed, exit code 2

Was able to solve the problem with the guidance of http://stackoverflow.com/questions/22479246/how-to-install-jekyll-on-mac-osx-10-9-with-ruby-2-0-0, which suggested installing rvm and then doing rvm use ruby-2.1.1 and then sudo gem install jekyll

Figured other people could benefit from the rvm/version suggestion. Cheers!

albertogg commented 10 years ago

Thank you @jennazee, It will be very useful!

ndarville commented 10 years ago

:+1:

mscharley commented 10 years ago

Note, if you're using rvm there's never a reason to install gems using sudo. Please don't do that, it'll only cause problems.

jennazee commented 10 years ago

Oh okay, noted. Without rvm it seemed I didn't have permissions so I figured I needed to use it. Any problems I should look out for for this case?

On Wednesday, April 16, 2014, Matthew Scharley notifications@github.com wrote:

Note, if you're using rvm there's never a reason to install gems using sudo. Please don't do that, it'll only cause problems.

— Reply to this email directly or view it on GitHubhttps://github.com/jekyll/help/issues/19#issuecomment-40598918 .

Jenna Zeigen jennazeigen.com @zeigenvector 215.833.5104

mscharley commented 10 years ago

Without RVM, ruby is installed into the system locations and so it needs sudo access. RVM installs ruby into your home folder, ~/.rvm, so you don't need any special sort of access ever. One of the many benefits of RVM. ​