Skip to content
This repository has been archived by the owner on Nov 29, 2017. It is now read-only.

Problem with Upgrade #35

Closed
zachlyon opened this issue May 7, 2014 · 3 comments
Closed

Problem with Upgrade #35

zachlyon opened this issue May 7, 2014 · 3 comments

Comments

@zachlyon
Copy link

zachlyon commented May 7, 2014

Hello, first thanks for Jekyll, and congrats on the anniversary! I was just playing around over the last few days on 1.5.1, then saw the update for 2.0.2 today and upgraded. However, if I change into a directory where I had a site built before it's still running 1.5.1 (and presently wont serve or build). I'm new to Ruby so not really sure where this all lives on my Mac (10.9) but I must have something configured incorrectly...

Here is my terminal history... is there a way to switch/force to use the new Jekyll? I suspect this may be a conflict with bundler, homebrew or other package manager? I'll admit I didn't know what the hell I was doing when I installed 1.5.1 last week :/

mbp:~ zachlyon$ jekyll -v
jekyll 2.0.2
mbp:~ zachlyon$ cd Sites/mysite.jekyll/
mbp:mysite.jekyll zachlyon$ jekyll -v
jekyll 1.5.1
mbp:mysite.jekyll zachlyon$ gem update jekyll
Updating installed gems
Nothing to update
mbp:mysite.jekyll zachlyon$ gem uninstall jekyll

Select gem to uninstall:
 1. jekyll-1.5.1
 2. jekyll-2.0.2
 3. All versions
> 1

You have requested to uninstall the gem:
    jekyll-1.5.1

jekyll-coffeescript-1.0.0 depends on jekyll (~> 1.0, development)
jekyll-sitemap-0.3.0 depends on jekyll (~> 1.4)
If you remove this gem, these dependencies will not be met.
Continue with Uninstall? [yN]  y
Successfully uninstalled jekyll-1.5.1
mbp:mysite.jekyll zachlyon$ jekyll -v
Could not find proper version of jekyll (1.5.1) in any of the sources
Run `bundle install` to install missing gems.
mbp:mysite.jekyll zachlyon$ 

The bundle install just grabs another 1.5.1. Any ideas?

Thanks!
Zach

@zachlyon zachlyon closed this as completed May 8, 2014
@ndarville
Copy link

You closed your issue. Was this intentional?

@zachlyon
Copy link
Author

zachlyon commented May 9, 2014

Yep, I figure it was my bad. I basically just fired up a new jekyll site in a different directory and copied my files over to it and started working from there. I couldn't figure out how one site/directory was "stuck" on 1.5.1 and every new site or any other dir on my system was 2.0.2 according to jekyll -v.

@albertogg
Copy link
Member

@zachlyon for future reference install bundler (gem install bundler), create a Gemfile file and add your project dependencies there and then type bundle install. Run your project prefixing it with bundle exec, e.g. bundle exec jekyll serve -w that will help you avoid this type of problems. I know it's a bunch of stuff but you can check my jekyll site if you want.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants