Skip to main content

UNIXETC

Windows下安装Jekyll

安装Ruby/DevKit 首先从 http://rubyinstaller.org/downloads/ 下载以下两个文件进行安装 rubyinstaller-1.9.3-p194.exe DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe Ruby安装在D:\Ruby200, DevKit安装在D:\rubydevkit 打开CMD进入到DevKit目录,开始初始化安装 D:\rubydevkit>ruby dk.rb init [INFO] found RubyInstaller v2.0.0 at d:/Ruby200 Initialization complete! Please review and modify the auto-generated 'config.yml' file to ensure it contains the root directories to all of the installed Rubies you want enhanced by the DevKit. D:\rubydevkit>ruby dk.rb install [INFO] Updating convenience notice gem override for 'd:/Ruby200' [INFO] Installing 'd:/Ruby200/lib/ruby/site_ruby/devkit.rb' 替换Gem源 天朝网路可能会引起gem安装失败,建议更换为ruby.taobao,org源 $gem sources -r http://rubygems.org/ $gem sources -a http://ruby.

Linux下安装最新版golang

ubuntu中可以使用apt-get install golang来安装go,但是版本稍旧 如果需要安装最新版的golang,那就得自己动手咧 安装golang 从官网下载最新版,手动安装 apt-get install build-essential wget https://storage.googleapis.com/golang/go1.4.2.linux-386.tar.gz tar zxf go1.4.2.linux-386.tar.gz cd go/src ./all.bash 设置PATH 安装完成后需要设置PATH才能随地使用go export PATH="/root/go/bin:$PATH" 检查版本 go version go version go1.4.2 linux/386