I am attempting to use a module I downloaded from CPAN. I am on a unix system where I dont have root permissions. So the CPAN module will have to go in my home directory.
I untarred the CPAN module here:
/users/<myusername>/perl/Tk-DKW-0.03
I ran the make file. It put the module files at:
Tk-DKW-0.03/blib/lib/Tk
I went to the example directory:
Tk-DKW-0.03/examples
Then I edited one of the examples and put a use statement at the top:
#! /usr/bin/perl
use lib "/users/<myusername>/perl/Tk-DKW-0.03/blib/Tk";
use Tk::Menustrip;
I then get this error:
(attocs951:examples)#482 ./menustrip.pl
Can't locate Tk/Menustrip.pm in @INC (@INC contains: "/users/<myuserna
+me>/perl/Tk-DKW-0.03/blib/lib/Tk /usr/lib64/perl5/5.8.5/x86_64-linux-
+thread-multi /usr/lib/perl5/5.8.5 /usr/lib64/perl5/site_perl/5.8.5/x8
+6_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.4/x86_64-linux
+-thread-multi . . . . .
If I do a ls of the directory I see the modules:
ls /users/<myusername>/perl/Tk-DKW-0.03/blib/lib/Tk
total 208K
4.0K CheckBox.pm* 12K Menustrip.pm*
4.0K ChildNotification.pm* 4.0K ProgressIndicator.pm*
60K Columns.pm* 4.0K Signals.pm*
12K ComboEntry.pm* 16K SplitFrame.pm*
8.0K CornerBox.pm* 8.0K TabbedForm.pm*
20K DockFrame.pm 16K TabFrame.pm*
28K IconCanvas.pm* 12K TableEdit.pm*
I dont understand what I am doing wrong.
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.