jekyll Mac上各種安裝問題總結

2022-09-18 09:36:20 字數 1807 閱讀 6072

mac上自帶了ruby,版本資訊如下:

qiyongdemacbook-air:webproxy qiyong$ ruby -v

ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin14]

$sudo gem update --system

(關於一些更新命令的補充

$ gem install rubygems-update #可能需要管理員許可權

$ update_rubygems #這裡也一樣)

—————terminal output——————————

updating rubygems-update

fetching: rubygems-update-2.5.0.gem (100%)

successfully installed rubygems-update-2.5.0

parsing documentation for rubygems-update-2.5.0

installing ri documentation for rubygems-update-2.5.0

installing darkfish documentation for rubygems-update-2.5.0

installing rubygems 2.5.0

rubygems 2.5.0 installed

parsing documentation for rubygems-2.5.0

installing ri documentation for rubygems-2.5.0

$sudo gem install jekyll

—————terminal output——————————

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.0.0/gems/ffi-1.9.10/ext/ffi_c

/system/library/frameworks/ruby.framework/versions/2.0/usr/bin/ruby -r ./siteconf20151129-5728-5lq17h.rb extconf.rb

checking for ffi.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.

以上命令失敗後,執行以下命令,安裝xcode命令列工具,安裝成功後,再執行$sudo gem install jekyll

xcode-select --install

————————一些有用的帖子—————————

how to update ruby to 1.9.x on mac?

mac終端安裝「install command line developer tools」

rubygems簡介和使用

rvm相關的資料1

rvm相關的資料2

安裝sublime外掛程式安裝不上遇到的各種坑

為了學習vue 發現沒有高亮 首先用 安裝快捷鍵 ctrl 貼上 import urllib.request,os pf package control.sublime package ipp sublime.installed packages path urllib.request.instal...

python各種安裝

1 cpython pip install cython i 2 pycocotools pip install git 3 colab 降低tensorflow tensorflow version 1.x import tensorflow print tensorflow.version 4 ...

使用Hexo Github搭建部落格的各種問題

我也是第一次搭建,就出現了各種各樣的問題。中間有個bcrypt hash,直接去這個 生成就行。在github上新建乙個專案,專案的名稱必須是 你的使用者名稱.github.io 才行 什麼意思呢?就是去的git倉庫 看看這個文章,主要是ssh連線不上github。hexo clean hexo g...