VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Author Topic: gscan2pdf install failure  (Read 2782 times)

MarkGrieveson

  • Vectorian
  • ****
  • Posts: 531
gscan2pdf install failure
« on: April 14, 2012, 09: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: [Select]
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
    • Opensourcebistro.com
Re: gscan2pdf install failure
« Reply #1 on: April 14, 2012, 09: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
Re: gscan2pdf install failure
« Reply #2 on: April 26, 2012, 03: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
Re: gscan2pdf install failure
« Reply #3 on: May 02, 2012, 07: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: [Select]
mark:$ gscan2pdf
Can't locate Proc/Killfam.pm in @INC

But Killfam.pm does now exist on my system:

Code: [Select]
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: [Select]
(@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, 07:47:05 pm by MarkGrieveson »
Logged
I am using VL7.0 standard with XFCE

MarkGrieveson

  • Vectorian
  • ****
  • Posts: 531
Re: gscan2pdf install failure
« Reply #4 on: May 02, 2012, 09: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: [Select]
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: [Select]
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
Re: gscan2pdf install failure
« Reply #5 on: May 03, 2012, 08: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: 3261
  • -- Just being myself --
Re: gscan2pdf install failure
« Reply #6 on: May 04, 2012, 10:19:37 am »

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

MarkGrieveson

  • Vectorian
  • ****
  • Posts: 531
Re: gscan2pdf install failure
« Reply #7 on: May 04, 2012, 05:50:55 pm »

Excellent.  Glad to hear it.
Logged
I am using VL7.0 standard with XFCE

stretchedthin

  • Administrator
  • Vectorian
  • *****
  • Posts: 3780
    • Opensourcebistro.com
Re: gscan2pdf install failure
« Reply #8 on: May 04, 2012, 10:52:11 pm »

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

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: 3261
  • -- Just being myself --
Re: gscan2pdf install failure
« Reply #9 on: May 04, 2012, 11:32:45 pm »

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

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

Welcome :)
Logged

hata_ph

  • Packager
  • Vectorian
  • ****
  • Posts: 3261
  • -- Just being myself --
Re: gscan2pdf install failure
« Reply #10 on: May 04, 2012, 11: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 :)
Logged