Brian said:
I can't do that, since you still haven't shown:
* your operating system version, your ruby version, and the dbi version
you're trying to install
* the exact commands you typed *together with* the responses that came
back
In particular, you say that the output of "ruby setup.rb --help" didn't
list the --with option, but you can see from the output I posted that it
did for me.
So if you showed the actual output you got, it might explain why.
Perhaps we're either running different versions of setup.rb, or
different versions of ruby, but that's just a guess.
Hi, here is some information, hope it can help you to understand the
problem.
Operating system is : Ubuntu 8.0.4
Ruby version : 1.8.6
DBI that i am trying to install is : dbi-0.4.1
the commands and responses are:
1. root@manisha-desktop:/home/manisha/dbi-0.4.1# ruby setup.rb config
--with=dbi,dbd_pg
config: unknown option --with=dbi,dbd_pg
Try 'ruby setup.rb --help' for detailed usage.
2. root@manisha-desktop:/home/manisha/dbi-0.4.1# ruby setup.rb --help
Typical Installation Procedure:
$ ruby setup.rb config
$ ruby setup.rb setup
# ruby setup.rb install (may require root privilege)
Detailed Usage:
ruby setup.rb <global option>
ruby setup.rb [<global options>] <task> [<task options>]
Global options:
-q,--quiet suppress message outputs
--verbose output messages verbosely
--help print this message
--version print version and quit
--copyright print copyright and quit
Tasks:
all do config, setup, then install
config saves your configurations
show shows current configuration
setup compiles ruby extentions and others
install installs files
test run all tests in test/
clean does `make clean' for each extention
distclean does `make distclean' for each extention
Options for CONFIG or ALL:
--installdirs=std/site/home std: install under libruby; site: install
under site_ruby; home: install under $HOME []
--prefix=path path prefix of target environment [/usr]
--bindir=path the directory for commands [$prefix/bin]
--libdir=path the directory for libraries [$prefix/lib]
--datadir=path the directory for shared data [$prefix/share]
--mandir=path the directory for man pages
[$prefix/share/man]
--sysconfdir=path the directory for system configuration files
[/etc]
--localstatedir=path the directory for local state data [/var]
--libruby=path the directory for ruby libraries
[/usr/lib/ruby]
--librubyver=path the directory for standard ruby libraries
[/usr/lib/ruby/1.8]
--librubyverarch=path the directory for standard ruby extensions
[/usr/lib/ruby/1.8/i486-linux]
--siteruby=path the directory for version-independent aux
ruby libraries [/usr/local/lib/site_ruby]
--siterubyver=path the directory for aux ruby libraries
[/usr/local/lib/site_ruby/1.8]
--siterubyverarch=path the directory for aux ruby binaries
[/usr/local/lib/site_ruby/1.8/i486-linux]
--rbdir=path the directory for ruby scripts [$siterubyver]
--sodir=path the directory for ruby extentions
[$siterubyverarch]
--rubypath=path the path to set to #! line [/usr/bin/ruby1.8]
--rubyprog=name the ruby program using for installation
[/usr/bin/ruby1.8]
--makeprog=name the make program to compile ruby extentions
[make]
--shebang=all/ruby/never shebang line (#!) editing mode [ruby]
--without-ext does not compile/install ruby extentions [no]
--rbconfig=path rbconfig.rb to load [running ruby's]
Options for INSTALL:
--no-harm only display what to do if given [off]
--prefix=path install path prefix []