On Tue, May 18, 2010 at 12:14 PM, Luis Lavena <[email protected]> wrote:

> On Tue, May 18, 2010 at 2:22 AM, Cristhian Boujon
> <[email protected]> wrote:
> >
> > siempre lo corrí con sudo, después de lelr esto probé de ejecutarlo sin
> sudo
> > y obtuve:
>
> Si usas RVM, no tenes que usar sudo:
>
> http://rvm.beginrescueend.com/rubies/rubygems/
>
> > gem install ruby-pg
> > Building native extensions.  This could take a while...
> > ERROR:  Error installing ruby-pg:
> >     ERROR: Failed to build gem native extension.
> >
> > /home/cristhian/.rvm/rubies/ruby-1.9.1-p378/bin/ruby extconf.rb
> > *** extconf.rb failed ***
> > Could not create Makefile due to some reason, probably lack of
> > necessary libraries and/or headers.  Check the mkmf.log file for more
> > details.  You may need configuration options.
> >
> > Provided configuration options:
> >     --with-opt-dir
> >     --without-opt-dir
> >     --with-opt-include
> >     --without-opt-include=${opt-dir}/include
> >     --with-opt-lib
> >     --without-opt-lib=${opt-dir}/lib
> >     --with-make-prog
> >     --without-make-prog
> >     --srcdir=.
> >     --curdir
> >     --ruby=/home/cristhian/.rvm/rubies/ruby-1.9.1-p378/bin/ruby
> > extconf.rb:4:in `<main>': uninitialized constant PLATFORM (NameError)
> >
>
> parece que ruby-pg no soporta 1.9.1
>
> PLATFORM ya es deprecated.
>
> Este es el gem de postgres nuevo:
>
> http://rubygems.org/gems/pg
>
> --
> 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
>

gem install pg y salió volando! no lo probé todavía pero no tiró ningún
error.
Que onda eso del paquete ruby-dev? porque rvm no me lo reconoció.

Saludos
_______________________________________________
Ruby mailing list
[email protected]
http://lista.rubyargentina.com.ar/listinfo.cgi/ruby-rubyargentina.com.ar

Responder a