SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
The instructions seem relatively simple but there is one thing I'm not getting. It wants to me compile a couple programs statically. Will this over ride the previous installations? If it doesn't how do I know which version I'm using?
There is an error on the site, the I should be a j ...
The glibc compilation is for advanced users, you know.
I would even say that if you success to compile and install
glibc from scratch like this, you are not too far from create
your own Linux distribution
If you want to compile and install successfully glibc in Slackware,
I recommend to take the slackbuild script for glibc and gcc in any
Slackware source mirror and study it deeply.
Originally posted by yougene So after figuring out Kernel compiling and backing up, I've decided to move on to something a little more complicated and risky.
Why do you need to do this?
A Glibc upgrade isn't something I would do. Even after 7 years of using Linux.
Why not? I hear you ask...
Well, here's my reasoning:
1. There's a lot more to it than you'd believe.
2. There's every possibility that I'd be no better off than I am now.
3. Pat does a brilliant job in packaging glibc and all its associated components - don't forget that its the environment he uses to compile Slackware.
4. I've NEVER had any glibc related problems compiling software under Slackware, and I've been using Slack since version 7.0.
5. The version of glibc shipped with Slackware 10.2 has the NPTL enabled if you use it with a 2.6 kernel. Pat put a lot of work into making it easy to switch between 2.4 and 2.6 without losing any of that functionality. I don't know if I'd be able to replicate that.
6. There are a million other things one can do to improve the funtionality of a Slack box. Work on one of those instead.
Don't get me wrong, your system is your to do with as you see fit, but I don't believe that this exercise will help a self-confessed learn about Linux. If anything, it'll send you crying and screaming back to M$ a broken shell of your former self.
Hehe, well the reason I want to learn how to do this is because I've run into a couple programs in the past that required that some particular version of Glibc(sorry I can't remember which ones) be installed so it seemed like a useful thing to know how to do.
I was under the impression that building Glibc maybe an intermediate level activity. You learn something new everyday.
Looks like it's about time for me to give LFS a go.
Originally posted by yougene I've run into a couple programs in the past that required that some particular version of Glibc(sorry I can't remember which ones) be installed so it seemed like a useful thing to know how to do.
Well in 7 years, I've yet to see one. Anyhow, what would stop you from downloading source code and compiling a custom binary of the program in question for your system?
Swapping between glibc versions is not something that should be done where stability is a requirement.
You don't know how to compile software, but you want to re-compile glibc???
[Foghorn]You've got to learn to crawl before you can walk, son.[/Foghorn]
I don't mean to sound patronising, but you're trying to bite off more than you can chew.
While LFS may sound attractive, I can think of nothing more boring than watching weeks of source code being compiled for practically no benefit over the pre-compiled packages that come with Slackware. That said, LFS would be a good way of learning Linux. Just make sure you read the documentation thoroughly. This isn't Windows. Things won't "just work" without some personal investment on your part.
In my opinion, you should stick with Slackware, leave glibc alone and learn how to compile the stuff you need rather than trying to change the system to suit some binaries. Heck, you might even be able to find pre-compiled Slackware packages of the software you need at linuxpackages.net or elsewhere on the internet.
I'm vaguely considering doing the same thing as you yougene. A good source is probably the lfs book, just for some background, and also the site you refered to above. Plus gnu.org.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.