LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   no acceptable C compiler found in $path (https://www.linuxquestions.org/questions/red-hat-31/no-acceptable-c-compiler-found-in-%24path-87779/)

scottown 08-31-2003 08:40 PM

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

fancypiper 08-31-2003 08:44 PM

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

scottown 08-31-2003 09:16 PM

No it appears not to be.

[root@localhost /]# gcc --version
bash: gcc: command not found
[root@localhost /]#

fancypiper 08-31-2003 09:26 PM

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

scottown 08-31-2003 09:48 PM

So True
 
Uh, Sometimes I tend to overthink things.

Now I feel like a supernewbie.

Thanks for pointing out my brain fart.

Thanks

lomza_t 10-28-2008 04:32 AM

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 !

pixellany 10-28-2008 04:47 AM

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.

lomza_t 11-16-2008 12:05 PM

OK, I re-installed gcc and...NOTHING! Exactly the same! Oh Gosh! I'll better die!

stuart_cherrington 11-17-2008 05:51 AM

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!!!

lomza_t 11-18-2008 01:02 PM

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


stuart_cherrington 11-19-2008 04:37 AM

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.

awtz 04-03-2013 07:34 PM

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]#

chrism01 04-09-2013 08:44 PM

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


All times are GMT -5. The time now is 12:27 PM.