Forum: Rails-ES Actualización a Rails 2.2.2

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
D369616be7b74adb046219e44e95d61b?d=identicon&s=25 Luis Miguel Granado (Guest)
on 2008-11-30 11:18
(Received via mailing list)
Buenas,

Acabo de hacer un update --system y me ha actualizado a la 2.2.2. El
problema es que ha desaparecido la gema de mysql y no consigo
instalarla de ninguna forma. He estado mirando varios foros y no
encuentro nada...

Tengo MacosX 10.5 y mysql 5. Antes de la actualización creo que tenía
rails 2.1 y funcionaba todo correctamente.

¿Alguna idea?

Gracias.

El error que da es:

no such file to load -- mysql
A6de0f72d2e6c92847e9cdc8ba43bc61?d=identicon&s=25 Roberto Salicio (Guest)
on 2008-11-30 11:57
(Received via mailing list)
¿Te da error al instalar la gema de mysql?
algo como:

Building native extensions.  This could take a while...
ERROR:  Error installing mysql:
  ERROR: Failed to build gem native extension.

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
extconf.rb install mysql
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lm... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lz... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lsocket... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lnsl... no
checking for mysql_query() in -lmysqlclient... no
*** extconf.rb failed ***


prueba con:

 sudo gem install mysql --
--with-mysql-config=/usr/local/mysql/bin/mysql_config

por defecto la gema intenta buscar las cabeceras para compilar en un
sitio incorrecto en mac os x

Roberto Salicio.

On Sun, Nov 30, 2008 at 11:17 AM, Luis Miguel Granado
D369616be7b74adb046219e44e95d61b?d=identicon&s=25 Luis Miguel Granado (Guest)
on 2008-11-30 15:38
(Received via mailing list)
Buenas,

Me sigue fallando. te pongo la salida...


Building native extensions.  This could take a while...
ERROR:  Error installing mysql:
  ERROR: Failed to build gem native extension.

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
extconf.rb install mysql -- --with-mysql-config=/usr/local/mysql/bin/
mysql_config
can't find header files for ruby.


Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/
mysql-2.7 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/mysql-2.7/gem_make.out


Gracias.

El 30/11/2008, a las 11:57, Roberto Salicio
escribió:
> ¿Te da error al instalar la gema de mysql?
5c15703984caa012845b3cea129da936?d=identicon&s=25 Manuel González Noriega (Guest)
on 2008-11-30 15:47
(Received via mailing list)
2008/11/30 Luis Miguel Granado <luismiguel.cabezas@gmail.com>

> extconf.rb install mysql -- --with-mysql-config=/usr/local/mysql/bin/
> mysql_config
> can't find header files for ruby.
>
>
>
"gem mysql can't find header files for ruby" =>
http://letmegooglethatforyou.com/?q=gem+mysql+can%...
D369616be7b74adb046219e44e95d61b?d=identicon&s=25 Luis Miguel Granado (Guest)
on 2008-11-30 22:45
(Received via mailing list)
Muchas gracias, ya está resuelto.

Has sido muy gráfico...

:D


El 30/11/2008, a las 15:46, Manuel González Noriega escribió:
This topic is locked and can not be replied to.