Getting Jekyll working in Linux Mint 17.1
This seems like it should have been a straightforward process but I got lost along the way. Here is my journey back onto the path of using jekyll for my blog.
(I was running into problems with missing zlib (which isn't missing) and ruby version too low for Jekyll 3, but Jekyll 2.5.3 works (or seemed to at first, details later)) error-installing-jekyll-requires-ruby-2-0-0
The below command seemed to work but turned out not to be too helpful later
$ sudo gem install jekyll -v 2.5.3
synaptic packages installed to obtain a working http://localhost:4000
jekyll (0.11.2-1) libjs-jquery (1.7.2+dfsg-2ubuntu1) libruby1.9.1 (188.8.131.524-2ubuntu1.2) libyaml-0-2 (0.1.4-3ubuntu3.1) python-pygments (1.6+dfsg-1ubuntu1.1) ruby (1:184.108.40.206) ruby-albino (1.3.3-2) ruby-classifier (1.3.3-1) ruby-coderay (1.1.0-1) ruby-directory-watcher (1.5.1-1) ruby-fast-stemmer (1.0.2-1) ruby-kramdown (1.2.0-1) ruby-liquid (2.6.1-1) ruby-maruku (0.6.0-2) ruby-posix-spawn (0.3.8-1) ruby-stringex (2.0.3-1) ruby1.9.1 (220.127.116.114-2ubuntu1.2) libc-ares2 (1.10.0-2) libv8-3.14.5 (18.104.22.168-5ubuntu2) nodejs (0.10.25~dfsg2-2ubuntu1) libruby1.9.1-dbg (22.214.171.1244-2ubuntu1.2) ri1.9.1 (126.96.36.1994-2ubuntu1.2) ruby1.9.1-dev (188.8.131.524-2ubuntu1.2) ruby1.9.1-examples (184.108.40.2064-2ubuntu1.2) ruby1.9.1-full (220.127.116.114-2ubuntu1.2) Removed the following packages: ruby1.9.1-full libruby2.0 (18.104.22.1684-1ubuntu2.2) ruby2.0 (22.214.171.1244-1ubuntu2.2) rubygems-integration (1.5) ruby2.0-dev (126.96.36.1994-1ubuntu2.2)
Then I went back to the github help
$ sudo gem install bundler
made a Gemfile like this:
source 'https://rubygems.org' gem 'github-pages'
gave an error: public_suffix, ruby >= 2.0 required
An error occurred while installing public_suffix (1.5.3), and Bundler cannot continue. Make sure that `gem install public_suffix -v '1.5.3'` succeeds before bundling.
Error that zlib is missing
lots of errors with
jekyll new command
$ sudo gem install github-pages
Error said zlib is missing, so try something else:
let's try installing ruby-dev, ruby-dev-all, and rake
rake (10.0.4-1) ruby-all-dev (1:188.8.131.52) ruby-dev (1:184.108.40.206) ruby-libxml (2.7.0-2) zlib1g-dev (1:1.2.8.dfsg-1ubuntu1)
$ sudo gem install github-pages
Building native extensions. This could take a while... Successfully installed nokogiri-220.127.116.11
Back to needing Ruby >= 2.0
Fetching: typhoeus-0.8.0.gem (100%) Successfully installed typhoeus-0.8.0 ERROR: Error installing github-pages: public_suffix requires Ruby version >= 2.0.
I keep running into this problem with not having ruby 2.0, even though I installed the package.
rvm looks like the solution to manage ruby versions
(make sure synaptic is not running before attempting to run the installation of rvm)
$ \curl -L https://get.rvm.io | bash -s stable --ruby
$ rvm rubies =* ruby-2.2.1 [ x86_64 ] # => - current # =* - current && default # * - default $ ruby -v ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux]
another advantage, now I don't have to sudo install gems
$ gem install jekyll --no-rdoc --no-ri ... Successfully installed jekyll-3.0.1 14 gems installed
$ jekyll new myblog New jekyll site installed in myblog.
Ran the following and was able to view it at http://localhost:4000
$ jekyll serve
... Server address: http://127.0.0.1:4000/ Server running... press ctrl-c to stop.