LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 12-04-2013, 11:24 AM   #1
jyunker
Member
 
Registered: Aug 2009
Posts: 167

Rep: Reputation: 0
cannot use software alien


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
and the Deb.pm file is ocated:

Code:
james@james Desktop]$ sudo find / -name Deb.pm
/usr/local/share/perl5/Alien/Package/Deb.pm
/home/james/Downloads/alien/blib/lib/Alien/Package/Deb.pm
/home/james/Downloads/alien/Alien/Package/Deb.pm
Any help appreciated. Thanks in advance.

Respectfully,


newport_j
 
Old 12-04-2013, 11:37 AM   #2
Spect73
Member
 
Registered: Aug 2013
Distribution: Slackware 14.1
Posts: 128

Rep: Reputation: Disabled
Quote:
Originally Posted by jyunker View Post
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
and the Deb.pm file is ocated:

Code:
james@james Desktop]$ sudo find / -name Deb.pm
/usr/local/share/perl5/Alien/Package/Deb.pm
/home/james/Downloads/alien/blib/lib/Alien/Package/Deb.pm
/home/james/Downloads/alien/Alien/Package/Deb.pm
Any help appreciated. Thanks in advance.

Respectfully,


newport_j

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.


Coordially,
 
Old 12-04-2013, 01:17 PM   #3
jyunker
Member
 
Registered: Aug 2009
Posts: 167

Original Poster
Rep: Reputation: 0
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.

Any help appreciated. Thanks in advance.

Respectfully,


jyunker

Last edited by jyunker; 12-04-2013 at 01:20 PM.
 
Old 12-04-2013, 05:42 PM   #4
Spect73
Member
 
Registered: Aug 2013
Distribution: Slackware 14.1
Posts: 128

Rep: Reputation: Disabled
I'm not sure what file your code example comes from. Let me snag a copy of the program and see what I can come up with. This may take a day or two.

Coordially,
 
Old 12-04-2013, 10:37 PM   #5
Spect73
Member
 
Registered: Aug 2013
Distribution: Slackware 14.1
Posts: 128

Rep: Reputation: Disabled
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.

Sorry that I couldn't be of more help.

Coordially,
 
Old 12-04-2013, 11:46 PM   #6
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
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.

This is a tool only suitable for binary packages.
Homepage: http://kitenet.net/~joey/code/alien/
jdk
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Get Well Alien! onebuck Slackware 27 01-30-2013 06:49 AM
alien in fedora 91change Linux - Software 2 08-11-2008 12:23 PM
Using Alien mickeyboa Fedora 7 09-07-2007 08:52 AM
using alien Krimp Linux - Newbie 13 02-18-2007 10:36 AM
alien for slackware 9.1 krussell Linux - Software 1 01-17-2004 05:02 AM


All times are GMT -5. The time now is 03:28 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration