How do I configure glibc in a separate build folder ?
Linux - NewbieThis 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
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.
How do I configure glibc in a separate build folder ?
This is what I got when I tried to configure. So, Wghat steps do I need to take in order to make this work? I guess I'm just not understanding how to do this.
GNU libc cannot be compiled in the source directory. You must build it
in a separate build directory. For example, if you have unpacked the
glibc sources in `/src/gnu/glibc-2.4', create a directory
`/src/gnu/glibc-build' to put the object files in. This allows
removing the whole build directory in case an error occurs, which is
the safest way to get a fresh start and should always be done.
From your object directory, run the shell script `configure' located
at the top level of the source tree. In the scenario above, you'd type
$ ../glibc-2.4/configure ARGS...
What do they mean by shell directory?
How do I proceed?
tar -zxvf glibsource.tar.gz
mkdir glibc-build -- This creates the directory where the compiled files end up.
cd glibc-build -- This is where you run your commands
../glibsource-dir/configure -- This puts all the make files, etc. in the glibc-build directory
Type make while you are still in the glibc-build directory
The command: ../glibsource-dir/configure that you gave me is not working. I've tried a few variations of this but it won't work. What am I doing wrong?
Did you by chance use '../glibsource-dir/configure' literally? glibsource-dir was just my generic reference to the glibc source directory you untarred previously.
The config command needs to be '../glibc-2.4'/configure' or whatever the directory of source code files is called. Sometimes I need to be more specific. Hope this is the solution. Let me know.
Hi, I borrow your thread a little. When I have made the glibc-build folder, doesn't I need to copy the configure file from the previous folder into it before I run the command? I get the message "-bash: ./configure: No such file or directory".
unless there is a VERY ( and i DO mean a VERY good reason ) you really do not want to build a second glib
you can BUT one normal everyday typo and you WILL kill your install .
you have been warned
it is not advisable
but if you must and have to ask - you probably should not
--prefix=/opt/glib.?.?.?
the .?.?.? replaced with the version number
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.