Gems on Windows
Some gems are not friend of Windows, so we can have a lot of difficulties to install them, so here some tips
Installing Curb
-
Create a directory structure something like this, in the same Ruby's folder:
CD \
MKDIR Knapsack\x86-windows
CD Knapsack\x86-windows Download libcurl.zip from https://github.com/sixviv/gemson_windows.git and extract the files in the new directory
-
Set bin directory in the PATH
PATH=C:\RailsInstaller\knapsack\x86windows\bin;C:\Windows\System32;
-
Run:
gem install curb -- --with-curl-dir=C:\RailsInstaller\knapsack\x86-windows
Installing libv8
Install Python, ensure that python and ruby are in the same directory
Set the python directory in the PATH
3.Run:
>gem install libv8
Installing therubyracer
You need to have installed libv8
Just put on your gemfile: gem 'therubyracer', :platform => :ruby