LinuxQuestions.org
Visit Jeremy's Blog.
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 02-17-2018, 01:44 AM   #1
Unturned3
Member
 
Registered: Jan 2018
Posts: 35

Rep: Reputation: Disabled
How to install gcc and glibc?


Hello,
I am trying to install glibc and gcc onto my custom minimal Linux system (4.x kernel + busybox). Here's the problem that I ran into:

- installing glibc and gcc requires make to be installed
- but when I tried to install make, the installer script complained that no compiler is available on the current system in order to build make.
How can I install these onto my system? I am quite new to dealing with shared libraries, cross compiling, and these stuff.

Thanks in advance! Any help would be appreciated.
-- Richard

EDIT: I confused make with cmake xD

Last edited by Unturned3; 02-17-2018 at 05:25 AM.
 
Old 02-17-2018, 03:10 AM   #2
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware, OpenBSD
Posts: 3,945
Blog Entries: 11

Rep: Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176
You certainly do not need cmake to use make or to create gcc. However you do need gcc to create gcc! I assume you have a host system which you used to build your kernel and busybox. You need to use that host to build a set of compilation tools to go with them.

I suggest that you start by creating a vanilla Linux From Scratch, following the book exactly, to give you a grounding on how this kind of thing is done. Then you can try a more customised version, using busybox instead of bash+coreutils. I know that some LFS regulars do use busybox, so you ought to be able to find help on their mailing list.
 
1 members found this post helpful.
Old 02-17-2018, 03:46 AM   #3
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,511

Rep: Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006
Well, you need make to use cmake, not the other way around. Exact error messages might be nice. Compiling gcc and glibc from source shouldn't involve cmake at all. How are you installing these packages?
 
Old 02-18-2018, 09:30 AM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,078
Blog Entries: 4

Rep: Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179
The Linux-From-Scratch instructions show you exactly how to do this, and they're one of the few who do.

Since the process "from scratch" is quite time-consuming, if you simply want a newer version and can get it from a pre-built package, by all means do so. glibc is very fundamental to the operation of the entire system: "hose that, and you'll be hosed for a good long while."
 
1 members found this post helpful.
Old 02-19-2018, 10:14 AM   #5
Unturned3
Member
 
Registered: Jan 2018
Posts: 35

Original Poster
Rep: Reputation: Disabled
Sorry I confused "cmake" with "make"
Yes I definitely should look into Linux From Scratch in detail, especially the bit about compiling things from scratch and the libc part.
Just wondering, is there a precompiled gcc package available for x86_64 somewhere?

Thanks for helping guys!
 
Old 02-19-2018, 11:42 AM   #6
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware, OpenBSD
Posts: 3,945
Blog Entries: 11

Rep: Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176
Quote:
Originally Posted by Unturned3 View Post
Sorry I confused "cmake" with "make"
Yes I definitely should look into Linux From Scratch in detail, especially the bit about compiling things from scratch and the libc part.
Just wondering, is there a precompiled gcc package available for x86_64 somewhere?
Lots and lots of them! The problem is that they all belong to various distros and the build has been carefully crafted to run in that environment. gcc is one of the most configurable programs in the whole of Linux.
 
  


Reply

Tags
gcc, glibc, linux, make, minimal


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
[SOLVED] To install gcc, glibc, gvim... abhishekgit Linux - Newbie 4 02-03-2012 11:21 AM
how can i install gcc glibc etc. amolgupta Linux - Software 1 05-29-2005 03:19 AM
install GCC and glibc trelos Linux - Newbie 1 01-16-2005 05:27 AM
gcc wont install, 'failed dependencies: glibc-devel is needed by gcc-3.3.3-41' TdlSnare SUSE / openSUSE 3 11-29-2004 03:13 PM
Newer version of glibc means i cant install gcc coop Red Hat 0 09-21-2003 02:40 AM

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

All times are GMT -5. The time now is 10:57 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration