在一个全新的系统上,重新安装了 Octopress 记录下安装过程.在此之前要先安装 Octopress 的运行环境 Ruby 1.9.3 与 Node.Js
安装过程
1 2 3 4 5 6 7 8 9 10 11 |
|
1 2 3 4 5 6 7 |
|
错误处理
在安装 Ruby 之前没有安装 zlib-devel,安装 zlib-devel 后重新安装 Ruby 即可.
- 错误信息如下:
[dukelazy@localhost octopress]$ gem install bundler ERROR: Loading command: install (LoadError) cannot load such file -- zlib ERROR: While executing gem ... (NameError) uninitialized constant Gem::Commands::InstallCommand
- 处理过程:
[dukelazy@localhost octopress]$ sudo yum install zlib-devel [dukelazy@localhost octopress]$ rbenv uninstall 1.9.3-p551 [dukelazy@localhost octopress]$ rbenv install 1.9.3-p551 [dukelazy@localhost octopress]$ rbenv rehash
Ubuntu 14.04.5 LTS
apt-get install zlib1g apt-get install zlib1g-dev
在安装 Ruby 之前没有安装 openssl-devel,安装 openssl-devel 后重新安装 Ruby 即可.
- 错误信息如下:
[dukelazy@localhost octopress]$ bundle install Could not load OpenSSL. You must recompile Ruby with OpenSSL support or change the sources in your Gemfile from 'https' to 'http'. Instructions for compiling with OpenSSL using RVM are available at rvm.io/packages/openssl.
- 处理过程:
[dukelazy@localhost octopress]$ sudo yum install openssl-devel [dukelazy@localhost octopress]$ rbenv install 1.9.3-p551 [dukelazy@localhost octopress]$ rbenv rehash
Ubuntu 14.04.5 LTS
apt-get install openssl apt-get install libssl-dev