Glad to help. Cheers Pavel
On Jul 20, 1:51 pm, Gavin Kistner <[email protected]> wrote: > On Jul 20, 2009, at 3:14 AM, Pavel Kunc wrote: > > > It's complaining that you don't have RSpec I think. I've installed > > using rake by: > > > rake native > > rake gem > > sudo gem install pkg/pg-0.8.0.gem > > Ah, right you are. I was confused because the Rakefile has "require > 'spec/rake/spectask'" but there is no rake subdirectory in the spec > directory of the source. I see now that "sudo gem install rspec" adds: > /usr/local/lib/ruby/gems/1.9.1/gems/rspec-1.2.8/lib/spec/rake/ > spectask.rb > which is what it was looking for, and allows rake native to work. > (Along with adding the postgres bin to my path and setting ARCHFLAGS > for OS X.) > > For archived completeness, here follows the exact log of making > postgres and pg support Unicode/UTF-8 string encodings in Ruby 1.9.1. > Thanks again, Pavel. > > 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$ sudo gem install rspec > ************************************************** > > Thank you for installing rspec-1.2.8 > > Please be sure to read History.rdoc and Upgrade.rdoc > for useful information about this release. > > ************************************************** > Successfully installed rspec-1.2.8 > 1 gem installed > Installing ri documentation for rspec-1.2.8... > Installing RDoc documentation for rspec-1.2.8... > Could not find main page README.rdoc > > Slim2:ruby-pg-0.8.0 phrogz$ rake native > (in /usr/local/src/ruby-pg-0.8.0) > mkdir -p lib > ERROR: can't find pg_config. > HINT: Make sure pg_config is in your PATH > *** extconf.rb failed *** > Could not create Makefile due to some reason, probably lack of > necessary libraries and/or headers. Check the mkmf.log file for more > details. You may need configuration options. > > Provided configuration options: > --with-opt-dir > --without-opt-dir > --with-opt-include > --without-opt-include=${opt-dir}/include > --with-opt-lib > --without-opt-lib=${opt-dir}/lib > --with-make-prog > --without-make-prog > --srcdir=. > --curdir > --ruby=/usr/local/bin/ruby > rake aborted! > Command failed with status (1): [/usr/local/bin/ruby extconf.rb...] > > (See full trace by running task with --trace) > > Slim2:ruby-pg-0.8.0 phrogz$ PATH=$PATH:/usr/local/pgsql/bin/ > ARCHFLAGS='-arch i386' rake native > (in /usr/local/src/ruby-pg-0.8.0) > 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 > 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 -I. - > 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 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 -I. - > 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 pg.c > pg.c: In function ‘pgconn_trace’: > 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 > cp ext/pg.bundle lib/pg.bundle > > Slim2:ruby-pg-0.8.0 phrogz$ rake gem > (in /usr/local/src/ruby-pg-0.8.0) > mkdir -p pkg > Successfully built RubyGem > Name: pg > Version: 0.8.0 > File: pg-0.8.0.gem > mv pg-0.8.0.gem pkg/pg-0.8.0.gem > > Slim2:ruby-pg-0.8.0 phrogz$ sudo gem install pkg/pg-0.8.0.gem > Building native extensions. This could take a while... > Successfully installed pg-0.8.0 > 1 gem installed > Installing ri documentation for pg-0.8.0... > Updating class cache with 2198 classes... > Installing RDoc documentation for pg-0.8.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 -~----------~----~----~----~------~----~------~--~---
