probaste con require 'rubygems' antes de llamar a sqlite?

2009/6/30 Luis Lavena <[email protected]>

> 2009/6/30 Cristhian Boujon <[email protected]>:
> > buenas gente! soy muy muy novato en ruby.
> > Les cuento que uso Ubuntu y netbeans, y la plataforma de ruby que uso es
> > "ruby1.8.7-p72" al principio hacía:
> > sudo gem install sqlite3-ruby
> >
> > y tenía un error algo así como que no soportaba el formato nativo o algo
> así
> > ERROR: Error installing mysql:
> > ERROR: Failed to build gem native extension.
> >
> > y otras cosas, después de instalar como dos o tres paquetes que leí por
> ahí
> > me dice, volví a hacer lo mismo y me dice:
> > Building native extensions.  This could take a while...
> > Successfully installed sqlite3-ruby-1.2.4
> > 1 gem installed
> > Installing ri documentation for sqlite3-ruby-1.2.4...
> > Installing RDoc documentation for sqlite3-ruby-1.2.4...
> >
> > por lo que parece que quedó instalador pero a la hora de hacer un require
> > 'sqlite3'  me dice que no existe.
> > también probé en la consola hacer un
> > ruby archivo
> > pero lo mismo.
> >
> > Si alguien me puede dar una mano, se lo agradezco.
> > Saludos.
> >
> > --
> > Cristhian A. Boujon
>
>
> Hola Cristian y bienvenido.
>
> Seria muy util que incluyeras:
>
> Sistema Operativo ( y distribucion si fuera este linux) y la salida
> del comando "gem env" para que podamos ayudarte, ya que no incluyes
> nada en tu reporte que peuda indicarnos sobre que sistema o que
> version de RubyGems estas usando.
>
> En el caso de "sqlite3", ya que instalaste usando rubygems, tienes que
> cargar rubygems primero:
>
> require 'rubygems'
> require 'sqlite3'
>
> Saludos,
> --
> Luis Lavena
> AREA 17
> -
> Perfection in design is achieved not when there is nothing more to add,
> but rather when there is nothing more to take away.
> Antoine de Saint-Exupéry
> _______________________________________________
> Ruby mailing list
> [email protected]
> http://lista.rubyargentina.com.ar/listinfo.cgi/ruby-rubyargentina.com.ar
>



-- 
http://www.rodolinux.com.ar

"I must not fear. Fear is the mind-killer. I will face my fear. I will
permit it to pass over me and through me. And when it has gone past I will
turn the inner eye to see its path. Where the fear has gone there will be
nothing. Only I will remain." - Bene Geserit's Fear Lethany - Dune Trilogy -
Frank Herbert
_______________________________________________
Ruby mailing list
[email protected]
http://lista.rubyargentina.com.ar/listinfo.cgi/ruby-rubyargentina.com.ar

Responder a