🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fj.lang.perl
Article #218

Re: GD.pm ( How to add a directory to the perl library path? )

#218
From: Maki Watanabe
Date: Wed, 25 Mar 1998 00:00
25 lines
1579 bytes
Kazunori Nozaki wrote:
> /home/soccer/www/cgi-bin/CAPAN/07> perl pie.cgi
> Can't find loadable object for module GD in @INC (/home/soccer
> /home/soccer/lib /home/soccer/GD-1.18
> /blib /home/soccer/GD-1.18 /usr/local/lib/perl5/sun4-solaris/5.00402
> /usr/local/lib/perl5 /usr/local
> /lib/perl5/site_perl/sun4-solaris /usr/local/lib/perl5/site_perl .) at pie.cgi
> line 5
> BEGIN failed--compilation aborted at pie.cgi line 5.

DynaLoaderがGD.soを見付けられないようですね。
GDのdynamic link library module(GD.so)がインストールされている
ディレクトリを環境変数 LD_LIBRARY_PATH に追加してください。
詳しい事は % perldoc DynaLoader に書いてあります。

> ところで、 use lib qw(/home/soccer);
>      @   ^^^^^
> はどういう意味でしょうか?

モジュール検索パスの先頭に /home/soccer を追加するという意味です。
% perldoc lib 
を見て下さい。

mw
Technical Details
Message-ID: <351869D4.65870681@tko.dec.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <35175D7E.31FF017D@ec.hokudai.ac.jp> <35178D44.3F9B23F0@tko.dec.com> <3517B61F.44F7DD3@ec.hokudai.ac.jp>

Show Full Headers
Complete Article Headers
X-Google-Language: Japanese,JIS
X-Google-Thread: 1043e7,3135222b52963723
X-Google-Attributes: gid1043e7,public
From: Maki Watanabe <watanabe.maki@tko.dec.com>
Subject: Re: GD.pm ( How to add a directory to the perl library path? )
Date: 1998/03/25
Message-ID: <351869D4.65870681@tko.dec.com>
X-Deja-AN: 337386910
Content-Transfer-Encoding: 7bit
References: <35175D7E.31FF017D@ec.hokudai.ac.jp> <35178D44.3F9B23F0@tko.dec.com> <3517B61F.44F7DD3@ec.hokudai.ac.jp>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-2022-jp
Organization: Digital Equipment Corporation Japan
Newsgroups: fj.lang.perl