Forum: Ruby problem with btpgsql

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.
Eduardo Borges (Guest)
on 2006-06-01 19:54
(Received via mailing list)
Hi,

I foll the readme instructions, but I had a problem in the btpgsql
install.
I don't know how resolve this problem. Can Anybody help me, please?
Sorry about the English.   :-)

~/btpgsql-0.2.4# ruby test/all.rb

test/all.rb:43: warning: don't put space before argument parentheses
RUNNING TEST test/btpgsql.rb
./lib/btpgsql/btpgsql.rb:1567: warning: don't put space before
argument parentheses
./lib/btpgsql/arrayfields.rb:1:in `require': no such file to load --
arrayfields.rb (LoadError)
        from ./lib/btpgsql/arrayfields.rb:1
        from ./lib/btpgsql/btpgsql.rb:51
        from ./lib/btpgsql.rb:1
        from ./test/btpgsql.rb:52
        from test/all.rb:49
        from test/all.rb:47

~/btpgsql-0.2.4# ruby install.rb
install.rb:15:in `=~': type mismatch: String given (TypeError)
        from install.rb:15

I am using Slackware 10.2 with the pre-compiled package
ruby-1.8.4-i686-1kjz.tgz. I have compiled and installed the package
ruby-postgres-20051221.tar.gz witch is a requeriment.

Please HELP!

Tank you!
unknown (Guest)
on 2006-06-01 20:02
(Received via mailing list)
On Fri, 2 Jun 2006, Eduardo Borges wrote:

> ./lib/btpgsql/btpgsql.rb:1567: warning: don't put space before
> ~/btpgsql-0.2.4# ruby install.rb
>
> --
> Eduardo N. Borges
> Engenheiro de Computação - FURG
> Mestrando em Computação - UFRGS

hey edurado-

i haven't updated that package for quite some time.  however, the
problem you
are having is not related to that, but to the fact that you don't have
arrayfields installed.  it's also on codeforpeople

   http://codeforpeople.com/lib/ruby/arrayfields/

feel free to contact my on or offline with questions regarding btpgsql.

   http://codeforpeople.com/lib/ruby/btpgsql/

cheers.

regards.

-a
Eduardo Borges (Guest)
on 2006-06-10 02:49
(Received via mailing list)
I installed the arrayfields, but not resolv the problem.

btpgsql-0.2.4# ruby install.rb
install.rb:14:in `=~': type mismatch: String given (TypeError)
        from install.rb:14

I remove the lines below from the install.rb and I think that it works.

if !$site_libdir
  $site_libdir = File.join($libdir, "site_ruby")
elsif $site_libdir !~ Regexp.quote($version)
  $site_libdir = File.join($site_libdir, $version)
end

After I run

btpgsql-0.2.4# ruby install.rb
lib/btpgsql/btpgsql.rb ->
/usr/local/lib/ruby/site_ruby/btpgsql/btpgsql.rb
chmod 0644 /usr/local/lib/ruby/site_ruby/btpgsql/btpgsql.rb
lib/btpgsql/arrayfields.rb ->
/usr/local/lib/ruby/site_ruby/btpgsql/arrayfields.rb
chmod 0644 /usr/local/lib/ruby/site_ruby/btpgsql/arrayfields.rb
lib/btpgsql/quote.rb -> /usr/local/lib/ruby/site_ruby/btpgsql/quote.rb
chmod 0644 /usr/local/lib/ruby/site_ruby/btpgsql/quote.rb
lib/btpgsql/VERSION -> /usr/local/lib/ruby/site_ruby/btpgsql/VERSION
chmod 0644 /usr/local/lib/ruby/site_ruby/btpgsql/VERSION
lib/btpgsql/btpgsql.rb.orig ->
/usr/local/lib/ruby/site_ruby/btpgsql/btpgsql.rb.orig
chmod 0644 /usr/local/lib/ruby/site_ruby/btpgsql/btpgsql.rb.orig

I hope it had worked.

Tanks for the help, and sorry about my English.

--
Eduardo N. Borges
Engenheiro de Computação - FURG
Mestrando em Computação - UFRGS

2006/6/1, removed_email_address@domain.invalid 
<removed_email_address@domain.invalid>:
This topic is locked and can not be replied to.