I've been playing with macirb and trying to port a Ruby script of mine that uses a database connection to PostgreSQL. I'm currently using the pure-ruby postgres-pr gem (installed successfully with macgem) but apparently I'm getting stuck while connecting to the database. Running the same script from irb works just fine.
I'm almost certain taht I'm just doing something stupid, but I just wanted to make sure that's the case. Here's my output: Last login: Sat Jan 9 17:47:24 on console imac:~ tiagor$ sudo macgem install postgres-pr Password: Successfully installed postgres-pr-0.6.1 1 gem installed imac:~ tiagor$ macirb irb(main):001:0> require 'rubygems' => true irb(main):002:0> require 'postgres' => true irb(main):003:0> conn = PGconn.connect("192.168.1.89", 5432, '', '', "test", "postgres", "mypasswd") EOFError: EOFError from core:in `raise:' from message.rb:in `read_exactly_n_bytes:' from message.rb:in `read:' from connection.rb:in `initialize:' irb(main):005:0> Thanks a lot! _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel