Home > Database > Mysql Tutorial > body text

How to Fix \'Image Not Found\' Errors When Installing the MySQL Gem on Rails with Snow Leopard?

DDD
Release: 2024-11-27 04:26:18
Original
627 people have browsed it

How to Fix

Troubleshooting MySQL on Rails with Snow Leopard

As a user upgraded to Snow Leopard, it might have encountered difficulties running Rails apps due to MySQL issues. The bundled mysql.rb driver has been removed from Rails 2.2, prompting users to install the mysql gem. However, the installation can fail with an "image not found" error.

To address this issue, a successful solution involves:

  1. Downloading and installing the 64-bit version of MySQL 5.1.37 from mysql.com.
  2. Executing the following commands:
sudo gem update --system

sudo env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config
Copy after login

Additionally, it is recommended to uninstall any existing MySQL gems from earlier versions of the operating system.

The above is the detailed content of How to Fix \'Image Not Found\' Errors When Installing the MySQL Gem on Rails with Snow Leopard?. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template