My website is developed with ruby on rails 2.0.2. So I want to update this version to 2.3.5.
Unfortunately, the new rails version doesn't include mysql so I install the mysql gem like this tutorial said => install rails
But and it's my problem, when I launch my server (webrick), mysql crash (segmentation fault). I don't find why mysql crash and I can't continue to develop my website.
Someone can help me ?
Thanks.
I had a similar problem this guide solved it for me:
http://norbauer.com/notebooks/code/notes/snow-leopard-upgrading-for-rails-developers
Given:
$ sudo mv /usr/local/mysql/data /usr/local/mysql/data.default
$ sudo mv /usr/local/mysql-oldversion/data /usr/local/mysql/data
$ sudo gem uninstall mysql
$ sudo env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config
$ sudo gem pristine --all
Let us know if it helps.
我发现了问题,在Rails 2.3中,application.rb被重命名为application_crontroller.rb。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.