■
[Rails]無限地獄のようなエラーになやむ2
悪夢が再び・・・
$ bundle install ・・・ An error occurred while installing json (1.7.4), and Bundler cannot continue. Make sure that `gem install json -v '1.7.4'` succeeds before bundling. $ gem install json -v '1.7.4' ・・・ 'make'は内部コマンドまたは外部コマンド、操作可能なプログラムまたはバッチファイルとして認識されていません
DevKitが正しくインストール&パスが通っていないことが原因だった。C:\DevKitに入れて、PATHに\devkit\bin;c:\devkit\mingw\bin;を追加
$ bundle install ・・・ Gem files will remain installed in c:/Ruby193/lib/ruby/gems/1.9.1/gems/thin-1.6. 3 for inspection. Results logged to c:/Ruby193/lib/ruby/gems/1.9.1/extensions/x86-mingw32/1.9.1/th in-1.6.3/gem_make.out An error occurred while installing thin (1.6.3), and Bundler cannot continue. Make sure that `gem install thin -v '1.6.3'` succeeds before bundling.
違うのが引っかかった。
バージョンダウンしてからのインストール、バージョンアップ
$ gem -v 2.4.6 $ gem update --system 2.3.0 $ gem install thin $ gem update --system
こんどはmysql2が見つからないらいい
$ rails s thin c:/Ruby193/lib/ruby/gems/1.9.1/gems/mysql2-0.3.11-x86-mingw32/lib/mysql2/mysql2. rb:2:in `require': 126: 指指定定さされれたたモモジジュュールルがが見見つつかかりりまませせんん。 - c:/Ruby19
http://cdn.mysql.com/Downloads/Connector-C/mysql-connector-c-noinstall-6.0.2-win32.zipをダウンロード
c:\mysql-connectorに展開
gemバージョンダウンしてからのインストール
$ gem update –system 1.8.29 $ gem install mysql2 -- '--with-mysql-dir="C:\mysql-connector"' $ gem update $ rails s thin
まだダメ。6.0.2だとダメで6.0.1だとイケた
http://mirror.cogentco.com/pub/mysql/Connector-C/ から mysql-connector-c-noinstall-6.0.1-win32.zip をダウンロード&ZIP展開、
mysql-connector-c-noinstall-6.0.1-win32\lib\libmysql.dll を
C:\Ruby193\bin にコピーする