2014-05-06 239 views
0

我想將Jekyll升級到1.5.1以獲得一些最新功能,但我遇到了一些麻煩。Jekyll升級問題

我目前的版本是1.2.1和which jekyll返回/usr/bin/jekyll。 Rubygems在2.2.2。我在OSX 10.9.2上。

當我只是運行gem update jekyll它告訴我沒有什麼可更新的。當我運行gem uninstall jekyll時,它不會返回任何內容,即使啓用-V也是如此。 which jekyll一直指向usr/bin/jekyllgem install -v 1.5.1然後給我編譯錯誤,我猜是因爲仍然安裝了舊版的Jekyll。

以下是gem list輸出:

*** LOCAL GEMS *** 

actionmailer (4.0.0, 3.2.12) 
actionpack (4.0.0, 3.2.12) 
activeadmin (0.6.0) 
activemodel (4.0.0, 3.2.12) 
activerecord (4.0.0, 3.2.12) 
activerecord-deprecated_finders (1.0.3) 
activeresource (3.2.12) 
activesupport (4.0.0, 3.2.12) 
arbre (1.0.1) 
archive-tar-minitar (0.5.2) 
arel (4.0.1, 3.0.2) 
atomic (1.1.14) 
bcrypt-ruby (3.0.1) 
bourbon (3.1.8) 
builder (3.1.4, 3.0.4) 
bundler (1.3.5) 
CFPropertyList (2.2.0) 
coffee-rails (4.0.1, 3.2.2) 
coffee-script (2.2.0) 
coffee-script-source (1.6.3, 1.6.2) 
commander (4.1.5) 
country-select (1.1.1) 
devise (2.2.4) 
erubis (2.7.0) 
execjs (2.0.2, 1.4.0) 
faraday (0.8.7) 
fastercsv (1.5.5) 
fb-channel-file (0.0.2) 
formtastic (2.2.1) 
has_scope (0.5.1) 
hashie (2.0.5) 
highline (1.6.20) 
hike (1.2.3) 
httpauth (0.2.0) 
httpclient (2.3.4.1) 
i18n (0.6.5, 0.6.4) 
inherited_resources (1.4.0) 
jbuilder (1.5.2) 
journey (1.0.4) 
jquery-rails (3.0.4, 3.0.1, 2.3.0) 
json (1.8.1, 1.8.0) 
jwt (0.1.8) 
kaminari (0.14.1) 
kgio (2.8.1, 2.8.0) 
libxml-ruby (2.6.0) 
liquid (2.5.5) 
mail (2.5.4, 2.4.4) 
meta_search (1.1.3) 
mime-types (1.25, 1.24, 1.23) 
minitest (4.7.5) 
multi_json (1.8.2, 1.7.9, 1.7.7, 1.7.6) 
multipart-post (1.2.0) 
net-ssh (2.7.0) 
net-ssh-gateway (1.2.0) 
net-ssh-multi (1.2.0) 
newrelic_rpm (3.6.8.168) 
nokogiri (1.5.10, 1.5.6) 
oauth2 (0.8.1) 
omniauth (1.1.4) 
omniauth-facebook (1.4.1) 
omniauth-oauth2 (1.1.1) 
open4 (1.3.0) 
orm_adapter (0.4.0) 
pg (0.17.0, 0.14.1) 
polyamorous (0.5.0) 
polyglot (0.3.3) 
rack (1.5.2, 1.4.5) 
rack-cache (1.2) 
rack-ssl (1.3.3) 
rack-test (0.6.2) 
rails (4.0.0, 3.2.12) 
rails_12factor (0.0.2) 
rails_serve_static_assets (0.0.1) 
rails_stdout_logging (0.0.3) 
railties (4.0.0, 3.2.12) 
raindrops (0.12.0, 0.11.0) 
rake (10.1.0, 10.0.4) 
rdoc (3.12.2) 
responders (0.9.3) 
rhc (1.15.6) 
rubygems-update (2.2.2) 
sass (3.2.12, 3.2.10, 3.2.9) 
sass-rails (4.0.1, 3.2.6) 
sdoc (0.3.20) 
sitemap_generator (4.3.1) 
sprockets (2.10.0, 2.2.2) 
sprockets-rails (2.0.1) 
sqlite3 (1.3.8, 1.3.7) 
thor (0.18.1) 
thread_safe (0.1.3) 
tilt (1.4.1) 
treetop (1.4.15, 1.4.14) 
turbolinks (1.3.0) 
tzinfo (0.3.38, 0.3.37) 
uglifier (2.3.0, 2.1.2, 2.1.1) 
unicorn (4.6.3, 4.6.2) 
warden (1.2.1) 

這是我得到的錯誤,當試圖刪除/usr/bin/jekyll後運行sudo gem install jekyll

Building native extensions. This could take a while... 
/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 
ERROR: Error installing jekyll: 
    ERROR: Failed to build gem native extension. 

任何想法?

+0

嗯,仍然沒有工作!相同的錯誤信息! :( – joshuadelange

+0

我更新了我的問題。非常感謝您的幫助!:) – joshuadelange

+0

這很有道理。謝謝。現在,我收到了我更新的問題中所述的錯誤消息。 – joshuadelange

回答

0

我能夠在這裏修復這個錯誤, Fast-stemmer installation problems

原來我不得不運行sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future gem install jekyll才能正常工作。

不知道這一切做什麼。 :)