ruby - githubpages+jekyll搭建个人博客 再jekyll s时遇到问题
曾经蜡笔没有小新
曾经蜡笔没有小新 2017-04-25 09:01:31
0
3
1332

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

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

reply all(3)
漂亮男人

I also installed the bundle.
I switched to hexo.
In the process of using hexo, I found that if there is no response when typing
localhost:4000
in the browser, it may be because the port is occupied.
Thank you everyone.

巴扎黑

bundle install

左手右手慢动作

I encountered the problem jekyll serve不能运行,但是是jekyll-paginate before, and then Googled it and reprinted this article https://dotos.github.io/jekyl...

Solved with bundle

# 1.如果没有安装bundle
gem install bundle
# 2.jekyll-blog目录创建Gemfile文件,内容参考链接
# 3.运行bundle,安装Gemfile里的插件(姑且叫插件吧,我也不知道叫啥~_~!)
bundle install 
# 4.打开服务
bundle exec jekyll serve
# or
jekyll serve
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!