Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

kramdown 1.0.1 not recognized from Jenyll #150

Closed
inglor opened this Issue Apr 24, 2013 · 3 comments

Comments

Projects
None yet
2 participants

inglor commented Apr 24, 2013

I installed jekyll on my archlinux box and tried to run it but it complains for not finding kramdown => 0.14. ruby-kramdown is installed version 1.0.1. Below is the error.

$ jekyll --serve
/usr/lib/ruby/2.0.0/rubygems/dependency.rb:296:in to_specs': Could not find 'kramdown' (~> 0.14) - did find: [kramdown-1.0.1] (Gem::LoadError) from /usr/lib/ruby/2.0.0/rubygems/specification.rb:1196:inblock in activate_dependencies'
from /usr/lib/ruby/2.0.0/rubygems/specification.rb:1185:in each' from /usr/lib/ruby/2.0.0/rubygems/specification.rb:1185:inactivate_dependencies'
from /usr/lib/ruby/2.0.0/rubygems/specification.rb:1167:in activate' from /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_gem.rb:48:ingem'
from /usr/bin/jekyll:22:in `

'

Contributor

subosito commented Jun 8, 2013

You can use bundler to have better mechanism to maintain version and isolated the environment. Here's how:

$ cat > Gemfile
source "https://rubygems.org"
gem 'jekyll', '~> 0.12.1'
gem 'kramdown', '~> 0.14'

$ bundle
Fetching gem metadata from https://rubygems.org/........
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Using fast-stemmer (1.0.2) 
Using classifier (1.3.3) 
Using directory_watcher (1.5.1) 
Using kramdown (0.14.2) 
Using liquid (2.5.0) 
Using syntax (1.0.0) 
Using maruku (0.6.1) 
Using posix-spawn (0.3.6) 
Using yajl-ruby (1.1.0) 
Using pygments.rb (0.3.7) 
Installing jekyll (0.12.1) 
Using bundler (1.3.0) 
$ bundle exec jekyll --serve
Configuration from /mnt/code/github/jekyll-bootstrap/_config.yml
Auto-regenerating enabled: /mnt/code/github/jekyll-bootstrap -> /mnt/code/github/jekyll-bootstrap/_site
[2013-06-08 07:06:18] regeneration: 1 files changed
[2013-06-08 07:06:18] INFO  WEBrick 1.3.1
[2013-06-08 07:06:18] INFO  ruby 2.0.0 (2013-02-24) [x86_64-linux]
[2013-06-08 07:06:18] WARN  TCPServer Error: Address already in use - bind(2)
[2013-06-08 07:06:18] INFO  WEBrick::HTTPServer#start: pid=4302 port=4000
[2013-06-08 07:06:19] regeneration: 1 files changed

Please let me know the result on your side.

inglor commented Jun 17, 2013

This works, thanks

Contributor

subosito commented Jun 18, 2013

Great :)

@subosito subosito closed this Jun 18, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment