On Jul 19, 10:05 pm, Phrogz <[email protected]> wrote:
> Thank you. This looks very promising. Unfortunately, I can't get it to
> build.
>
>   Slim2:src phrogz$ curl 
> -Ohttp://files.rubyforge.vm.bytemark.co.uk/ruby-pg/ruby-pg-0.8.0.tar.gz
>   Slim2:src phrogz$ tar xzf ruby-pg-0.8.0.tar.gz
>   Slim2:src phrogz$ cd ruby-pg-0.8.0
>   Slim2:ruby-pg-0.8.0 phrogz$ curl 
> -Ohttp://rubyforge.org/tracker/download.php/3214/12398/25931/4535/pg-m1...
>   Slim2:ruby-pg-0.8.0 phrogz$ patch -p0 < pg-m17n3.patch
>   patching file ext/pg.c
>
>   Slim2:ruby-pg-0.8.0 phrogz$ curl 
> -Ohttp://rubyforge.org/tracker/download.php/3214/12398/26116/4557/pg-m1...
>   Slim2:ruby-pg-0.8.0 phrogz$ patch -p1 < pg-m17n-companion.diff
>   patching file ext/pg.c
>   patching file spec/pgconn_spec.rb
>
>   Slim2:ruby-pg-0.8.0 phrogz$ rake native
>   (in /usr/local/src/ruby-pg-0.8.0)
>   rake aborted!
>   no such file to load -- spec/rake/spectask
>   /usr/local/src/ruby-pg-0.8.0/rakefile:5:in `require'
>   (See full trace by running task with --trace)
>
>   Slim2:ruby-pg-0.8.0 phrogz$ ls spec/
>   data      pgconn_spec.rb    pgresult_spec.rb

My mistake, for some reason I thought rake was needed. For the record,
this worked for me on OS X:
  Slim2:ruby-pg-0.8.0 phrogz$ PATH=$PATH:/usr/local/pgsql/bin/
ARCHFLAGS='-arch i386' ruby ext/extconf.rb
  checking for main() in -lpq... yes
  checking for libpq-fe.h... yes
  checking for libpq/libpq-fs.h... yes
  checking for PQconnectionUsedPassword()... yes
  checking for PQisthreadsafe()... yes
  checking for PQprepare()... yes
  checking for PQexecParams()... yes
  checking for PQescapeString()... yes
  checking for PQescapeStringConn()... yes
  checking for lo_create()... yes
  checking for pg_encoding_to_char()... yes
  checking for PQsetClientEncoding()... yes
  creating Makefile

  Slim2:ruby-pg-0.8.0 phrogz$ make && sudo make install
  gcc -I. -I/usr/local/include/ruby-1.9.1/i386-darwin9.6.0 -I/usr/
local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1
-Iext -DHAVE_LIBPQ_FE_H -DHAVE_LIBPQ_LIBPQ_FS_H -
DHAVE_PQCONNECTIONUSEDPASSWORD -DHAVE_PQISTHREADSAFE -DHAVE_PQPREPARE -
DHAVE_PQEXECPARAMS -DHAVE_PQESCAPESTRING -DHAVE_PQESCAPESTRINGCONN -
DHAVE_LO_CREATE -DHAVE_PG_ENCODING_TO_CHAR -DHAVE_PQSETCLIENTENCODING -
I/usr/local/pgsql/include  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   -fno-
common  -O2 -g -Wall -Wno-parentheses -pipe -fno-common  -o compat.o -
c ext/compat.c
  gcc -I. -I/usr/local/include/ruby-1.9.1/i386-darwin9.6.0 -I/usr/
local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1
-Iext -DHAVE_LIBPQ_FE_H -DHAVE_LIBPQ_LIBPQ_FS_H -
DHAVE_PQCONNECTIONUSEDPASSWORD -DHAVE_PQISTHREADSAFE -DHAVE_PQPREPARE -
DHAVE_PQEXECPARAMS -DHAVE_PQESCAPESTRING -DHAVE_PQESCAPESTRINGCONN -
DHAVE_LO_CREATE -DHAVE_PG_ENCODING_TO_CHAR -DHAVE_PQSETCLIENTENCODING -
I/usr/local/pgsql/include  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   -fno-
common  -O2 -g -Wall -Wno-parentheses -pipe -fno-common  -o pg.o -c
ext/pg.c
  ext/pg.c: In function ‘pgconn_trace’:
  ext/pg.c:2192: warning: implicit declaration of function ‘dup’
  cc -dynamic -bundle -undefined suppress -flat_namespace -o pg.bundle
compat.o pg.o -L. -L/usr/local/lib -L/usr/local/pgsql/lib -L. -L/usr/
local/lib    -lpq  -lpthread -ldl -lobjc
  Password:
  /usr/bin/install -c -m 0755 pg.bundle /usr/local/lib/ruby/site_ruby/
1.9.1/i386-darwin9.6.0

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to