Re: Newbie Question - @INC

Bob Miller <kbob-dSPFHXr/[email protected]>
Newsgroups gmane.music.equipment.slimp3.user
Organization Unlikely
Message-ID <[email protected]>
Channing Corn wrote:

> Sorry for the Newbie question, BUT...
> 
> I am getting the following error when trying to start the server via: perl
> ./server.pl &
> 
> ======================================================
> [root@cartman SliMP3_Server_V2.0]# Can't locate Time/HiRes.pm in @INC (@INC
> cont
> ains: /usr/local/SliMP3_Server_V2.0/lib
> /usr/local/SliMP3_Server_V2.0/lib/CPAN /
> usr/local/SliMP3_Server_V2.0/lib/CPAN/arch/i386-linux-thread-multi
> /usr/lib/perl
> 5/5.6.1/i386-linux-thread-multi /usr/lib/perl5/5.6.1
> /usr/lib/perl5/site_perl/5.
> 6.1/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.6.1
> /usr/lib/perl5/site_p
> erl .) at ./server.pl line 60.
> BEGIN failed--compilation aborted at ./server.pl line 60.
> ======================================================

I saw that too.

What does this command print on your box?

	perl -V:archname

On my box, it prints:

	archname='i686-linux';

So I made a link from i386-linux to i686-linux.

	cd /path/to/SlimP3_Server_V2.0
	ln -s i386-linux lib/CPAN/arch/i686-linux

Maybe we should add something like this to the top of server.pl?

    use Config;
    BEGIN {
        my $archname = $Config{archname};
        die "You must run $0 from its own directory.\n"
            unless -d "lib/CPAN/arch";
        unless (-d "lib/CPAN/arch/$archname") {
            if ($archname =~ /i\d*86-linux/) {
                symlink('i386-linux', 'lib/CPAN/arch/$archname') or die;
            } else {
                die "SliMP3 does not support the $archname architecture.\n";
            }
        }
    }

-- 
Bob Miller                              K<bob>
kbobsoft software consulting
http://kbobsoft.com                     kbob-dSPFHXr/[email protected]

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Sponsored by VeriSign - The Value of Trust
Do you need to encrypt all your online transactions? Find
the perfect solution in this FREE Guide from VeriSign.
http://us.click.yahoo.com/jWSNbC/UdiDAA/yigFAA/rIp0lB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
[email protected]

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.