Problem with btpgsql


#1

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. :slight_smile:

~/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!


#2

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


#3

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: