LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-26-2009, 12:49 AM   #1
Laodiceans
Member
 
Registered: Jan 2006
Distribution: Slackware
Posts: 188

Rep: Reputation: 18
Xchat perl 5.10.1


I installed a ISO made from current, and the xchat stopped working.
It shows this message:
Code:
Can't locate File/Spec.pm in @INC (@INC contains: /usr/lib64/perl5/5.10.0/x86_64-linux-thread-multi /usr/lib64/perl5/5.10.0 /usr/lib64/perl5/site_perl/5.10.0/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.10.0 /usr/lib64/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.10.0 /usr/lib64/perl5/vendor_perl .) at (eval 1) line 28.
BEGIN failed--compilation aborted at (eval 1) line 28.
This is because a upgrade of perl.
How do I get xchat working again?

Last edited by Laodiceans; 12-26-2009 at 01:00 AM.
 
Old 12-26-2009, 03:45 AM   #2
sahko
Senior Member
 
Registered: Sep 2008
Distribution: Slackware
Posts: 1,041

Rep: Reputation: Disabled
Rebuild it yourself and/or ideally inform Pat that xchat needs to be rebuilt.

Last edited by sahko; 12-26-2009 at 03:46 AM.
 
Old 12-26-2009, 04:22 AM   #3
JokerBoy
Member
 
Registered: Sep 2009
Posts: 140

Rep: Reputation: 24
i run -current, and xchat works for me
 
Old 12-26-2009, 05:42 AM   #4
Laodiceans
Member
 
Registered: Jan 2006
Distribution: Slackware
Posts: 188

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by JokerBoy View Post
i run -current, and xchat works for me
64 bits?
 
Old 12-26-2009, 05:45 AM   #5
JokerBoy
Member
 
Registered: Sep 2009
Posts: 140

Rep: Reputation: 24
yes!

Code:
# grep -i xchat /var/log/packages/*
/var/log/packages/kdebase-4.3.4-x86_64-1:usr/share/apps/kappfinder/apps/Internet/xchat.desktop
/var/log/packages/kdebase-4.3.4-x86_64-1:usr/share/icons/oxygen/scalable/apps/xchat.svgz      
/var/log/packages/kdebase-4.3.4-x86_64-1:usr/share/icons/oxygen/48x48/apps/xchat.png          
/var/log/packages/kdebase-4.3.4-x86_64-1:usr/share/icons/oxygen/16x16/apps/xchat.png          
/var/log/packages/kdebase-4.3.4-x86_64-1:usr/share/icons/oxygen/32x32/apps/xchat.png          
/var/log/packages/kdenetwork-4.3.4-x86_64-1:usr/share/apps/kopete_latex/latexchatui.rc        
/var/log/packages/xchat-2.8.6-x86_64-3:PACKAGE NAME:     xchat-2.8.6-x86_64-3                 
/var/log/packages/xchat-2.8.6-x86_64-3:PACKAGE LOCATION: /var/log/mount//slackware64/xap/xchat-2.8.6-x86_64-3.txz
/var/log/packages/xchat-2.8.6-x86_64-3:xchat: xchat (GTK+-based IRC client)                                      
/var/log/packages/xchat-2.8.6-x86_64-3:xchat:                                                                    
/var/log/packages/xchat-2.8.6-x86_64-3:xchat: X-Chat is a GTK+-based IRC (Internet Relay Chat) client.           
/var/log/packages/xchat-2.8.6-x86_64-3:xchat:                                                                    
/var/log/packages/xchat-2.8.6-x86_64-3:xchat:                                                                    
/var/log/packages/xchat-2.8.6-x86_64-3:xchat:                                                                    
/var/log/packages/xchat-2.8.6-x86_64-3:xchat:                                                                    
/var/log/packages/xchat-2.8.6-x86_64-3:xchat:                                                                    
/var/log/packages/xchat-2.8.6-x86_64-3:xchat:                                                                    
/var/log/packages/xchat-2.8.6-x86_64-3:xchat:                                                                    
/var/log/packages/xchat-2.8.6-x86_64-3:xchat:                                                                    
/var/log/packages/xchat-2.8.6-x86_64-3:usr/doc/xchat-2.8.6/                                                      
/var/log/packages/xchat-2.8.6-x86_64-3:usr/doc/xchat-2.8.6/COPYING                                               
/var/log/packages/xchat-2.8.6-x86_64-3:usr/doc/xchat-2.8.6/README                                                
/var/log/packages/xchat-2.8.6-x86_64-3:usr/doc/xchat-2.8.6/HACKING                                               
/var/log/packages/xchat-2.8.6-x86_64-3:usr/doc/xchat-2.8.6/INSTALL                                               
/var/log/packages/xchat-2.8.6-x86_64-3:usr/doc/xchat-2.8.6/AUTHORS                                               
/var/log/packages/xchat-2.8.6-x86_64-3:usr/share/dbus-1/services/org.xchat.service.service                       
/var/log/packages/xchat-2.8.6-x86_64-3:usr/share/pixmaps/xchat.png                                               
/var/log/packages/xchat-2.8.6-x86_64-3:usr/share/applications/xchat.desktop                                      
/var/log/packages/xchat-2.8.6-x86_64-3:usr/share/locale/de/LC_MESSAGES/xchat.mo                                  
/var/log/packages/xchat-2.8.6-x86_64-3:usr/share/locale/pa/LC_MESSAGES/xchat.mo                                  
/var/log/packages/xchat-2.8.6-x86_64-3:usr/share/locale/ja/LC_MESSAGES/xchat.mo                                  
/var/log/packages/xchat-2.8.6-x86_64-3:usr/share/locale/hu/LC_MESSAGES/xchat.mo                                  
/var/log/packages/xchat-2.8.6-x86_64-3:usr/share/locale/fi/LC_MESSAGES/xchat.mo                                  
/var/log/packages/xchat-2.8.6-x86_64-3:usr/share/locale/zh_CN/LC_MESSAGES/xchat.mo
/var/log/packages/xchat-2.8.6-x86_64-3:usr/share/locale/mk/LC_MESSAGES/xchat.mo
/var/log/packages/xchat-2.8.6-x86_64-3:usr/share/locale/ru/LC_MESSAGES/xchat.mo
/var/log/packages/xchat-2.8.6-x86_64-3:usr/share/locale/be/LC_MESSAGES/xchat.mo
/var/log/packages/xchat-2.8.6-x86_64-3:usr/share/locale/pt/LC_MESSAGES/xchat.mo
/var/log/packages/xchat-2.8.6-x86_64-3:usr/share/locale/es/LC_MESSAGES/xchat.mo
/var/log/packages/xchat-2.8.6-x86_64-3:usr/share/locale/ca/LC_MESSAGES/xchat.mo
/var/log/packages/xchat-2.8.6-x86_64-3:usr/share/locale/vi/LC_MESSAGES/xchat.mo
/var/log/packages/xchat-2.8.6-x86_64-3:usr/share/locale/zh_TW/LC_MESSAGES/xchat.mo
/var/log/packages/xchat-2.8.6-x86_64-3:usr/share/locale/fr/LC_MESSAGES/xchat.mo
/var/log/packages/xchat-2.8.6-x86_64-3:usr/share/locale/uk/LC_MESSAGES/xchat.mo
/var/log/packages/xchat-2.8.6-x86_64-3:usr/share/locale/cs/LC_MESSAGES/xchat.mo
/var/log/packages/xchat-2.8.6-x86_64-3:usr/share/locale/sr/LC_MESSAGES/xchat.mo
/var/log/packages/xchat-2.8.6-x86_64-3:usr/share/locale/lt/LC_MESSAGES/xchat.mo
/var/log/packages/xchat-2.8.6-x86_64-3:usr/share/locale/nl/LC_MESSAGES/xchat.mo
/var/log/packages/xchat-2.8.6-x86_64-3:usr/share/locale/el/LC_MESSAGES/xchat.mo
/var/log/packages/xchat-2.8.6-x86_64-3:usr/share/locale/ko/LC_MESSAGES/xchat.mo
/var/log/packages/xchat-2.8.6-x86_64-3:usr/share/locale/it/LC_MESSAGES/xchat.mo
/var/log/packages/xchat-2.8.6-x86_64-3:usr/share/locale/th/LC_MESSAGES/xchat.mo
/var/log/packages/xchat-2.8.6-x86_64-3:usr/share/locale/sv/LC_MESSAGES/xchat.mo
/var/log/packages/xchat-2.8.6-x86_64-3:usr/share/locale/gl/LC_MESSAGES/xchat.mo
/var/log/packages/xchat-2.8.6-x86_64-3:usr/share/locale/sq/LC_MESSAGES/xchat.mo
/var/log/packages/xchat-2.8.6-x86_64-3:usr/bin/xchat
/var/log/packages/xchat-2.8.6-x86_64-3:usr/lib64/xchat/
/var/log/packages/xchat-2.8.6-x86_64-3:usr/lib64/xchat/plugins/
/var/log/packages/xchat-2.8.6-x86_64-3:usr/lib64/xchat/plugins/python.la
/var/log/packages/xchat-2.8.6-x86_64-3:usr/lib64/xchat/plugins/perl.so
/var/log/packages/xchat-2.8.6-x86_64-3:usr/lib64/xchat/plugins/tcl.la
/var/log/packages/xchat-2.8.6-x86_64-3:usr/lib64/xchat/plugins/perl.la
/var/log/packages/xchat-2.8.6-x86_64-3:usr/lib64/xchat/plugins/tcl.so
/var/log/packages/xchat-2.8.6-x86_64-3:usr/lib64/xchat/plugins/python.so
 
Old 12-26-2009, 05:57 AM   #6
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 91
I use xchat as well without problems on Slackware64-current

Check the version of Perl & Xchat from /var/log/packages... Maybe something got mixed up.
 
Old 12-26-2009, 06:25 AM   #7
gaurav1086
LQ Newbie
 
Registered: Dec 2008
Location: bangalore,india
Distribution: debian lenny
Posts: 13

Rep: Reputation: 0
Hello
you can do away installing File/Spec.pm module again in @INC.
Here http://search.cpan.org/~daleamon/Doc...c/BaseParse.pm
 
Old 12-27-2009, 12:58 AM   #8
Laodiceans
Member
 
Registered: Jan 2006
Distribution: Slackware
Posts: 188

Original Poster
Rep: Reputation: 18
The problem are the perl scripts that I use in xchat. Anyone have a idea to solve this? Without downgrade perl to 5.10?

Last edited by Laodiceans; 12-27-2009 at 06:02 AM.
 
Old 01-08-2010, 01:04 PM   #9
Laodiceans
Member
 
Registered: Jan 2006
Distribution: Slackware
Posts: 188

Original Poster
Rep: Reputation: 18
How can I make Perl scripts of XChat work on Perl 5.10.1 ?
 
Old 01-09-2010, 01:33 AM   #10
acummings
Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 615

Rep: Reputation: 50
Not clear what Operating System (O.S.) or if you had/used any O.S. prior to your said "ISO of current"

Appears a Perl issue and not at all to do with Slack.

I use cpan2tgz. Or, otherwise, you could search for a slackbuild for Perl module: File::Spec

you need to either get File:Spec installed or else, if it's already on your sys, add the path to it into Perl's @INC which is an array of so called "include" paths (A.K.A. where perl looks for Perl modules)



al@P5Q:~$ perldoc File::Spec
doc did display here for me on Slack 12.2
al@P5Q:~$

OTOH, no doc display means File::Spec not installed or not found



http://slackbuilds.org/result/?search=cpan&sv=13.0


root@P5Q:~# which cpan2tgz
/usr/bin/cpan2tgz


root@P5Q:/var/log/packages# lsg cpan
cpan2tgz-0.6.5-noarch-1_SBo


root@P5Q:~# cpan2tgz File::Spec
(makes a Slackware package out of File::Spec that can install)
 
Old 01-09-2010, 02:00 AM   #11
acummings
Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 615

Rep: Reputation: 50
http://perldoc.perl.org/File/Spec.html

That's from the perldoc for the "core modules" (modules included with 5.10.1)

So, File::Spec is supposed to already be with or a part of 5.10.1

ftp://slackware.mirrors.tds.net/pub/...source/d/perl/

I don't want to download

perl-5.10.1.tar.xz

and extract it to look for

File/Spec.pm

to see if it's in there (it should be).

Your error essentially said that Perl could not find the File::Spec module.

--
Alan.
 
Old 01-09-2010, 07:34 AM   #12
Laodiceans
Member
 
Registered: Jan 2006
Distribution: Slackware
Posts: 188

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by acummings View Post
Not clear what Operating System (O.S.) or if you had/used any O.S. prior to your said "ISO of current"
I downloaded all the http://darkstar.ist.utl.pt/slackware...are64-current/

and then I made:
Code:
mkisofs -o /home/kerml/slackware-dvd.iso  -R -J -A "Slackware Install" -hide-rr-moved -v -d -N -no-emul-boot -boot-load-size 4 -boot-info-table -sort isolinux/iso.sort -b isolinux/isolinux.bin -c isolinux/isolinux.boot -V "SlackDVD" .
And install that ISO.

Quote:
Originally Posted by acummings View Post
Appears a Perl issue and not at all to do with Slack.

I use cpan2tgz. Or, otherwise, you could search for a slackbuild for Perl module: File::Spec

you need to either get File:Spec installed or else, if it's already on your sys, add the path to it into Perl's @INC which is an array of so called "include" paths (A.K.A. where perl looks for Perl modules)
I also did

al@P5Q:~$ perldoc File::Spec
doc did display here for me on Slack 13-current too
al@P5Q:~$
 
Old 01-09-2010, 02:36 PM   #13
acummings
Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 615

Rep: Reputation: 50
Read through to end before you decide what you do first. Some herein is essentially very very very typical sys admin things while other herein is Perl specific admin.

I use the

mirror-slackware-current.sh

script from next for ISO creation of current

Code:
http://connie.slackware.com/~alien/tools/
I'd guess that you could format your drive then fresh install current would likely get Perl to find File/Spec.pm


You could have already

cpan2tgz File::Spec

to see if that fixed your problem
--


Code:
al@P5Q:/var/log/packages$ pwd
/var/log/packages
al@P5Q:/var/log/packages$ ls | grep per
<snip>
perl-5.10.0-i486-1

The above package (5.10.1 for you). you might (at your own risk) try removepkg it and then download the same package from a mirror and installpkg (essentially a remove and a re install) in the case yours had a problem.



Abnormal (abnormal for Perl) (very much so) that perldoc displays for you while the File/Spec.pm cannot be found using the @INC search paths.


(to compare output for any differrences) You and some others that match your O.S. might run the next command that begins with perl

Code:
al@P5Q:~$ perl -e 'print @INC'

When ran on my Slack 12.2 (next)

Code:
al@P5Q:~$ perl -e 'print @INC'
/usr/lib/perl5/5.10.0/i486-linux-thread-multi/usr/lib/perl5/5.10.0/usr/lib/perl5/site_perl/5.10.0/i486-linux-thread-multi/usr/lib/perl5/site_perl/5.10.0/usr/lib/perl5/site_perl/usr/lib/perl5/vendor_perl/5.10.0/i486-linux-thread-multi/usr/lib/perl5/vendor_perl/5.10.0/usr/lib/perl5/vendor_perl.al@P5Q:~$

Next, Slack 12.2 where Spec.perl_module is as well as its sub classes contained in the folder Spec/

Code:
al@P5Q:/usr/lib/perl5/5.10.0/File$ pwd
/usr/lib/perl5/5.10.0/File
al@P5Q:/usr/lib/perl5/5.10.0/File$ lsg Spe
Spec/
Spec.pm
al@P5Q:/usr/lib/perl5/5.10.0/File$
 
Old 01-10-2010, 03:35 PM   #14
Laodiceans
Member
 
Registered: Jan 2006
Distribution: Slackware
Posts: 188

Original Poster
Rep: Reputation: 18
It seams like perl was updated and xchat was compiled against a different version.
Should I notice Pat and his team about that?

I rebuild XChat with the new perl and is working fine now.

Last edited by Laodiceans; 01-10-2010 at 08:43 PM. Reason: SOLVED
 
  


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
Can't compile XChat on Debian Sarge (Perl problem?) Ninja Cow Debian 4 04-15-2007 03:30 PM
Making Xchat perl plugin ivanatora Programming 1 04-14-2005 12:58 PM
xchat does not like my perl plugins... mandavi Linux - Software 2 01-18-2005 06:06 AM
xchat spidna Slackware 2 09-01-2004 01:30 PM
perl(Cwd) perl(File::Basename) perl(File::Copy) perl(strict)....What are those? Baldorg Linux - Software 1 11-09-2003 08:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:49 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