LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 03-27-2009, 02:11 PM   #1
reptiler
Member
 
Registered: Mar 2009
Location: Hong Kong
Distribution: Fedora
Posts: 184

Rep: Reputation: 41
Multi-Lib from Pure-64


Is it possible to create a multi-lib system from a pure-64 system?
Or do I need a multi-lib system to start with?

Or how about from a pure-32 system? Although I guess that should be harder than from pure-64, as the 64-bit stuff can't be run on that system.

I just tried welding stuff together by copying some essential stuff from the 32-bit version of my distro into the 64-bit version, and with a lot of tinkering I actually managed to get an executable, but then I got an error when I tried to actually execute it.

So, any advice would be good, especially if I need a multi-lib system to start with or not.
 
Old 03-27-2009, 02:34 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,570

Rep: Reputation: 510Reputation: 510Reputation: 510Reputation: 510Reputation: 510Reputation: 510
What are you trying to do?

Your distro should have 32-bit compatability libraries available for you to install.
 
Old 03-27-2009, 02:46 PM   #3
reptiler
Member
 
Registered: Mar 2009
Location: Hong Kong
Distribution: Fedora
Posts: 184

Original Poster
Rep: Reputation: 41
No, it doesn't.
I have two versions of my distro. One is 32-bit and the other is 64-bit. There is no multi-lib.
I have been thinking to add the possibility of a multi-lib install to the 64-bit version, but for that I guess I'll have quite a bit of work to do.

The whole thing is LFS-based, but with several adjustments here and there.
 
Old 03-27-2009, 02:54 PM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,570

Rep: Reputation: 510Reputation: 510Reputation: 510Reputation: 510Reputation: 510Reputation: 510
So you're not running Fedora? You need to say exactly what you're running, and what you're trying to do.
 
Old 03-27-2009, 03:03 PM   #5
reptiler
Member
 
Registered: Mar 2009
Location: Hong Kong
Distribution: Fedora
Posts: 184

Original Poster
Rep: Reputation: 41
Well, my PC and my notebook run Fedora. But I am working on my own distro based on LFS, called EasyLFS.
Thus far, as said, I have both a version for 32-bit and 64-bit, but would like to have multi-lib on the 64-bit version.
 
Old 03-27-2009, 03:37 PM   #6
johnsfine
Senior Member
 
Registered: Dec 2007
Distribution: Centos
Posts: 4,968

Rep: Reputation: 1074Reputation: 1074Reputation: 1074Reputation: 1074Reputation: 1074Reputation: 1074Reputation: 1074Reputation: 1074
I never tried LFS, but a quick google of Multilib and LFS leads to many pages that tend to focus you toward
http://trac.cross-lfs.org/

I'm sure you could follow the example of some other Multilib distribution and do it yourself, but since there is a guide for making your own from LFS, you ought to look at it.

There is a standard approach to x86_64 multilib in RedHat based distributions and a different basic approach in Debian based distributions. I don't know if there are third ways out there (the main RedHat vs. Debian difference in x86_64 multilib approach is pretty fundamentally a two way choice). So if you copy another distribution, be at least aware of which side of that divide you are sitting on.
 
Old 03-27-2009, 10:26 PM   #7
lumak
Member
 
Registered: Aug 2008
Location: Phoenix
Distribution: Arch
Posts: 799
Blog Entries: 32

Rep: Reputation: 109Reputation: 109
If you are making your own distro, unless you have wide distribution planned, it's seems better to just do everything in 64 bit. It may be better that if you have a select few programs that use 32 bit only (e.g. programs with assembly language) then you figure out how to run only those programs on your 64 bit platform. Multi Lib is nasty business especially for the end user that may want to compile software you don't offer.
 
Old 03-28-2009, 09:44 AM   #8
johnsfine
Senior Member
 
Registered: Dec 2007
Distribution: Centos
Posts: 4,968

Rep: Reputation: 1074Reputation: 1074Reputation: 1074Reputation: 1074Reputation: 1074Reputation: 1074Reputation: 1074Reputation: 1074
Quote:
Originally Posted by lumak View Post
Multi Lib is nasty business especially for the end user that may want to compile software you don't offer.
How so?

At home I use 64bit Mepis, which is based on Debian and does x86_64 multi lib the Debian way. I download source project and just use their ordinary build and install scripts, even projects that were not tested on any 64 bit or multi lib platform by their developers. That process acts exactly as it would in a pure 64bit distribution. Some projects just work. Some projects need minor edits to their build or source code because something is wrong with them in 64bit. None of those edits are required because Mepis is multi lib. All of those same edits would be required in a pure 64 bit distribution.

I also have downloaded and installed 32bit binary packages, which the Debian multi lib approach makes harder, but not too hard once you learn how.

I also have downloaded source and built 32 bit binaries. The Debian approach to multi lib makes that even harder. I wouldn't know how to do that for any complicated package.

At work I use both 32bit and 64bit Centos. But someone working for me does all the installation of packages. As I understand it, the RedHat approach to multi lib (compared to Debian), makes it easier to install 32bit binaries on a 64bit Centos, but makes it harder to build 64bit binaries from source.

The person installing packages for those systems usually gets lost installing pre built binaries even for 64bit packages, usually because we need the binaries from that program's own web site rather than the older version from Centos (so the dependencies get tricky). So he downloads almost all packages as source and builds 64bit binaries. He always needs to change the build or install scripting (makefiles or whatever other form it is in) to fit the Centos multi lib approach, but never has much trouble with those changes.

We haven't had any need for 32bit binaries on the 64bit Centos systems. When we do occasional testing of 32bit binaries on the 64bit Centos systems, we just network mount the directories from our 32bit Centos systems. But I think actually installing 32bit packages on 64bit Centos would be easier than on 64bit Mepis if we ever wanted to.
 
Old 03-29-2009, 11:41 PM   #9
reptiler
Member
 
Registered: Mar 2009
Location: Hong Kong
Distribution: Fedora
Posts: 184

Original Poster
Rep: Reputation: 41
I guess I'll have to dig deeper into CLFS to check out how it's been done.
Anybody here done a multi-lib CLFS?

One question remains, do I need a multi-lib system to build a multi-lib system or can I build one from a pure-64 system?

One reason why I'd like to have a multi-lib system is that I'd like to offer the same software to 32- and 64-bit users. Currently that's not possible as Grub doesn't want to compile on 64-bit.
 
Old 03-30-2009, 09:23 AM   #10
reptiler
Member
 
Registered: Mar 2009
Location: Hong Kong
Distribution: Fedora
Posts: 184

Original Poster
Rep: Reputation: 41
Okay, I'm trying it now.
I use my 64-bit LiveCD and will try to compile a multi-lib system roughly following the CLFS-instructions.
If that works I'll have to see how I can cut this down to integrate it into my system and the scripts that create it.
 
Old 04-01-2009, 11:01 PM   #11
reptiler
Member
 
Registered: Mar 2009
Location: Hong Kong
Distribution: Fedora
Posts: 184

Original Poster
Rep: Reputation: 41
Just to let you folks know, and if anybody ever is looking for it, here's the latest info.

As said I was, or actually still am, trying to build a multi-lib system.
I was unsure if this may be possible from a pure 64-bit system, but from what I can see so far it is, as I have just finished compiling GLibC for 32- and 64-bit.

So, things are progressing and I'll have to see where this takes me, and how I might be able to plug this into the current installation-process. But that's something for later on...
 
  


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 On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
pure-ftpd-mysql activates pure-ftpd zvikamer Linux - Software 2 03-01-2008 12:11 PM
No _sqlite3.so in /usr/lib/python2.5/lib-dynload rshepard Slackware 3 11-12-2007 02:59 PM
audacity unable to locate required lib files present in /usr/lib/ adityavpratap Slackware 4 11-30-2006 06:06 AM
LXer: Linux powers multi-protocol, multi-frequency wireless switch LXer Syndicated Linux News 0 11-03-2006 09:54 AM


All times are GMT -5. The time now is 07:33 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