Hi Tiago! We are sorry that the PostgreSQL gem is not yet fully installable via macgem. The one we managed to install was ruby-pg 0.9.0 ( http://bitbucket.org/ged/ruby-pg/downloads). However, the gem in itself has an extconf.rb file with a syntax that is not yet supported in MacRuby and probably won't be soon enough.
To install and use ruby-pg, you'll need to do the following: - Download ruby-pg 0.9.0 from http://bitbucket.org/ged/ruby-pg/downloads - Extract wherever you want, let's say in /tmp/ruby-pg for example - Go in the extracted ruby-pg directory, and apply the patch ( https://gist.github.com/00be9e82ed4fd548c29d ) by doing: patch -p0 < /path/to/extconf.rb - cd into the "ext" directory, and run the following commands: $> macruby extconf.rb # potentially add --with-pg-config if you need $> make $> sudo make install You will have to make sure that your local installation of PostgreSQL is compiled for both i386 and x86_64 bits, MacRuby requires it. Once you have issued the latest command, the extension "pg_ext" will be installed (without needing gems). You can either rename pg_ext to pg, or create a pg.rb file that requires pg_ext (which is exactly what the gem does when installed, however installing ruby-pg has proven to less than straightforward [even with ruby19], so it's easier to do it this way ;-)). Hope this helps, good luck with that! -- Thibault Martin-Lagardette On Tue, May 4, 2010 at 14:06, Tiago Ribeiro <[email protected]> wrote: > Amazing. > > I'm mostly amazed by this specific breakthrough: > > "MacRuby 0.6 provides support for C extensions written for the original > implementation of ruby. We were able to successfully use the Nokogiri, > SQLite3 and PostgreSQL extensions from MacRuby." > > How did you manage to install the PostgreSQL extension with macgem? Any > special setup? > > Thanks a lot > > >Date: Mon, 3 May 2010 14:28:04 -0700 > >From: Laurent Sansonetti <[email protected]> > >To: "MacRuby development discussions." > > <[email protected]>, > > [email protected], > > [email protected], [email protected] > >Subject: [MacRuby-devel] [ANN] MacRuby 0.6 > >Message-ID: > > <[email protected]> > >Content-Type: text/plain; charset=ISO-8859-1 > > > >Hi, > > > >After 3 months of development since the last release, MacRuby 0.6 is > >now available. Get it here while it's still hot! > > > >MacRuby is an implementation of Ruby 1.9 directly on top of Mac OS X > >core technologies such as the Objective-C runtime and garbage > >collector, the LLVM compiler infrastructure and the Foundation and ICU > >frameworks. It is the goal of MacRuby to enable the creation of > >full-fledged Mac OS X applications which do not sacrifice performance > >in order to enjoy the benefits of using Ruby. > > > >You can learn more about MacRuby, and download a binary installer, > >from the website: > > > >http://macruby.org > > > >Or about this release more specifically, on our blog: > > > >http://www.macruby.org/blog/2010/04/30/macruby06.html > > > >Enjoy, > > > >Laurent > _______________________________________________ > MacRuby-devel mailing list > [email protected] > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel >
_______________________________________________ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
