Finding Libraries in Non-standard Places

I want to get my ruby readline extension working, but my readline
library is in /usr/pkg/lib. How do I make ruby find it there?

cjs

···

--
Curt Sampson <cjs@cynic.net> +81 90 7737 2974 http://www.NetBSD.org
     Make up enjoying your city life...produced by BIC CAMERA

Does --with-readline-dir=/usr/pkg/lib work?

- Ville

Hi,

Curt Sampson <cjs@cynic.net> writes:

I want to get my ruby readline extension working, but my readline
library is in /usr/pkg/lib. How do I make ruby find it there?

If readline.h is in /usr/pkg/include/readline and
libreadline.* is in /usr/pkg/lib, try this:

  ./configure --with-readline-dir=/usr/pkg

···

--
eban

That's it. How does one figure out these options?

cjs

···

On Thu, 28 Oct 2004, WATANABE Hirofumi wrote:

  ./configure --with-readline-dir=/usr/pkg

--
Curt Sampson <cjs@cynic.net> +81 90 7737 2974 http://www.NetBSD.org
     Make up enjoying your city life...produced by BIC CAMERA

Hi,

Curt Sampson <cjs@cynic.net> writes:

> ./configure --with-readline-dir=/usr/pkg

That's it. How does one figure out these options?

% ruby -ne 'print if /^ dir_config/ .. /^Return/' README.EXT
dir_config(target[, default_dir])
dir_config(target[, default_include, default_lib])

Parses the command line options and adds the directories specified by
--with-<target>-dir, --with-<target>-include, and/or --with-<target>-lib
to $CFLAGS and/or $LDFLAGS. --with-<target>-dir=/path is equivalent to
--with-<target>-include=/path/include --with-<target>-lib=/path/lib.
Returns an array of the added directories ([include_dir, lib_dir]).

% ruby -ne 'print if /^dir_config/' ext/readline/extconf.rb
dir_config('curses')
dir_config('ncurses')
dir_config('termcap')
dir_config("readline")

···

On Thu, 28 Oct 2004, WATANABE Hirofumi wrote:

--
eban

* Curt Sampson <cjs@cynic.net> [1020 09:20]:

···

On Thu, 28 Oct 2004, WATANABE Hirofumi wrote:

> ./configure --with-readline-dir=/usr/pkg

That's it. How does one figure out these options?

look at extconf.rb - see the online pickaxes description of it
(I have resorted to reading the mkmf.rb source before now however...).

--
zzz..Kill all humans. Kill all humans..zzz .....
I was having the most wonderous dream. You were in it. - Bender
Rasputin :: Jack of All Trades - Master of Nuns