Skip to content

Instantly share code, notes, and snippets.

@akaneko3
Last active October 27, 2015 14:00
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 akaneko3/a7c9f0d010183d4370ee to your computer and use it in GitHub Desktop.
Save akaneko3/a7c9f0d010183d4370ee to your computer and use it in GitHub Desktop.
Ruby 2.2.2 の上で Rails 4.2.1 を動かす(RubyInstaller for Windows 編) ref: http://qiita.com/akaneko3/items/247af28abded3b3d3617
> gem install sqlite3 --platform=ruby -- --with-sqlite3-include=C:/temp/sqlite3 --with-sqlite3-lib=C:/temp/sqlite3
> gem install sqlite3
> mkdir C:\Ruby\lib\ruby\gems\2.2.0\gems\sqlite3-1.3.10-x64-mingw32\lib\sqlite3\2.2
> cp C:\Ruby\lib\ruby\gems\2.2.0\extensions\x64-mingw32\2.2.0\sqlite3-1.3.10\sqlite3\sqlite3_native.so C:\Ruby\lib\ruby\gems\2.2.0\gems\sqlite3-1.3.10-x64-mingw32\lib\sqlite3\2.2
> cp C:\temp\sqlite3\sqlite3.dll C:\Ruby\bin
> cp C:\temp\bin\*.dll C:\temp\lib
> gem install nokogiri --platform=ruby -- --use-system-libraries --with-iconv-include=C:/temp/include --with-iconv-lib=C:/temp/lib --with-xml2-include=C:/temp/include/libxml2 --with-xml2-lib=C:/temp/lib --with-xslt-include=C:/temp/include --with-xslt-lib=C:/temp/lib
> gem install nokogiri
> mkdir C:\Ruby\lib\ruby\gems\2.2.0\gems\nokogiri-1.6.6.2-x64-mingw32\lib\nokogiri\2.2
> cp C:\Ruby\lib\ruby\gems\2.2.0\extensions\x64-mingw32\2.2.0\nokogiri-1.6.6.2\nokogiri\nokogiri.so C:\Ruby\lib\ruby\gems\2.2.0\gems\nokogiri-1.6.6.2-x64-mingw32\lib\nokogiri\2.2
> cp C:\temp\lib\*.dll C:\Ruby\bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment