Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Device::USB installation and perl script compilation error #6

Open
Jezzrel opened this issue May 11, 2017 · 3 comments
Open

Device::USB installation and perl script compilation error #6

Jezzrel opened this issue May 11, 2017 · 3 comments

Comments

@Jezzrel
Copy link

Jezzrel commented May 11, 2017

After searching tons of information on the net how to install successfully these Device::USB, i managed it by downloading a shared patch file from https://github.com/devsaurus/perl-device-usb

First attempt to install the "patch file" it can't

  1. locate package "Devel::Peek", is it because i installed it using --force? So i had to copy it from /usr/local/lib/perl5/5.24.1/i686-linux/Devel to /usr/local/share/perl5/Devel
  2. locate Inline::MakeMaker, even though it was installed properly, so i manually copied to /usr/local/lib/perl5

Then from bash,
perl Makefile.PL
make
make test
make install

but it cant locate package " Parse::RecDescent", so i copied manually too.

Then to make it short, it was "successfully" installed, and last few lines of installation result below

Manifying 1 pod document
Manifying 7 pod documents
Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
Installing /usr/local/lib/perl5/site_perl/5.24.1/i686-linux/auto/Device/USB/USB.so
Installing /usr/local/lib/perl5/site_perl/5.24.1/i686-linux/Device/USB.pm
Installing /usr/local/lib/perl5/site_perl/5.24.1/i686-linux/Device/USB/Device.pm
Installing /usr/local/lib/perl5/site_perl/5.24.1/i686-linux/Device/USB/FAQ.pod
Installing /usr/local/lib/perl5/site_perl/5.24.1/i686-linux/Device/USB/DevInterface.pm
Installing /usr/local/lib/perl5/site_perl/5.24.1/i686-linux/Device/USB/DevConfig.pm
Installing /usr/local/lib/perl5/site_perl/5.24.1/i686-linux/Device/USB/Bus.pm
Installing /usr/local/lib/perl5/site_perl/5.24.1/i686-linux/Device/USB/DevEndpoint.pm
Installing /usr/local/share/man/man1/dump_usb.pl.1
Installing /usr/local/share/man/man3/Device::USB::Bus.3
Installing /usr/local/share/man/man3/Device::USB.3
Installing /usr/local/share/man/man3/Device::USB::DevEndpoint.3
Installing /usr/local/share/man/man3/Device::USB::DevConfig.3
Installing /usr/local/share/man/man3/Device::USB::DevInterface.3
Installing /usr/local/share/man/man3/Device::USB::Device.3
Installing /usr/local/share/man/man3/Device::USB::FAQ.3
Installing /usr/local/bin/dump_usb.pl
Appending installation info to /usr/local/lib/perl5/5.24.1/i686-linux/perllocal.pod

Then next, I installed Printer::ESCPOS, damn, it failed because it cannot locate package "Device::USB", i had to copy manually to /usr/local/lib/perl5/ before it was successfully installed.

but running my usbtest.pl script (printing an image to a usb barcode printer), i get error logs from apache below.

[Thu May 11 09:13:01.352136 2017] [cgi:error] [pid 17382] [client 127.0.0.1:38585] AH01215: You are attempting to load an extension for 'Device/USB.pm',
[Thu May 11 09:13:01.352226 2017] [cgi:error] [pid 17382] [client 127.0.0.1:38585] AH01215: but there is no entry for that module in %INC.
[Thu May 11 09:13:01.352241 2017] [cgi:error] [pid 17382] [client 127.0.0.1:38585] AH01215:
[Thu May 11 09:13:01.352284 2017] [cgi:error] [pid 17382] [client 127.0.0.1:38585] AH01215: at /usr/local/lib/perl5/Printer/ESCPOS/Connections/USB.pm line 20.
[Thu May 11 09:13:01.352367 2017] [cgi:error] [pid 17382] [client 127.0.0.1:38585] AH01215: Compilation failed in require at /usr/local/share/perl5/Module/Runtime.pm line 317, line 1. at /var/www/cgi-bin/usbtest.pl line 20.

This is the only issue remaining in order for us to deploy a web base POS, we need a usb barcode printer and it is a must that this is working. Pole Display is unusable too, luckily our receipt printer got ethernet port.

Any help? What I'm missing causing my script to raise above errors? BTW, tried this on Fedora 20, 23,24, 25 and all got issues installing Device::USB.

TIA.

@devsaurus
Copy link

Interesting report, thanks @Jezzrel.
I was able to install the module on my system back then directly from my fork, but never tried it on a "modern" distribution up to now. Therefore sorry, I don't have any further hints to add atm.

@Jezzrel
Copy link
Author

Jezzrel commented May 12, 2017

@devsaurus, thanks for your comment, may I know which version or distribution your system before? I was installing now a Fedora 17 and try again installing Device::USB and all packages i need for our POS system. As mentioned by some netizens, it was the Inline::MakeMaker package which really breaks the Device::USB. I wanted to try a "downgrade" but don't I can't get an older version.

@devsaurus
Copy link

which version or distribution your system before?

That was a 32-bit openSUSE from either the 12.x or 13.x line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants