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:
Can't locate String/ShellQuote.pm in @INC

 



tim9925
New User

Sep 2, 2012, 2:55 PM

Post #1 of 4 (1277 views)
Can't locate String/ShellQuote.pm in @INC Can't Post

Using Perl 5.12 on Darwin Kernel Version 11.4.0 (Mac OSX 10.7).
I am completely new to perl, but am experienced in other scripting and compiled languages.
I have installed String::ShellQuote as per:
sudo perl -MCPAN -e 'install String::ShellQuote'
I have set PERL5LIB=/opt/local/lib/perl5/site_perl/5.12.4/String
I can verify that ShellQuote.pm is at /opt/local/lib/perl5/site_perl/5.12.4/String/ShellQuote.pm
When I run ogg2mp3 from the same directory via ./ogg2mp3
I get the following error message:

Quote
Can't locate String/ShellQuote.pm in @INC (@INC contains: /opt/local/lib/perl5/site_perl/5.12.4/String /Library/Perl/5.12/darwin-thread-multi-2level /Library/Perl/5.12 /Network/Library/Perl/5.12/darwin-thread-multi-2level /Network/Library/Perl/5.12 /Library/Perl/Updates/5.12.3 /System/Library/Perl/5.12/darwin-thread-multi-2level /System/Library/Perl/5.12 /System/Library/Perl/Extras/5.12/darwin-thread-multi-2level /System/Library/Perl/Extras/5.12 .) at ./ogg2mp3 line 42.

It appears to be that the 'home' of ShellQuote is in the array. What else do I need to do?
thanks
tim


tim9925
New User

Sep 2, 2012, 3:59 PM

Post #2 of 4 (1276 views)
[Solved]Re: [tim9925] Can't locate String/ShellQuote.pm in @INC [In reply to] Can't Post

I have found the problem. By invoking ./oog2mp3
I was using the defacto interpreter as defined in the
shebang line as /usr/bin/perl.
When invoking:
perl ogg2mp3
I get a response with all modules loaded.
/opt/local/bin/perl is the first item in the 'which' path.
So, go figure. Don't entirely understand, but I have had
similar problems with python.


rovf
Veteran

Sep 3, 2012, 12:46 AM

Post #3 of 4 (1264 views)
Re: [tim9925] Can't locate String/ShellQuote.pm in @INC [In reply to] Can't Post


Quote
I have set PERL5LIB=/opt/local/lib/perl5/site_perl/5.12.4/String


Try setting it to /opt/local/lib/perl5/site_perl/5.12.4 instead.


tim9925
New User

Sep 3, 2012, 8:37 AM

Post #4 of 4 (1246 views)
Re: [rovf] Can't locate String/ShellQuote.pm in @INC [In reply to] Can't Post

Sure, and I changed the path to perl in the shebang line as well.
Thanks

 
 


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

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