LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 08-31-2003, 08:40 PM   #1
scottown
LQ Newbie
 
Registered: Aug 2003
Location: Southern California
Distribution: Red Hat 9
Posts: 11

Rep: Reputation: 0
no acceptable C compiler found in $path


Whenever I try to configure a program after untarring it I receive this error.

[root@localhost mc-4.6.0]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for style of include used by make... GNU
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.

How do I get the C compiler into $PATH

I am using RH9

Last edited by scottown; 08-31-2003 at 08:44 PM.
 
Old 08-31-2003, 08:44 PM   #2
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
Is it installed?

gcc --version

# Red Hat links
Red Hat Linux Manuals
Get your mp3 support here
Maximum RPM
rpmfind
Easier software management: apt4rpm - Red Carpet
Red Hat 8.0 Tips & Tricks

# Red Hat 7.3 down configuration commands
setup leads to several configuration tools

# Red Hat 7.3 up configuration commands
Configure soundcard:
redhat-config-soundcard
Configure X server:
redhat-config-xfree86
Configure network:
redhat-config-network
Manage software:
redhat-config-packages

# Handling NTFS
New Technology FileSystem (NTFS) HOWTOs
Linux NTFS project
 
Old 08-31-2003, 09:16 PM   #3
scottown
LQ Newbie
 
Registered: Aug 2003
Location: Southern California
Distribution: Red Hat 9
Posts: 11

Original Poster
Rep: Reputation: 0
No it appears not to be.

[root@localhost /]# gcc --version
bash: gcc: command not found
[root@localhost /]#
 
Old 08-31-2003, 09:26 PM   #4
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
You can"t use something unless you install it, I presume you know.

Chapter 33. Package Management Tool

# Guides to software management
LNAG - How do I install a program I downloaded from the Internet?
Rute Guide's software explanation
You might want to check out CheckInstall to manage source code installations/uninstallation
 
Old 08-31-2003, 09:48 PM   #5
scottown
LQ Newbie
 
Registered: Aug 2003
Location: Southern California
Distribution: Red Hat 9
Posts: 11

Original Poster
Rep: Reputation: 0
So True

Uh, Sometimes I tend to overthink things.

Now I feel like a supernewbie.

Thanks for pointing out my brain fart.

Thanks
 
Old 10-28-2008, 04:32 AM   #6
lomza_t
LQ Newbie
 
Registered: Oct 2008
Location: Ukraine, Zhovkva
Posts: 6

Rep: Reputation: 0
I had the same problem, but I installed gcc (though it was without Internet and some problems with fiding files on disk were occurred)...Now it writes
Code:
linux-xraq:/home/lomza_t/bin/libdvdcss-1.2.10 #
 ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... none
checking dependency style of gcc... none
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for a sed that does not truncate output... /usr/bin/sed
checking for ld used by gcc... /usr/i586-suse-linux/bin/ld
checking if the linker (/usr/i586-suse-linux/bin/ld) is GNU ld... yes
checking for /usr/i586-suse-linux/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... none
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... gfortran
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether gfortran accepts -g... yes
checking the maximum length of command line arguments... 1572864
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/i586-suse-linux/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/i586-suse-linux/bin/ld
checking if the linker (/usr/i586-suse-linux/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/i586-suse-linux/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/i586-suse-linux/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
(cached) (cached) checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for gfortran option to produce PIC... -fPIC
checking if gfortran PIC flag -fPIC works... yes
checking if gfortran static flag -static works... yes
checking if gfortran supports -c -o file.o... yes
checking whether the gfortran linker (/usr/i586-suse-linux/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
(cached) (cached) checking how to hardcode library paths into programs... immediate
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for size_t... yes
checking for unistd.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking windows.h usability... no
checking windows.h presence... no
checking for windows.h... no
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/cdio.h usability... no
checking sys/cdio.h presence... no
checking for sys/cdio.h... no
checking sys/dvdio.h usability... no
checking sys/dvdio.h presence... no
checking for sys/dvdio.h... no
checking linux/cdrom.h usability... yes
checking linux/cdrom.h presence... yes
checking for linux/cdrom.h... yes
checking dvd.h usability... no
checking dvd.h presence... no
checking for dvd.h... no
checking /sys/dev/scsi/scsi_ioctl.h usability... no
checking /sys/dev/scsi/scsi_ioctl.h presence... no
checking for /sys/dev/scsi/scsi_ioctl.h... no
checking sys/scsi/scsi_types.h usability... no
checking sys/scsi/scsi_types.h presence... no
checking for sys/scsi/scsi_types.h... no
checking sys/scsi.h usability... no
checking sys/scsi.h presence... no
checking for sys/scsi.h... no
checking IOKit/storage/IODVDMediaBSDClient.h usability... no
checking IOKit/storage/IODVDMediaBSDClient.h presence... no
checking for IOKit/storage/IODVDMediaBSDClient.h... no
checking if $CC accepts -Wall... yes
checking if $CC accepts -Wsign-compare... yes
checking for doxygen... no
checking for latex... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating src/Makefile
config.status: creating src/dvdcss/Makefile
config.status: creating test/Makefile
config.status: creating src/libdvdcss.pc
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
linux-xraq:/home/lomza_t/bin/libdvdcss-1.2.10 # make
bash: make: command not found
after entering ./configure
What does it mean and what should I do? Pleace, help me !
 
Old 10-28-2008, 04:47 AM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
On the surface of it, it means that make is not installed. Since you say that there were issues installing gcc, the first thing to try would be re-installing gcc.
 
Old 11-16-2008, 12:05 PM   #8
lomza_t
LQ Newbie
 
Registered: Oct 2008
Location: Ukraine, Zhovkva
Posts: 6

Rep: Reputation: 0
OK, I re-installed gcc and...NOTHING! Exactly the same! Oh Gosh! I'll better die!
 
Old 11-17-2008, 05:51 AM   #9
stuart_cherrington
Member
 
Registered: Aug 2008
Location: Get back in your Cube Unix Boy!
Distribution: rh5, oel5, debian etch, solaris
Posts: 228

Rep: Reputation: 36
So, is the command 'make' in your $PATH?? if you run 'which make' does it display the full path of the make command? If not, you'll need to find the command (look in /usr/bin or /bin) or use 'locate make' (if locate is installed) and add this directory to your PATH shell variable.

Stuart.

On a seperate note, you would have been better off starting a new thread as the one you just updated is 5 years old!!!
 
Old 11-18-2008, 01:02 PM   #10
lomza_t
LQ Newbie
 
Registered: Oct 2008
Location: Ukraine, Zhovkva
Posts: 6

Rep: Reputation: 0
Results:
Code:
lomza_t@linux-xraq:~> $PATH
bash: /usr/bin:/home/lomza_t/bin:/usr/local/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/opt/kde3/bin:/opt/cross/bin:/usr/lib/jvm/jre/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin: No such file or directory
lomza_t@linux-xraq:~> which make
which: no make in (/usr/bin:/home/lomza_t/bin:/usr/local/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/opt/kde3/bin:/opt/cross/bin:/usr/lib/jvm/jre/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin)
What about "usr/bin"...This is a fragment:
Code:
lzless                           xpsimplehelloworld
lzma                             xpxthelloworld
lzmadec                          xrandr
lzmainfo                         xrdb
lzmore                           xrefresh
m2300w                           xrx
m2300w-wrapper                   xset
m2400w                           xsetmode
mac2unix                         xsetpointer
macptopbm                        xsetroot
Mail                             xsetwacom
mail                             xsltproc
mail-files                       xsm
mailq                            xstdcmap
mailserver                       xstroke
mailshar                         xsubpp
mailstat                         xterm
mailto                           xtermset
mailto-hebrew                    xtp
mailx                            xtrace
makedeltaiso                     xtrapchar
makedeltarpm                     xtrapin
makedepend                       xtrapinfo
makeg                            xtrapout
makekdewidgets                   xtrapproto
make_method                      xtrapreset
makestrs                         xtrapstats
man                              xulrunner
mandb                            xvid4conf
manpath                          xvidenc
matteblend.flt                   xvidtune
mbchk                            xvinfo
mcookie                          xvkbd
md5sum                           xvminitoppm
mdatopbm                         Xvnc
mdiff                            xwd
mencoder                         xwdiff
mencvcd                          xwdtopnm
mergelib                         xwininfo
merge-pciids                     xwud
merge-pciids.pl                  xxd
mergesolv                        y4mblack
mesg                             y4mcolorbars
metamail                         y4mdenoise
metasend                         y4mhist
mev                              y4minterlace
mgrep                            y4mivtc
mgrtopbm                         y4mshift
mimebzip                         y4mspatialfilter
mimecheck                        y4mstabilizer
mimegzip                         y4mtopnm
mime-info-to-mime                y4mtoppm
mimeit                           y4mtoqt
mimencode                        y4mtoyuv
mimezip                          y4munsharp
min12xxw                         yauap
mjpeg_simd_helper                ybmtopbm
mkafmmap                         ycpc
mkdfiff                          yes
mkdgiff                          ypcat
mkdirhier                        ypchfn
mkfifo                           ypchsh
mkfontdir                        ypipe
mkfontscale                      ypmatch
mkhtmlindex                      yppasswd
mkinfodir                        ypwhich
mkisofs                          yuv2lav
mkzftree                         yuv4mpeg
mkzimage_cmdline                 yuvcorrect
mmencode                         yuvcorrect_tune
mmroff                           yuvdeinterlace
mode2                            yuvdenoise
mogrify                          yuvfps
montage                          yuvinactive
mouse-test                       yuvkineco
mplayer                          yuvmedianfilter
mplex                            yuvplay
mppdec                           yuvscaler
mpt-status                       yuvsplittoppm
mrftopbm                         yuvtoppm
msgfmt                           yuvycsnoise
mt                               yuyvtoy4m
mtrace                           zcat
mtvtoppm                         zcmp
multiblend.flt                   zdiff
munch                            zegrep
munchlist                        zeisstopnm
namei                            zfgrep
neotoppm                         zforce
nepomuk-rcgen                    zgrep
neqn                             zip
netcat                           zipcloak
 
Old 11-19-2008, 04:37 AM   #11
stuart_cherrington
Member
 
Registered: Aug 2008
Location: Get back in your Cube Unix Boy!
Distribution: rh5, oel5, debian etch, solaris
Posts: 228

Rep: Reputation: 36
OK I assumed too much.

Is the 'make' package installed, as said previous, if itsnot installed you can't use it.

check with 'rpm -qi make' if its not, then install it.
 
Old 04-03-2013, 07:34 PM   #12
awtz
LQ Newbie
 
Registered: Apr 2013
Location: Manila
Posts: 23

Rep: Reputation: Disabled
Assistance Needed

Please assist. I am new in linux and tried to Install ImageMagick but found following errors (below).

[root@ACSS-SDDBEASRV02 /]# cd usr/local/bin/
[root@ACSS-SDDBEASRV02 bin]# cd ImageMagick-6.6.9-9
[root@ACSS-SDDBEASRV02 ImageMagick-6.6.9-9]# ./configure
configuring ImageMagick 6.6.9-9
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking whether build environment is sane... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/usr/local/bin/ImageMagick-6.6.9-9':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details

[root@ACSS-SDDBEASRV02 ImageMagick-6.6.9-9]#
[root@ACSS-SDDBEASRV02 ImageMagick-6.6.9-9]# gcc --version
-bash: gcc: command not found

[root@ACSS-SDDBEASRV02 ImageMagick-6.6.9-9]#

Last edited by awtz; 04-03-2013 at 07:36 PM.
 
Old 04-09-2013, 08:44 PM   #13
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,362

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
1. this is 5 yrs old. Ask the mods to move this to a new thread for you via the Report button.

2. we'd need to know what distro and version you've got
Code:
cat /etc/*release*
uname -a
3. in any case, as it says, you've not installed the dev tools, inc the gcc compiler.
Do that before you try building stuff
 
  


Reply



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
no acceptable C compiler found in $PATH sinXposed Linux - Software 4 08-10-2006 02:14 PM
no acceptable C compiler found in $PATH rhraz Mandriva 9 08-01-2006 07:03 PM
no acceptable C compiler found in $PATH agentdunken SUSE / openSUSE 12 07-13-2005 03:41 PM
no acceptable C compiler found in $PATH AL MOSLEM Programming 19 02-08-2005 10:03 AM
no acceptable C compiler found in $PATH skrothuset Linux - Newbie 4 06-13-2003 06:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 06:26 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
Open Source Consulting | Domain Registration