ライブラリのパスについての調査

ライブラリに関連した必要なものは

  • Mosh のライブラリがデフォルトで置かれる場所
  • Mosh の追加ライブラリが置かれる場所
  • Mosh が (import xxx) するときにライブラリを探す場所
  • ライブラリを探す場所を追加する方法

かな。site/lib の役割は third party 用?確か Perl がこの方式だったような。

Mosh

コマンドラインオプション

ライブラリディレクト

Gauche

コマンドラインオプション

  • I Adds to the head of the load path list.
  • A Adds to the head of the load path list.

ライブラリディレクト

  • /usr/local/share/gauche/site/lib
    • 手元では空だった
    • third party 用?
  • /usr/local/share/gauche/0.8.14/lib
    • (おそらく)Gauche インストール時にインストールされたライブラリ

Ypsilon

コマンドラインオプション。

  • sitelib=path adds sitelib path (YPSILON_SITELIB)
  • loadpath=path adds load search path (YPSILON_LOADPATH)

環境変数での追加も受け付けている

ライブラリディレクト

  • /usr/local/share/ypsilon/sitelib
  • /usr/local/share/ypsilon/stdlib
    • core, rnrs など

Ikarus

コマンドラインオプションはない。IKARUS_LIBRARY_PATH で追加可能。

ライブラリディレクト

  • /usr/local/lib/ikarus

Ruby

コマンドラインオプション

  • Idirectory specify $LOAD_PATH directory (may be used more than once)

ライブラリディレクト

  • /usr/lib/ruby/1.8/