horses-eating-turnips / turnip

OpenSourcery's Drupal starter kit, with a focus on developer collaboration and reusable code.
http://www.opensourcery.com
GNU General Public License v3.0
25 stars 4 forks source link

Running turnip on OSX Mavericks #45

Closed aprohl5 closed 10 years ago

aprohl5 commented 10 years ago

Due to the fact that OSX Mavericks comes installed with Ruby 2.0.0 installed and Turnip requires a Ruby version of 1.9.x; installing and using turnip on a Mac running a fresh install of Mavericks requires a few extra steps.

If you are not currently using a Ruby versioning manager, installing rbenv with Homebrew is a pretty straightforward and simple way to make it work.

To install Homebrew run:

$ ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

for more detailed information regarding the process you can view the Homebrew site at brew.sh

I suggest running "$ brew install wget" after Homebrew finishes installing to simplify the process of installing rbenv.

When you are ready to install rbenv run

$ brew install rbenv ruby-build

when that completes its process add 'eval "$(rbenv init -)" to your .profile/.bash-profile/etc.

you should then be able to call

'$ rbenv install 1.9.3-p194' (This is the recommended version of ruby for running turnip)

You will then need to set either your global or local ruby version to 1.9.3-p194.

You do this by calling '$ rbenv global 1.9.3-p194'

the full documentation for installing and using rbenv can be found on this page: https://github.com/sstephenson/rbenv#homebrew-on-mac-os-x

From here all you need to is reinstall all the appropriate gems for use with turnip:

sass (3.2.2) compass (0.12.2) addressable (2.3.5) bigdecimal (1.1.0) breakpoint (2.0.7) bundler (1.3.5) chunky_png (1.3.0, 1.2.9)

and lastly

compass-aurora-os (3.2.2)

And you should now be able to run bin/make-install-profile without errors on OSX Mavericks

jhedstrom commented 10 years ago

Thanks for looking into this. We should definitely add some info to the README once we sort this issue out, since, if anything, I thought Turnip required Ruby 2. Our Travis CI builds only work with Ruby 2 or greater (I also only have Ruby 2).

mpgeek commented 10 years ago

Nice bit of work there @aprohl5, but the compass-aurora-os version should be 0.2.2. There's been a good amount of upstream updates so, i'd like to take a look and see if pulling any of that in helps towards ruby-2.x.

jessehs commented 10 years ago

I was able to get around this by manually uninstalling all versions of the gems used, then installing specific versions. I'm not sure if it was necessary, but I installed all with the '--ignore-dependencies' flag. In my system I need to run gem installs using sudo. If you installed ruby via homebrew you may not need to do this. Here's what I did:

sudo gem uninstall sass
sudo gem uninstall chunky_png
sudo gem uninstall fssm
sudo gem uninstall compass
sudo gem uninstall breakpoint
sudo gem uninstall singularitygs
sudo gem uninstall sassy-strings
sudo gem uninstall compass-blend-modes
sudo gem uninstall color-schemer
sudo gem uninstall toolkit
sudo gem uninstall sassy-buttons
sudo gem uninstall compass-normalize
sudo gem uninstall addressable
sudo gem uninstall css_parser

sudo gem install sass --version=3.2.14 --ignore-dependencies
sudo gem install chunky_png --version=1.3.0 --ignore-dependencies
sudo gem install fssm --version=0.2.10 --ignore-dependencies
sudo gem install compass --version=0.12.2 --ignore-dependencies
sudo gem install breakpoint --version=2.0.7 --ignore-dependencies
sudo gem install singularitygs --version=1.1.2 --ignore-dependencies
sudo gem install sassy-strings --version=1.0.0 --ignore-dependencies
sudo gem install compass-blend-modes --version=0.0.2 --ignore-dependencies
sudo gem install color-schemer --version=0.2.8 --ignore-dependencies
sudo gem install toolkit --version=1.3.8 --ignore-dependencies
sudo gem install sassy-buttons --version=0.2.6 --ignore-dependencies
sudo gem install compass-normalize --version=1.5 --ignore-dependencies
sudo gem install addressable --version=2.3.5 --ignore-dependencies
sudo gem install css_parser --version=1.3.5 --ignore-dependencies
sudo gem install compass-aurora-os --version=0.2.2 --ignore-dependencies
aprohl5 commented 10 years ago

Sounds like it may be more of a gem version issue than a ruby version issue?

jyee commented 10 years ago

Looks like it might be a problem with Mavericks seeing the old ruby gems library, but not fully reading/loading it. Simply moving (or deleting) /Library/Ruby/Gems/1.8 allowed me to reinstall the gems without any errors.

anniegreens commented 10 years ago

Update on https://github.com/opensourcery/turnip/issues/45#issuecomment-36546879:

sudo gem install compass-aurora-os --version=0.2.3 --ignore-dependencies

with latest Turnip https://github.com/opensourcery/turnip/commit/05789758f86e6974e2fc655da99331cae0bb560b

mpgeek commented 10 years ago

This should be tested again with compass-aurora-os-0.3.0. Upstream changes are in, and things should be fine in Mavericks.

aprohl5 commented 10 years ago

Using compass-aurora-os-0.3.0 seemed to work excellently on Mavericks.