LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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-17-2008, 10:24 AM   #1
Zyndarius
Member
 
Registered: May 2008
Location: Chile - Viña del Mar
Distribution: Debian
Posts: 50

Rep: Reputation: 16
Can I install a package for x86 in amd64?


Hi there.

I am currently running debian lenny amd64 on my desktop, and I found a nice image manager I would like to try, but they only have it for x86 architecture, so my question is if I can install this x86 version in my amd64 architecture without problems or without generating conflicts.

Thanks in advance.

Last edited by Zyndarius; 12-17-2008 at 10:32 AM.
 
Old 12-17-2008, 03:25 PM   #2
serafean
Member
 
Registered: Mar 2006
Location: Czech Republic
Distribution: Gentoo, Chakra
Posts: 997
Blog Entries: 15

Rep: Reputation: 136Reputation: 136
Hi, sure you can install it, but you will have to install all libraries it depends on, also in 32bits. No conflicts should come from this.
 
Old 12-17-2008, 03:37 PM   #3
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Maybe serafean understands something I don't. But my experience is that it is not as simple as the above post makes it sound. It isn't terribly hard, but it is a bit tricky and may involve some tedious details.

See my recent post at
http://www.linuxquestions.org/questi...17#post3376217

So far as I understand, in Debian you can't use the ordinary process for installing packages either for the 32bit package you want or for its 32bit dependencies.

Some of the 32bit dependencies will be covered by packages specific to providing 32 bit support in a 64bit system. But it may not be obvious which dependencies are covered that way or by which packages.

When installing the package you want or any dependencies that you need from 32 bit packages, the only working method I've found is to open the .deb file as an archive and pull out files, manually substituting directory names (mainly changing /lib/ names to /lib32/).
 
Old 12-18-2008, 11:21 AM   #4
Zyndarius
Member
 
Registered: May 2008
Location: Chile - Viña del Mar
Distribution: Debian
Posts: 50

Original Poster
Rep: Reputation: 16
Alright, so it is not as easy as I thought. I will give it a try though =).
 
Old 12-18-2008, 01:22 PM   #5
serafean
Member
 
Registered: Mar 2006
Location: Czech Republic
Distribution: Gentoo, Chakra
Posts: 997
Blog Entries: 15

Rep: Reputation: 136Reputation: 136
Sorry if I mislead you, but under Gentoo portage handles all of this very well, and to compile an application in 32 bits, I just run "linux32 make" and point it to the location of 32bit libraries (done it once, maybe I just got lucky). Also, if I enable the "multilib" USE flag, I have both 64 and 32 bit libraries installed (of the packages supporting that flag).

Last edited by serafean; 12-18-2008 at 01:25 PM.
 
Old 12-19-2008, 12:45 PM   #6
Zyndarius
Member
 
Registered: May 2008
Location: Chile - Viña del Mar
Distribution: Debian
Posts: 50

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by serafean View Post
Sorry if I mislead you, but under Gentoo portage handles all of this very well, and to compile an application in 32 bits, I just run "linux32 make" and point it to the location of 32bit libraries (done it once, maybe I just got lucky). Also, if I enable the "multilib" USE flag, I have both 64 and 32 bit libraries installed (of the packages supporting that flag).
Very useful to know it. +1 to gentoo linux then :P I will have to find how to do it here in debian xD. I was searching within the directories and I found 3! lib directories.

/usr/share/lib
/usr/share/lib32
/usr/share/lib64

My confusion started when I found that lib and lib32, I understood that lib and lib32 here in my machine must to be only one lib corresponding to 32 bit apps, but it seems that I am mistaken.
 
Old 12-19-2008, 12:48 PM   #7
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
There shouldn't be any reason why this "is not as simple as it seems" to achieve.

From my experience, just putting the libs for the correct bitness on the correct place will make it work. That's basically what Gentoo does. However, to be able to compile 32 bits stuff on x86_64 is another story. Gentoo is good at this as someone else pointed out. The default profile includes multilib, this allows us to compile and run grub, wine and many other in x86_64 without any extra work.

The required 32 bits libraries are pushed into the system as dependencies if you try to emerge an x86-only package in x86_64. It's completely transparent to the user.
 
Old 12-19-2008, 08:18 PM   #8
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Quote:
Originally Posted by Zyndarius View Post
/usr/share/lib
/usr/share/lib32
/usr/share/lib64

My confusion started when I found that lib and lib32, I understood that lib and lib32 here in my machine must to be only one lib corresponding to 32 bit apps, but it seems that I am mistaken.
lib and lib64 should be the same directory in Debian (one or both is a symbolic link).

lib32 is where all the 32 bit .so files go.
 
  


Reply



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
state of x86-64 (ie., amd64) ? ashwin_cse Linux - General 4 04-06-2007 07:46 PM
Install x86 on to amd64 ? Because of Flash robertpolson Linux - Software 4 01-12-2007 11:18 AM
SuSE 10 x86 and AMD64 on Compaq R4000 has little problem. upsun SUSE / openSUSE 1 03-18-2006 06:49 AM
can amd64 + x86 coexist on the same set of partitions? arshadmomen Linux - Software 2 02-13-2005 09:46 AM
same installation CD of RedHat AS 3.0 for Intel x86 and AMD64? steven_leung Red Hat 1 01-08-2005 03:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:21 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
Open Source Consulting | Domain Registration