15 Sep '13, 12pm

Ruby 2.0 + MySQL + Windows: cannot load such file -- mysql2/2.0/mysql2 - Rails 雑感 - Ruby on Rails with OIAX

MySQL 5.6 を使って Rails の開発環境構築を試みましたが、エラーが出てデータベースに接続できません。 OS は Windows 7 です。 エラーメッセージは、次の通り: rake aborted! cannot load such file -- mysql2/2.0/mysql2 私は普段 Ubuntu 上で開発しているためこの問題には遭遇していませんでした。Windows を開いてやってみると、確かに問題が再現されます。 答えは、例によって StackOverflow と GitHub で見つけました: http://stackoverflow.com/a/15853914/513554 https://github.com/brianmario/mysql2/issues/359 以下、簡潔に手順を示します。 http://cdn.mysql.com/Downloads/Connector-C/mysql-connector-c-noinstall-6.0.2-win32.zip をダウンロードし、C:\ に展開。 C:\mysql-connector-c-noinstall-6.0.2-win32\lib\libmysql.dll を C:\Ruby200\bin にコピー。 gem uninstall mysql2 を実行。 gem install mysql2 --platform=ruby -- '--with-opt-dir="C\mysql-connector-c-noinstall-6.0.2-win32"' を実行。 うまく行かなかったら、[email protected] にご一報を。

Full article: http://www.oiax.jp/rails/zakkan/ruby_2_0_mysql_windows.html

Tweets

Cygwinのインストール - Ruby on Rails with OIAX

oiax.jp 15 Sep '13, 1pm

本サイトにあるRuby on Rails 3.2 を Cygwin にインストールする手順をかなり丁寧に説明してみました の手順に沿って、Cygwin と Ruby をインストールしてください。Rails はインストールしてもしなくても結構です...

#rails good piece of the API to be aware of

api.rubyonrails.org 15 Sep '13, 10am

Optimistic locking allows multiple users to access the same record for edits, and assumes a minimum of conflicts with the ...

Load time of w. Pingdom Tools:

tools.pingdom.com 16 Sep '13, 2am

We built this Full Page Test tool to help you analyze the load speed of your websites and learn how to make them faster. I...

rails はなんでもあるなぁ。

rails はなんでもあるなぁ。

oiax.jp 24 Sep '13, 2pm

% rake routes root / {:controller=>"welcome", :action=>"index"} new_user_session GET /users/sign_in {:controller=>"devise/...

File sharing

forums.seochat.com 14 Sep '13, 8pm

I have written and posted 3 article on blogging sites and I want to know that can I share them in pdf form with link on fi...

SEO file sharing

forums.seochat.com 15 Sep '13, 8am

Why is it so urgent, if your not sure wait until you know before you do so. It sounds like you've already done this and no...

Contribute to Ruby on Rails Guides Guidelines:

edgeguides.rubyonrails.org 16 Sep '13, 6pm

Guides are written in GitHub Flavored Markdown . There is comprehensive documentation for Markdown , a cheatsheet , and ad...

Learning about #Rakefiles today:

rake.rubyforge.org 16 Sep '13, 4pm

Prior to version 0.8.0, rake was only able to handle command line arguments of the form NAME=VALUE that were passed into R...

https://t.co/CmwwYXlrIL

ruby-lang.org 16 Sep '13, 12pm

Ruby é... Uma linguagem dinâmica, open source com foco na simplicidade e na produtividade. Tem uma sintaxe elegante de lei...

Running Cron tasks automatically with #Ruby

railscasts.com 15 Sep '13, 9pm

Cron is great for handling recurring tasks, but it is an external dependency with a crazy syntax. In this episode I show y...

''Windows down, speakers loud, look down at my ...

twitter.com 14 Sep '13, 12pm

When you tweet with a location, Twitter stores that location. You can switch location on/off before each Tweet and always ...

ну как-то так

m.onkey.org 17 Sep '13, 11pm

Rails 2.2 marks the first release of thread safe Rails. But “thread safety” alone, without any context, doesn’t mean shit....

Windows down, speakers loud, look down at my sn...

twitter.com 17 Sep '13, 5pm

When you tweet with a location, Twitter stores that location. You can switch location on/off before each Tweet and always ...

Episode #403: Rails Env, Onebox, Shortcode, Rub...

ruby5.envylabs.com 18 Sep '13, 2am

September 13th, 2013 Ruboto IRB on your android, the RailsCasts hiatus, living the polyglot lifestyle, RubyGems 2.1.1, tip...

WINDOWS DOWN, SPEAKERS LOUD LOOK DOWN AT MY SNE...

twitter.com 17 Sep '13, 5pm

When you tweet with a location, Twitter stores that location. You can switch location on/off before each Tweet and always ...