Skip to content

Instantly share code, notes, and snippets.

@juanignaciosl
Last active January 15, 2016 07:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juanignaciosl/0984547cde99506b689c to your computer and use it in GitHub Desktop.
Save juanignaciosl/0984547cde99506b689c to your computer and use it in GitHub Desktop.
therubyracer pain

Yosemite

Taken from thethemefoundry/forge#79:

brew tap homebrew/dupes # Thanks Tom
brew install apple-gcc42

export CC=/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/gcc-4.2
export CXX=/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/g++-4.2
export CPP=/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/cpp-4.2

brew uninstall v8
gem uninstall libv8

Now, depending on your needs, either gem install therubyracer for the latest or bundle install for your project.

Ubuntu

vagrant@precise64:/cartodb-central$ gem uninstall libv8

Select gem to uninstall:
 1. libv8-3.3.10.4-x86_64-linux
 2. libv8-3.16.14.11-x86_64-linux
 3. libv8-3.16.14.13-x86_64-linux
 4. All versions
> 4
Successfully uninstalled libv8-3.3.10.4-x86_64-linux
Successfully uninstalled libv8-3.16.14.11-x86_64-linux

You have requested to uninstall the gem:
	libv8-3.16.14.13-x86_64-linux

therubyracer-0.12.1 depends on libv8 (~> 3.16.14.0)
If you remove this gem, these dependencies will not be met.
Continue with Uninstall? [yN]  y
Successfully uninstalled libv8-3.16.14.13-x86_64-linux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment