LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices

Reply
 
Search this Thread
Old 08-05-2009, 11:13 AM   #1
ProtoformX
Member
 
Registered: Feb 2004
Location: Canada
Distribution: LFS SVN
Posts: 334

Rep: Reputation: 33
Question about multilib


I am curious yet confused, what and what does not need to be compile for multilib on a system that wishes to sport 64 and 32bit binarys?

Does the system really have 2 versions of every package? or just a 64 version of the binary and 32bit version of the libs?
 
Old 08-05-2009, 07:37 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,712
Blog Entries: 1

Rep: Reputation: 221Reputation: 221Reputation: 221
Take a look at the CLFS instructions --> http://trac.cross-lfs.org/ and the CBLFS instructions --> http://cblfs.cross-lfs.org/index.php/Main_Page

No you don't need two versions of every package. You only need 32-bit versions of those packages that you need 32-bit support. For example, if you want to use Acrobat Reader, which is only available 32-bit, then you'll need 32-bit gtk+. Since you also probably want to use other 64-bit apps that use gtk+, you will also need 64-bit gtk+. On the other hand, you might want to monitor the sensors on your mobo. In this case, you only need the 64-bit version of lm_sensors.
 
Old 08-06-2009, 12:36 AM   #3
ProtoformX
Member
 
Registered: Feb 2004
Location: Canada
Distribution: LFS SVN
Posts: 334

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by weibullguy View Post
Take a look at the CLFS instructions --> http://trac.cross-lfs.org/ and the CBLFS instructions --> http://cblfs.cross-lfs.org/index.php/Main_Page

No you don't need two versions of every package. You only need 32-bit versions of those packages that you need 32-bit support. For example, if you want to use Acrobat Reader, which is only available 32-bit, then you'll need 32-bit gtk+. Since you also probably want to use other 64-bit apps that use gtk+, you will also need 64-bit gtk+. On the other hand, you might want to monitor the sensors on your mobo. In this case, you only need the 64-bit version of lm_sensors.
I have already looked at those (thanks btw) so 32bit apps can't talk to 64bit apps I am guessing, okay wait then, I have another question, if this is essentially a 64bit with 32bit support then why have lib the 64 bit lib dir and lib32 the 32bit lib dir, the way it is done in the book looks like 32bit is still the primary and 64bit looks like it's been tacked on
 
Old 08-06-2009, 04:02 AM   #4
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,712
Blog Entries: 1

Rep: Reputation: 221Reputation: 221Reputation: 221
The FHS requires 32-bit libraries be installed in lib and 64-bit libraries be installed in lib64 on x86_64 machines. Even if you never install or plan to install a 32-bit library, the 64-bit libraries go in lib64. For the CLFS x86_64 multilib instructions the book is FHS compliant. For the "pure" 64-bit x86_64, the CLFS book is not.
 
  


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
Multilib Firefox odd behaviour potuz Linux - Software 0 07-15-2009 07:18 PM
CLFS SVN-20080921-x86_64-Multilib Part 10 binutils chokes on install ChrisMP1 Linux From Scratch 0 09-23-2008 08:11 PM
Multilib - impacts? cs-cam Linux - General 0 08-06-2006 10:55 PM
Questions about and errors found in Version 7.0-cross-lfs-20050902-x86_64-Multilib Basel Linux From Scratch 1 09-06-2005 11:10 PM
FC3, 64-bit multilib, with many yum update conflicts sgl Fedora 2 06-04-2005 09:42 PM


All times are GMT -5. The time now is 06:05 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration