ruby - githubpages+jekyll搭建個人部落格 再jekyll s時遇到問題
曾经蜡笔没有小新
曾经蜡笔没有小新 2017-04-25 09:01:31
0
3
1306

1.
想做個個人博客,裝了git、ruby、gem、jekyll
裝jekyll的過程:

gem install jekyll
cd d:website
jekyll new myweb
jekyll serve

fork了別人的一個博客,運行

jekyll serve

出現了以下錯誤:

D:/softwares/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.12.5/lib/bundler/spec_set.rb:95:in `block in materialize': Could not find RedCloth-4.2.9 in any of the sources (Bundler::GemNotFound)

但奇怪的是,從gem list查看,我已經裝了redcloth。
gem list

bigdecimal (default: 1.2.6)
bundler (1.12.5)
colorator (1.1.0)
directory_watcher (1.5.1)
ffi (1.9.14 x64-mingw32)
forwardable-extended (2.6.0)
io-console (default: 0.4.3)
jekyll (3.2.1)
jekyll-paginate (1.1.0)
jekyll-sass-converter (1.4.0)
jekyll-watch (1.5.0)
json (default: 1.8.1)
kramdown (1.12.0, 0.13.8)
liquid (3.0.6, 2.4.1)
listen (3.0.8)
mercenary (0.3.6)
minitest (5.4.3)
pathutil (0.14.0)
power_assert (0.2.2)
psych (default: 2.0.8)
rake (default: 10.4.2)
rb-fsevent (0.9.7)
rb-inotify (0.9.7)
rdiscount (2.2.0.1)
rdoc (default: 4.2.0)
RedCloth (4.3.2)
rouge (1.11.1)
rubygems-update (2.6.6)
safe_yaml (1.0.4)
sass (3.4.22)
syntax (1.0.0)
test-unit (3.0.8)

對git和ruby不是很了解,也不知道是不是配置的順序有錯誤,但是很想自己做個部落格。
實在不知道怎麼解決了,請教各位大神。

  • 系統:win 10

  • ruby:2.2.5

  • bundler 1.12.5

  • gem 2.6.6

曾经蜡笔没有小新
曾经蜡笔没有小新

全部回覆(3)
漂亮男人

我也裝了bundle的。
我轉用hexo啦。
在使用hexo的過程中發現,在瀏覽器中輸入
localhost:4000
沒反應可能是因為連接埠被佔用。
謝謝各位啦。

巴扎黑

bundle install

左手右手慢动作

我之前遇到jekyll serve不能运行,但是是jekyll-paginate的問題,然後Google了一下,轉載了這篇文章 https://dotos.github.io/jekyl...

bundle解決的

# 1.如果没有安装bundle
gem install bundle
# 2.jekyll-blog目录创建Gemfile文件,内容参考链接
# 3.运行bundle,安装Gemfile里的插件(姑且叫插件吧,我也不知道叫啥~_~!)
bundle install 
# 4.打开服务
bundle exec jekyll serve
# or
jekyll serve
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板
關於我們 免責聲明 Sitemap
PHP中文網:公益線上PHP培訓,幫助PHP學習者快速成長!