LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 12:44 AM   #1
Unturned3
Member
 
Registered: Jan 2018
Posts: 39

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 04:25 AM.
 
Old 02-17-2018, 02:10 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,567
Blog Entries: 19

Rep: Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447
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, 02:46 AM   #3
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
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, 08:30 AM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,647
Blog Entries: 4

Rep: Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933
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, 09:14 AM   #5
Unturned3
Member
 
Registered: Jan 2018
Posts: 39

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, 10:42 AM   #6
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,567
Blog Entries: 19

Rep: Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447
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



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

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

All times are GMT -5. The time now is 08:56 AM.

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
Open Source Consulting | Domain Registration