# Ruby简易教程 > 下载 + http://www.ruby-lang.org/en/downloads/ + https://rubyinstaller.org/downloads/ + https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.0.0-1/rubyinstaller-devkit-3.0.0-1-x64.exe > 安装 + 最好安装devkit版本 + 注意勾选utf-8的选项 + 只能更改盘符,不能更改路径,否则环境变量会出问题 > 查看源 gem sources -l > 更新源 ~~~ gem sources --add https://gems.ruby-china.com/ --remove https://rubygems.org/ ~~~ > 安装jekyll gem install jekyll gem install wdm > 生成静态页面 jekyll new myblog > 启动jekyll网站 `jekyll server` ***** ## 以下是linux安装的脚本(20240811) ``` wget https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.4.tar.gz tar -zxf ruby-33.3.4.tar.gz cd ruby-3.3.4 ./configure make && make install ruby -v gem sources --add https://gems.ruby-china.com/ --remove https://rubygems.org/ gem install jekyll jekyll -v ``` >[info] 常见错误处理 `It seems your ruby installation is missing psych (for YAML output).` `dnf install rubygem-psych -y` `dnf install ruby-devel -y`