Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 07-31-2008, 03:05 AM   #1
LQ Newbie
Registered: Jul 2008
Posts: 2

Rep: Reputation: 0
Exclamation make: cc: Command not found

Checking for gcc...
Building static library libz.a version 1.2.3 with cc.
Checking for unistd.h... No.
Checking whether to use vs[n]printf() or s[n]printf()... using s[n]printf()
Checking for snprintf() in stdio.h... No.
WARNING: snprintf() not found, falling back to sprintf(). zlib
can build but will be open to possible buffer-overflow security
Checking for return value of sprintf()... No.
WARNING: apparently sprintf() does not return a value. zlib
can build but will be open to possible string-format security
Checking for errno.h... No.
Checking for mmap support... No.
[root@localhost zlib-1.2.3]# make
cc -O -DNO_snprintf -DHAS_sprintf_void -DNO_ERRNO_H -c -o example.o example.c
make: cc: Command not found
make: *** [example.o] Error 127

This is happening when i try to install tar xvfz zlib-1.2.3.tar.gz
Old 07-31-2008, 04:19 AM   #2
Senior Member
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
Looks like you need to install a compiler and other development tools.

Please put your distro in your profile (it will show in the panel on the left with each post, making it possible for people to give you direct advice without always asking the question...)

Which distro are you using?
Old 07-31-2008, 09:46 PM   #3
LQ Newbie
Registered: Jul 2008
Posts: 8

Rep: Reputation: 0
these rpms must be installed in order to install the C compiler and related
tools required for compling C source code.

1. gcc-3 2. dev86 3. cpp-
4. make- 5. binutils- 6. glibc-devel
7. ncurses- 8. ncurses-devel-
Old 07-31-2008, 09:59 PM   #4
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,406

Rep: Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396
He might not be using an rpm based system... Anyway I'd recommend using the relevant pkg mgr rather than manual install for stuff where possible.


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
make -o command not found JAKK Linux - General 4 02-03-2007 04:11 PM
Make command not found rc51geo Linux - Wireless Networking 1 08-09-2005 06:45 PM
'make' command not found X_ArchAngel Slackware 2 11-17-2004 03:03 AM
make - command not found LordFrancis Linux - Newbie 4 10-25-2004 10:57 AM
make: cc: command not found make: *** [gzip.o]error 127 zyjk Linux - Newbie 5 02-08-2002 09:58 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:40 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration