Page 1 of 1

Install a 32 bit rpm package on MX 64 bit

Posted: Tue Jun 21, 2016 4:40 am
by radissthor
Hi all,

I need to run some signal processing software from BioSemi. Luckily, they have some Linux versions, but they only have 32 bit rpm packages. I was told in a forum thread that I had to use alien to turn the rpm package into deb, but when I tried to do that, I got an incompatible architecture error:

Code: Select all

Warning: Skipping conversion of scripts in package labview85-rte: postinst postrm prerm
Warning: Use the --scripts parameter to include the scripts.
labview85-rte-8.5-1.i386.rpm is for architecture i386 ; the package cannot be built on this system
Is there any way I could install a 32-bit rpm package on a 64-bit MX system?

Re: Install a 32 bit rpm package on MX 64 bit

Posted: Tue Jun 21, 2016 7:02 am
by kmathern
It looks like alien has a "--target=<arch>" option that you might try.

Code: Select all

$ alien --help
Usage: alien [options] ...
      --target=<arch>       Set architecture of the generated package. ....
Try adding --target=i386 to the alien command you ran earlier, if it works the way I think it does it will create a *_i386.deb.

IIRC MX-15 64bit has multiarch support for i386 setup by default, so I think it should be able to install the i386 .deb package created by alien without any problems.

Re: Install a 32 bit rpm package on MX 64 bit

Posted: Tue Jun 21, 2016 8:35 am
by radissthor
kmathern wrote:It looks like alien has a "--target=<arch>" option that you might try.

Code: Select all

$ alien --help
Usage: alien [options] ...
      --target=<arch>       Set architecture of the generated package. ....
Try adding --target=i386 to the alien command you ran earlier, if it works the way I think it does it will create a *_i386.deb.

IIRC MX-15 64bit has multiarch support for i386 setup by default, so I think it should be able to install the i386 .deb package created by alien without any problems.
Thanks for the tip. I tried running the command with the architecture option, but I get the same output:

Code: Select all

alien --target=i386 labview85-rte-8.5-1.i386.rpm
Warning: Skipping conversion of scripts in package labview85-rte: postinst postrm prerm
Warning: Use the --scripts parameter to include the scripts.
labview85-rte-8.5-1.i386.rpm is for architecture i386 ; the package cannot be built on this system

Re: Install a 32 bit rpm package on MX 64 bit

Posted: Tue Jun 21, 2016 8:45 am
by richb
Alien itself sometimes does not work. Trying to change architecture adds another complication. It does not surprise me that it failed.

Re: Install a 32 bit rpm package on MX 64 bit

Posted: Tue Jun 21, 2016 9:00 am
by kmathern
radissthor wrote:...Thanks for the tip. I tried running the command with the architecture option, but I get the same output:

Code: Select all

alien --target=i386 labview85-rte-8.5-1.i386.rpm
Warning: Skipping conversion of scripts in package labview85-rte: postinst postrm prerm
Warning: Use the --scripts parameter to include the scripts.
labview85-rte-8.5-1.i386.rpm is for architecture i386 ; the package cannot be built on this system
Okay, I found a howto here: http://www.jianchen.info/blog/install-b ... ux-ubuntu/ where they get around the i386 issue by first converting the rpms to .tgz .
And then convert the .tgz files to .deb format.

Re: Install a 32 bit rpm package on MX 64 bit

Posted: Mon Jul 04, 2016 5:28 am
by radissthor
Sorry it took me long to reply. I have been trying this workaround,I succeeded in turning the rpm into tgz format, but I cannot seem to be able to run the alien command to turn the tgz into deb format. I get the following error:

Code: Select all

tar: /home/hlabbeg1/Labview: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
Unpacking of '/home/hlabbeg1/Labview Runtime/labview85-rte-8.5.tgz' failed:  at /usr/share/perl5/Alien/Package/Tgz.pm line 172, <FILELIST> line 99.
I looked for the error on the Internet, but I only got a forum in portuguese and even then then info was not very useful. Any ideas what might be preventing the conversion into .deb?

Thanks in advance

Re: Install a 32 bit rpm package on MX 64 bit

Posted: Mon Jul 04, 2016 7:42 am
by radissthor
UPDATE: I realized what was wrong when I noticed the first line says it cannot find the folder called Labview. The folder, however, was not called Labview, but Labview Runtime. I figured the space in between the words ight be causing the problem, so I changed the name of the folder to Labviw_Runtime. Now the conversion works. Thanks!

Re: Install a 32 bit rpm package on MX 64 bit

Posted: Wed Jul 06, 2016 11:47 am
by jdmeaux1952
Glad you were able to figure a solution. Thanks!

JD