LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 11-18-2008, 09:44 AM   #1
versaulis
Member
 
Registered: Sep 2003
Posts: 139

Rep: Reputation: 15
Question Perl seems to think I have two INC variables.


Here's Jedi Mind Trick for ya:

Code:
root:/sources3/sgml-common-0.6.3# autoreconf -f -i 2>&1 | tee -a /logs/sgml-common-autoreconf.log
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "en_US.iso88591"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Can't locate File/Glob.pm in @INC (@INC contains: /usr/share/autoconf /tools/lib/perl5/5.10.0/i686-linux /tools/lib/perl5/5.10.0 /tools/lib/perl5/site_perl/5.10.0/i686-linux /tools/lib/perl5/site_perl/5.10.0 .) at /usr/bin/autoreconf line 297.
BEGIN failed--compilation aborted at /usr/bin/autoreconf line 297.
root:/sources3/sgml-common-0.6.3# perl -e "print join(\"\n\", @INC);"
/usr/lib/perl5/5.10.0/i686-linux
/usr/lib/perl5/5.10.0
/usr/lib/perl5/site_perl/5.10.0/i686-linux
/usr/lib/perl5/site_perl/5.10.0
root:/sources3/sgml-common-0.6.3# find / -name Glob.pm
/usr/lib/perl5/5.10.0/i686-linux/File/Glob.pm
I'm following LFS and BLFS. I just can't understand why or how Perl is using two different INC variables depending upon the command I use (perl or autoconf).
 
Old 11-18-2008, 11:36 AM   #2
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,094
Blog Entries: 2

Rep: Reputation: 111Reputation: 111
Do you have multiple versions of perl on the box and autoreconf is calling a different one then you are using on the command line?
 
Old 11-18-2008, 12:13 PM   #3
versaulis
Member
 
Registered: Sep 2003
Posts: 139

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by estabroo View Post
Do you have multiple versions of perl on the box and autoreconf is calling a different one then you are using on the command line?
That was my first thought, since LFS has you install it into the /tools tree first. After the basic system was build, I removed the /tools directory, however. Also, setting the PERLLIB variable fixes the problem. My main issue is figuring out how to tell Perl to stop looking in the /tools tree.

But, then again, it seem like it *isn't* looking in the /tools tree when I ask it what it has in it's INC variable... so I'm confused.
 
Old 11-18-2008, 07:00 PM   #4
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,251

Rep: Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026
Try the guys over here: www.perlmonks.org
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
using variables as strings in perl Elukyz Programming 9 06-17-2007 12:22 AM
Perl - using positional variables with su mr_scary Programming 1 10-02-2006 05:16 AM
Environment variables and perl jrbiochem Linux - General 0 05-06-2004 09:40 AM
exporting variables in Perl nbp Programming 1 11-18-2003 08:35 AM
Perl variables nbp Programming 2 11-02-2003 09:33 AM


All times are GMT -5. The time now is 02:16 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration