VectorLinux
April 18, 2014, 05:57:50 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
  Print  
Author Topic: gscan2pdf install failure  (Read 1848 times)
MarkGrieveson
Vectorian
****
Posts: 531


« on: April 14, 2012, 08:46:01 am »

Hello.  Since there seemed to be no package for this program, I tried to install it from source.  However, I get the following error when I try to run it:
Code:
vector:/~/slackpacks/gscan2pdf/gscan2pdf-1.0.4
mark:$ gscan2pdf
Can't locate Proc/Killfam.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.12.3/i586-linux-thread-multi /usr/lib/perl5/site_perl/5.12.3 /usr/lib/perl5/vendor_perl/5.12.3/i586-linux-thread-multi /usr/lib/perl5/vendor_perl/5.12.3 /usr/lib/perl5/5.12.3/i586-linux-thread-multi /usr/lib/perl5/5.12.3 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl .) at /usr/lib/perl5/site_perl/5.12.3/Gscan2pdf.pm line 15.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.12.3/Gscan2pdf.pm line 15.
Compilation failed in require at /usr/bin/gscan2pdf line 123.
BEGIN failed--compilation aborted at /usr/bin/gscan2pdf line 123.
The source came from http://gscan2pdf.sourceforge.net/.  Any idea how I can fix this?
Logged

I am using VL7.0 standard with XFCE
stretchedthin
Administrator
Vectorian
*****
Posts: 3780


WWW
« Reply #1 on: April 14, 2012, 08:49:22 am »

It requires perl modules that are not part of VL nor are they in the repo, currently.  I can take a stabe at this one, little latter on in the week.
Logged

Vectorlinux screencasts and  tutorials can be found at....
http://www.opensourcebistro.com/blog1
http://www.youtube.com/user/vid4ken?feature=mhee
MarkGrieveson
Vectorian
****
Posts: 531


« Reply #2 on: April 26, 2012, 02:42:02 pm »

Hello.  Just wondering how this effort is coming along.  I certainly would appreciate it if you could assist me in getting gscan2pdf working.  It's a program I quite like.
Logged

I am using VL7.0 standard with XFCE
MarkGrieveson
Vectorian
****
Posts: 531


« Reply #3 on: May 02, 2012, 06:45:23 pm »

It requires perl modules that are not part of VL nor are they in the repo, currently.  I can take a stabe at this one, little latter on in the week.

Hello.  I searched for many of the perl modules on slackfind.net, and I think I found them all.  However, it still is not working.  I get the same feed back as I previously received, where it states that it can't find Killfam.pm

Code:
mark:$ gscan2pdf
Can't locate Proc/Killfam.pm in @INC

But Killfam.pm does now exist on my system:

Code:
vector:/~
mark:$ locate Killfam.pm
/usr/lib/perl5/vendor_perl/5.12.3/i486-linux-thread-multi/Proc/Killfam.pm

The problem seems to be that the machine is only looking for this file in the directory i586-linux-thread-multi and is ignoring i486-linux-thread-multi directory.  I think it says which directories are being searched with the statement:

Code:
(@INC contains: /usr/lib/perl5/site_perl/5.12.3/i586-linux-thread-multi /usr/lib/perl5/site_perl/5.12.3 /usr/lib/perl5/vendor_perl/5.12.3/i586-linux-thread-multi /usr/lib/perl5/vendor_perl/5.12.3 /usr/lib/perl5/5.12.3/i586-linux-thread-multi /usr/lib/perl5/5.12.3 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl .)

To get this Killfam.pm, I installed perl-proc-processtable (0.45-i686-1jsc), which I found from slackfind.net.

Anyway, how do I get whatever-the-hell "@INC" is to include the directory /usr/lib/perl5/vendor_perl/5.12.3/i486-linux-thread-multi/ when it attempts to locate perl modules?


« Last Edit: May 02, 2012, 06:47:05 pm by MarkGrieveson » Logged

I am using VL7.0 standard with XFCE
MarkGrieveson
Vectorian
****
Posts: 531


« Reply #4 on: May 02, 2012, 08:13:21 pm »

So, I linked stuff from the i486 directory to the i586 directory (see above), which seemed to work, since it no longer complains of not finding Killfam.pm.  But, now it complains of not finding Sane.pm, which seems to be in the pathways that @INC is supposed to find, so I'm not sure what to try now.  Any ideas?

Code:
vector:/~
mark:$ gscan2pdf
Can't locate Sane.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.12.3/i586-linux-thread-multi /usr/lib/perl5/site_perl/5.12.3 /usr/lib/perl5/vendor_perl/5.12.3/i586-linux-thread-multi /usr/lib/perl5/vendor_perl/5.12.3 /usr/lib/perl5/5.12.3/i586-linux-thread-multi /usr/lib/perl5/5.12.3 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl .) at /usr/lib/perl5/vendor_perl/5.12.3/Gscan2pdf/Frontend/Sane.pm line 11.
BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.12.3/Gscan2pdf/Frontend/Sane.pm line 11.
Compilation failed in require at /usr/lib/perl5/vendor_perl/5.12.3/Gscan2pdf/Document.pm line 8.
BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.12.3/Gscan2pdf/Document.pm line 8.
Compilation failed in require at /usr/bin/gscan2pdf line 131.
BEGIN failed--compilation aborted at /usr/bin/gscan2pdf line 131.
vector:/~
mark:$


Code:
vector:/~
mark:$ locate Sane.pm
/usr/lib/perl5/vendor_perl/5.12.3/Gscan2pdf/Frontend/Sane.pm
vector:/~

Logged

I am using VL7.0 standard with XFCE
MarkGrieveson
Vectorian
****
Posts: 531


« Reply #5 on: May 03, 2012, 07:15:19 am »

Seems there was another Sane.pm in /usr/lib/perl5/site_perl/5.12.3/i486-linux-thread-multi/ directory, that had to be linked to /usr/lib/perl5/site_perl/5.12.3/i586-linux-thread-multi/Sane.pm. 

Anyway, I did finally get it working, though there are still some rough edges.  I decided against the newer source file, and instead went with a Slackware package (gscan2pdf-1.0.0-i686-1jsc.txz).  These packages don't seem to deal with dependencies, which meant it allowed me to install it, but then wouldn't work -- I had to use the error messages to figure out what was missing.  It was kind of like being in a time warp -- reminded me of the olden days of "dependency hell".  Also, as mentioned previously, I had to link various perl modules to another directory so they could be found. 

So, it does run.  A couple of questions though:

The help viewer needs something called "Gtk2::Ex::PodViewer".  Anyone know what package gives this?

There's an error that says, " Can't locate package Cairo::Context for @Gtk2::Gdk::Cairo::Context::ISA at /usr/lib/perl5/vendor_perl/5.12.3/Gscan2pdf.pm line 36."  Anyone know where I can find "Cairo::Context"?
Logged

I am using VL7.0 standard with XFCE
hata_ph
Packager
Vectorian
****
Posts: 3206


-- Just being myself --


« Reply #6 on: May 04, 2012, 09:19:37 am »

I might be can get gscan2pdf build...once it is ready I will let u know Smiley
Logged
MarkGrieveson
Vectorian
****
Posts: 531


« Reply #7 on: May 04, 2012, 04:50:55 pm »

Excellent.  Glad to hear it.
Logged

I am using VL7.0 standard with XFCE
stretchedthin
Administrator
Vectorian
*****
Posts: 3780


WWW
« Reply #8 on: May 04, 2012, 09:52:11 pm »

I might be can get gscan2pdf build...once it is ready I will let u know Smiley

Thanks hata_ph.  I have not been able to get back to this one.  Appriciate you taking it on.
Logged

Vectorlinux screencasts and  tutorials can be found at....
http://www.opensourcebistro.com/blog1
http://www.youtube.com/user/vid4ken?feature=mhee
hata_ph
Packager
Vectorian
****
Posts: 3206


-- Just being myself --


« Reply #9 on: May 04, 2012, 10:32:45 pm »

I might be can get gscan2pdf build...once it is ready I will let u know Smiley

Thanks hata_ph.  I have not been able to get back to this one.  Appriciate you taking it on.

Welcome Smiley
Logged
hata_ph
Packager
Vectorian
****
Posts: 3206


-- Just being myself --


« Reply #10 on: May 04, 2012, 10:35:26 pm »

MarkGrieveson,

Add http://vlcore.vectorlinux.com/pkg/untested/x86/ to your gslapt/slapt-get source and look for gscan2pdf...I build it without the perlmagick pkgs as it need imagemagick-6.7.x as dependency but as far as i know upgrading new imagemagick will break some applications. Let me know how it go?

PS: Installing or upgrading pkgs from http://vlcore.vectorlinux.com/pkg/untested/x86/ might break your system...happy vectoring Smiley
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!