LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 12-16-2010, 01:21 PM   #1
ching592000
LQ Newbie
 
Registered: Nov 2010
Posts: 11

Rep: Reputation: 0
Can not find base.pm @INC when run selftest on CTCS under Centos 5.564bit


Dear Sirs,


Did anyone know how to complie CTCS test utility under Centos 5.5 64bit? I run selftest test, but it show can not find base.pm @INC; besides, I already install PERL5 package or development tools? I have no idea how to fix it.

Thanks
Fabio
 
Old 12-16-2010, 04:01 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.

Which CTCS ? I think, more than one is around ? Is it like ctcs-1.3.1 ?
No " Filename::Base.pm " in @INC, when 'perl perltest' is run. ?

The 'Cpan Search' has one hit for the keyword Filename::Base.pm
http://search.cpan.org/search?query=...ABase&mode=all
> > Class-Classgen-classgen....

# yum install perl-Class-Classgen-classgen.noarch
cd /usr/lib/perl5/5.8.8/ ( Or anywhere else in @INC.)
# mkdir Filename && cd Filename/
# cp /usr/share/doc/perl-Class-Classgen-classgen-3.03/examples/inheritance/Base.pm .

..
 
1 members found this post helpful.
Old 12-16-2010, 05:30 PM   #3
ching592000
LQ Newbie
 
Registered: Nov 2010
Posts: 11

Original Poster
Rep: Reputation: 0
Dear Sirs,

Thanks a lot and fid this good website. Yes, it is CTCS-1.3.1. The complete messages see below, but I copy Base.pm to these directory, but it is still not working when I download perl5.8.8. and cp base.pm in below direcotry. Do you have any ideas?
Can't locate Filename/Base.pm in @INC (@INC contains: /usr/lib/perl5/site_per/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .) at ./perltest line 3. BEGIN failed--compilation aborted at ./perltest line 3.



Quote:
Originally Posted by knudfl View Post
Welcome to LQ.

Which CTCS ? I think, more than one is around ? Is it like ctcs-1.3.1 ?
No " Filename::Base.pm " in @INC, when 'perl perltest' is run. ?

The 'Cpan Search' has one hit for the keyword Filename::Base.pm
http://search.cpan.org/search?query=...ABase&mode=all
> > Class-Classgen-classgen....

# yum install perl-Class-Classgen-classgen.noarch
cd /usr/lib/perl5/5.8.8/ ( Or anywhere else in @INC.)
# mkdir Filename && cd Filename/
# cp /usr/share/doc/perl-Class-Classgen-classgen-3.03/examples/inheritance/Base.pm .

..
 
Old 12-16-2010, 07:08 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Anyhow, the command 'perl perltest' is not meant to give a reply, I think.
When the suggested Base.pm is in place, there is just no message.
May be it is to be used together with some other command ?
( I guess, you have read some documentation for CTCS.)

The file "perltest" has only these seven lines :
Code:
#!/usr/bin/perl
use strict;
use Filename::Base;
use Getopt::Std;
use POSIX;
use Time::Local;
1;
......
Quote:
when I download perl5.8.8
Why would you download perl ? It's always installed by default.
Perl 5.8.8 is also on the install DVD , or the cd, disk 1.
..

Last edited by knudfl; 12-17-2010 at 03:05 AM.
 
Old 12-17-2010, 02:38 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
but it is still not working when I download perl5.8.8.
and cp base.pm in below directory.
There is a huge difference between base.pm and Base.pm :
Lower case b , upper case B . Only the correct one will do.

And it is not the base.pm from perl 5.8.8.
There are lots of files by name base.pm or Base.pm ( About 50 ).
They are all different. (Please try 'locate Base.pm' and then 'locate base.pm'.)
The one I used is the upper case Base.pm from the package
perl-Class-Classgen-classgen. (Is one of th 5,000 extra perl modules.)
I got the package by using # yum install perl-Class-Classgen-classgen
( It is in the Rpmforge repo.)
You can also fetch it here ( the source code )
http://search.cpan.org/~mschlue/Clas...classgen-3.03/
http://search.cpan.org/CPAN/authors/...en-3.03.tar.gz
> Class-Classgen-classgen-3.03.tar.gz ( 24 kB ).

The first word in Filename::Base.pm is a directory,
which must be created by you : 1) cd /usr/lib/perl5/5.8.8/
2) # mkdir Filename

3)
Code:
# cp /usr/share/doc/perl-Class-Classgen-classgen-3.03/examples/inheritance/Base.pm /Filename/
Or from the source code package :
cd Class-Classgen-classgen-3.03/examples/inheritance/
# cp Base.pm /usr/lib/perl5/5.8.8/Filename/
..

Please also try # 'yum search perl' to get an idea of the huge count of packages.
( Or # yum list all perl* > available-perl.txt )
My count is 740 : the CentOS-Base.repo + epel.repo.
EPEL : Extra Packages for Enterprise Linux
And if the rpmforge.repo is installed, the total count is 2,600 perl packages.
..

Last edited by knudfl; 12-17-2010 at 10:45 AM.
 
Old 12-17-2010, 01:43 PM   #6
ching592000
LQ Newbie
 
Registered: Nov 2010
Posts: 11

Original Poster
Rep: Reputation: 0
Smile

Dear Sirs,

Thanks for your help and I did typo. The file can not be found is Base.pm @INC
I use yum update on Centos 5.5 64bit, because it can not find match on yum search perl or yum list all perl* or yum install perl-Class-Classgen-classgen; therefor, I download Class-Classgen-classgen-3.03.tar.gz, accordking to your suggestion.

After downloading I tar on /tmp and copy Base.pm on directory which /selftest said not found. Unfortunately, it still not working(1.make 2.make install on CTCS-1.3.1).

My main purpose is to run CTCS-1.3.1 on Centos 5.0 64bit and I can run make make install without problem on Centos 5.5 32 bit, even thoug it show the same error messages when I run selftest

My platofrm is Intel 5400 chipset & ICH9R. Thanks a lot for your kindly help and quickly point out my typo.

Quote:
Originally Posted by knudfl View Post
There is a huge difference between base.pm and Base.pm :
Lower case b , upper case B . Only the correct one will do.

And it is not the base.pm from perl 5.8.8.
There are lots of files by name base.pm or Base.pm ( About 50 ).
They are all different. (Please try 'locate Base.pm' and then 'locate base.pm'.)
The one I used is the upper case Base.pm from the package
perl-Class-Classgen-classgen. (Is one of th 5,000 extra perl modules.)
I got the package by using # yum install perl-Class-Classgen-classgen
( It is in the Rpmforge repo.)
You can also fetch it here ( the source code )
http://search.cpan.org/~mschlue/Clas...classgen-3.03/
http://search.cpan.org/CPAN/authors/...en-3.03.tar.gz
> Class-Classgen-classgen-3.03.tar.gz ( 24 kB ).

The first word in Filename::Base.pm is a directory,
which must be created by you : 1) cd /usr/lib/perl5/5.8.8/
2) # mkdir Filename

3)
Code:
# cp /usr/share/doc/perl-Class-Classgen-classgen-3.03/examples/inheritance/Base.pm /Filename/
Or from the source code package :
cd Class-Classgen-classgen-3.03/examples/inheritance/
# cp Base.pm /usr/lib/perl5/5.8.8/Filename/
..

Please also try # 'yum search perl' to get an idea of the huge count of packages.
( Or # yum list all perl* > available-perl.txt )
My count is 740 : the CentOS-Base.repo + epel.repo.
EPEL : Extra Packages for Enterprise Linux
And if the rpmforge.repo is installed, the total count is 2,600 perl packages.
..
 
  


Reply



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
Cannot find a valid baseurl for repo: base --- CentOS 5 Ascendancy5 Linux - Newbie 7 01-12-2009 06:55 AM
Cant find a linux base kernel to create my own OS johnux Linux - General 6 08-24-2006 10:40 AM
Where Can I Find perl-base? JLuv3k7 Fedora 4 04-01-2006 04:57 PM
Cannot find or run the base session script buldir Fedora 1 06-04-2004 08:14 PM
Can't find base package Super Dave Linux - Software 0 02-05-2002 10:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:06 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration