CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
@INC

 



macanucaire
New User

Dec 15, 2008, 11:32 AM

Post #1 of 2 (492 views)
@INC Can't Post

I know very little about Perl but I'm trying to run an application call SqueezeCenter from Logitech on Debian Linux 4.0 box. It is in perl. When I try to run it I get the error in the attached .txt file. I've tried adding the path to WMA.pm to @INC but that has no effect. When I list @INC I get the second attached file which remains unchanged when try to update. The commands I use to list @NIC and update it are
perl -e 'print join "\n", @INC'
perl -e 'use lib "/path/to/add"'
Among the many things that puzzle me is the list of @INC does not seem to match that in the error message.
Any help would be gratefully received
Attachments: err.txt (1.88 KB)
  INC1 (0.16 KB)


winfinit
User

Dec 16, 2008, 12:11 AM

Post #2 of 2 (485 views)
Re: [macanucaire] @INC [In reply to] Can't Post

reason why your @INC is different from reported error is because program is probably adding some environment variables. you can do several things, one is open script that you are running and add after #!... (on the next line) your use lib '/path' save and rerun your make. second and better thing to do is to install your module that you are missing to standard perl paths, that can be easily accomplished via cpan shell, so just type cpan then once you are in that shell exec "install your::Module" . also you can add path to @INC via environment variable PERL5LIB, so you would do something like this: export PERL5LIB='/new/path:/other/paths/if/any'

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives