Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am trying to use the linux program alien to change a *.deb file to an *.rpm file. It is not working. By that I mean when I type alien it is telling me it cannot locate the Deb.pm file.
Well I added the locatation of the Deb.pm file to my path and it still gives the same error.
How do I correct this?
Code:
alien
Can't locate Alien/Package/Deb.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/local/bin/alien line 296.
BEGIN failed--compilation aborted at /usr/local/bin/alien line 296.
[james@james Desktop]$
[james@james Desktop]$
[james@james Desktop]$
[james@james Desktop]$
[james@james Desktop]$
[james@james Desktop]$ echo $PATH
/home/james/Downloads/Alien/Package:/usr/lib64/openmpi/bin/:/home/james/Desktop/perfexpert-2.1.2:/home/james/Desktop/hpcviewer:/home/james/Desktop/hpctoolkit-install/bin:/usr/java/jdk1.7.0_21/bin:/home/james/Desktop/scalasca-1.4.3/bin:/home/james/Desktop/papi-4.1.1/bin:/home/james/Desktop/tau-2.22.2/x86_64/bin:/home/james/Desktop/pdtoolkit-3.18/x86_64/bin:/home/james/Desktop:/opt/pgi/linux86-64/13.6/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/james/bin:/home/james/Desktop/apache-ant-1.9.1/bin
I am trying to use the linux program alien to change a *.deb file to an *.rpm file. It is not working. By that I mean when I type alien it is telling me it cannot locate the Deb.pm file.
Well I added the locatation of the Deb.pm file to my path and it still gives the same error.
How do I correct this?
Code:
alien
Can't locate Alien/Package/Deb.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/local/bin/alien line 296.
BEGIN failed--compilation aborted at /usr/local/bin/alien line 296.
[james@james Desktop]$
[james@james Desktop]$
[james@james Desktop]$
[james@james Desktop]$
[james@james Desktop]$
[james@james Desktop]$ echo $PATH
/home/james/Downloads/Alien/Package:/usr/lib64/openmpi/bin/:/home/james/Desktop/perfexpert-2.1.2:/home/james/Desktop/hpcviewer:/home/james/Desktop/hpctoolkit-install/bin:/usr/java/jdk1.7.0_21/bin:/home/james/Desktop/scalasca-1.4.3/bin:/home/james/Desktop/papi-4.1.1/bin:/home/james/Desktop/tau-2.22.2/x86_64/bin:/home/james/Desktop/pdtoolkit-3.18/x86_64/bin:/home/james/Desktop:/opt/pgi/linux86-64/13.6/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/james/bin:/home/james/Desktop/apache-ant-1.9.1/bin
Well, I probably am completely off target here, but if I encountered this myself I would think the following:
1. "Alien" doesn't follow the $PATH, but uses only those listed in the @INC variable.
2. I need to edit the file that contains the @INC variable to reflect where I actually have the Deb.pm located.
3. Or, I need to move the Deb.pm file to one of the locations that @INC is using.
Okay that sounds reasonable. But how do I edit the file.
Code:
package Alien;
our $Version="8.78";
use strict;
use Getopt::Long;
use Alien::Package::Deb;
use Alien::Package::Rpm;
use Alien::Package::Tgz;
use Alien::Package::Slp;
use Alien::Package::Pkg;
use Alien::Package::Lsb;
The line 296 is use Alien::Package:eb;
I could move the Deb.pm file, but that does not seem correct. There may be other files that need moving also.
Well, I obtained the package. Seems it needed several others to run. I'm not even sure I got all that I needed, but I did get enough to know that I'm not going to install it on my system. It would be a bear to clean up.
You didn't say what distro you were using. If I'm reading the material I found correctly, this 'alien' should be setup on a Debian system already. Perhaps checking with the Debian folks would help.
Can you tell us what distro you are running. I use alien on Debian and I installed the alien package by the normal route:
Code:
sudo aptitude install alien
Here's the information about the alien package:
Quote:
~$ aptitude show alien
Package: alien
New: yes
State: installed
Automatically installed: no
Version: 8.89
Priority: optional
Section: admin
Maintainer: Joey Hess <joeyh@debian.org>
Architecture: all
Uncompressed Size: 214 k
Depends: debhelper (>= 7), perl, rpm (>= 2.4.4-2), dpkg-dev, make, cpio, rpm2cpio
Suggests: patch, bzip2, lsb-rpm, lintian, lzma
Description: convert and install rpm and other packages
Alien allows you to convert LSB, Red Hat, Stampede and Slackware Packages into Debian packages, which can
be installed with dpkg.
It can also generate packages of any of the other formats.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.