windows安裝jekyll的過程及遇到的問題

2021-09-24 05:41:24 字數 2432 閱讀 2862

前端大作業要設計乙個靜態網頁,寫部落格對於程式設計師來說是一很好的提公升方式,於是想到做乙個個人部落格。網上查了很多教程,最後決定用github+jekyll來搭建部落格。前前後後折騰了5個小時,終於把jekyll安裝完畢。下面直接上教程:

國內映象官網:

rubyinstall官網:

由於是國外的**,如果不穩定,也可以使用我在下面分享的網盤檔案

雙擊執行檔案rubyinstaller-2.2.3-x64exe,我這裡用的是64位

安裝的時候注意勾選把ruby新增到路徑path

建議安裝在c盤,以避免不必要的問題

檢視版本號看是否安裝完成

翻到最後可以找到下面的頁面

執行 devkit-mingw64-64-4.7.2-20130224-1432-sfx.exe檔案,解壓到c盤

cmd中cd到c:/devkit目錄下執行下面命令

ruby dk.rb init
#生成config.yml,這裡會檢查將要新增devkit支援的ruby列表,只支援通過rubyinstaller安裝的ruby

#如果這裡列出的ruby與你的要求不符,可以手動修改

ruby dk.rb review  #檢查要新增devkit支援的ruby列表是否有誤,可以略過

ruby dk.rb install

顯示下面資訊

[info] updating convenience notice gem override for 'c:/ruby192'

[info] installing 'c:/ruby192/lib/ruby/site_ruby/devkit.rb'

> gem install rdiscount --platform=ruby
顯示下面資訊

fetching: rdiscount-1.6.8.gem (100%)

temporarily enhancing path to include devkit...

building native extensions.  this could take a while...

successfully installed rdiscount-1.6.8

1 gem installed

installing ri documentation for rdiscount-1.6.8...

installing rdoc documentation for rdiscount-1.6.8...

如果能安裝rdiscount成功說明安裝devkit成功。

解壓後拷貝到c盤,cd到c:\rubygems-3.0.3目錄下

安裝,

ruby setup.rb
檢查版本資訊

移除原來的

c:\devkit>gem sources  --remove
新增國內映象

c:\devkit>gem sources --add 

source already present in the cache

檢視源

cd到c:\rubygems-3.0.3目錄下

gem install jekyll
安裝完成介面 

jekyll安裝使用

自學文件 jekyll文件鏈結 mac下jekyll安裝 sudo gem install jekyll2.在git上建立個人部落格倉庫 如何利用github打造部落格專屬網域名稱 3.將部落格倉庫轉殖下來,將模板導建立的git部落格倉庫中 模板鏈結 4.執行相關命令進行模板測試 cd myblog...

jekyll 完整安裝教程

阿里雲 centos主機 lsb version core 4.1 amd64 core 4.1 noarch distributor id centos description centos linux release 7.4 1708 core release 7.4.1708 codename...

jekyll安裝及使用

清除舊版ruby,若存在 yum remove ruby 若為原始碼,使用如下命令 cd make uninstall 下面開始安裝ruby wget 二 解壓安裝ruby tar zxvf ruby 2.1.7.tar.gz configure disable install rdoc make ...