| Message: 53717 |
 |
BY: Salvatore Quercia (sly_ruby) DATE: 2008-04-01 12:07 SUBJECT: RE: DBI :: Postgresql not working on windows Hi Erik,
Thanks for your quick reply.
You'll notice in the gems list below I've ruby-postgres (0.7.1.2005.12.21)and postgres-pr (0.4.0).
This is my complete list of locallly installed gems:
C:\download\ruby-pg>gem list --local
*** LOCAL GEMS ***
actionmailer (2.0.2)
Service layer for easy email delivery and testing.
actionpack (2.0.2)
Web-flow and rendering framework putting the VC in MVC.
activerecord (2.0.2)
Implements the ActiveRecord pattern for ORM.
ActiveRecord-JDBC (0.5)
JDBC adapter for ActiveRecord, for use within JRuby on Rails.
activeresource (2.0.2)
Think Active Record for web resources.
activesupport (2.0.2)
Support and utility classes used by the Rails framework.
dbi-dbrc (1.1.1)
A simple way to avoid hard-coding passwords with DBI
fxri (0.3.6)
Graphical interface to the RI documentation, with search engine.
fxruby (1.6.13, 1.6.6)
FXRuby is the Ruby binding to the FOX GUI toolkit.
hpricot (0.6, 0.4)
a swift, liberal HTML parser with a fantastic library
jdbc-postgres (8.2)
PostgreSQL JDBC driver for Java and PostgreSQL/ActiveRecord-JDBC.
log4r (1.0.5)
Log4r is a comprehensive and flexible logging library for Ruby.
mysql (2.7.3)
A win32-native build of the MySQL API module
for Ruby.
postgres-pr (0.4.0)
A pure Ruby interface to the PostgreSQL (>= 7.4) database
rails (2.0.2)
Web-application framework with template engine, control-flow layer,
and ORM.
rake (0.8.1, 0.7.2)
Ruby based make-like utility.
ruby-debug-base (0.10.0)
Fast Ruby debugger - core component
ruby-debug-ide (0.1.10)
IDE interface for ruby-debug.
ruby-postgres (0.7.1.2005.12.21)
Ruby extension library providing an API to PostgreSQL
sources (0.0.1)
This package provides download sources for remote gem installation
win32-api (1.0.5)
A superior replacement for Win32API
win32-clipboard (0.4.3, 0.4.1)
A package for interacting with the Windows clipboard
win32-dir (0.3.2, 0.3.1)
Extra constants and methods for the Dir class on Windows.
win32-eventlog (0.4.7, 0.4.3)
Interface for the MS Windows Event Log.
win32-file (0.5.5, 0.5.3, 0.5.2)
Extra or redefined methods for the File class on Windows.
win32-file-stat (1.2.7, 1.2.3)
A File::Stat class tailored to MS Windows
win32-process (0.5.6, 0.5.1)
Adds create, fork, wait, wait2, waitpid, and a special kill method
win32-sapi (0.1.4, 0.1.3)
An interface to the MS SAPI (Sound API) library.
win32-sound (0.4.1, 0.4.0)
A library for playing with sound on MS Windows.
windows-api (0.2.1)
An easier way to create methods using Win32API
windows-pr (0.8.0, 0.6.2)
Windows functions and constants bundled via Win32::API
The problem with ruby-pg is during installation, it complains about pg_config. It can't find it in my PATH but it's there. Check output below please
C:\download\ruby-pg>pg_config
BINDIR = D:/tools/POSTGR~1.1/bin
DOCDIR = D:/tools/POSTGR~1.1/doc
INCLUDEDIR = D:/tools/POSTGR~1.1/include
PKGINCLUDEDIR = D:/tools/POSTGR~1.1/include
INCLUDEDIR-SERVER = D:/tools/POSTGR~1.1/include/server
LIBDIR = D:/tools/POSTGR~1.1/lib
PKGLIBDIR = D:/tools/POSTGR~1.1/lib
LOCALEDIR = D:/tools/PostgreSQL8.3.0.1/share/locale
MANDIR = D:/tools/PostgreSQL8.3.0.1/man
SHAREDIR = D:/tools/POSTGR~1.1/share
SYSCONFDIR = D:/tools/PostgreSQL8.3.0.1/etc
PGXS = D:/tools/PostgreSQL8.3.0.1/lib/pgxs/src/makefiles/pgxs.mk
CONFIGURE = --enable-thread-safety --enable-nls --with-ldap --with-libxml --with-libxslt --with-krb5 --with-tcl --with-perl --with
-python
VERSION = PostgreSQL 8.3.0
C:\download\ruby-pg>ruby ext\extconf.rb config
The system cannot find the path specified.
ERROR: can't find pg_config.
HINT: Make sure pg_config is in your PATH
*** ext/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
--srcdir=ext
--curdir
--ruby=D:/tools/ruby/bin/ruby
May be am doing something wrong ?
Want me to uninstall DBI-0.2.0 and install DBI 0.1.1 and do tests with ruby-postgres ?
Thanks Erik | |