LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 01-29-2005, 09:00 PM   #1
AL MOSLEM
LQ Newbie
 
Registered: Jan 2005
Location: Cairo - Egypt
Distribution: Fedora Core 3
Posts: 22

Rep: Reputation: 15
no acceptable C compiler found in $PATH


hi

i download (( Web Downloader for X )) but when i write ./configure i have this problem


Quote:
D4X -- Web Downloader for X (2.5.0rc1)

------------------------------------------------------------------------------
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 gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
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.
I have mandrake 10.1 official ( 3 CD's )

and this problem in other programmes
ex: mozilla firefox

what i can do?
 
Old 01-29-2005, 09:45 PM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 66
You need to get the gcc package for Mandrake and install it. You don't have your developer tools installed.
 
Old 01-30-2005, 11:58 AM   #3
AL MOSLEM
LQ Newbie
 
Registered: Jan 2005
Location: Cairo - Egypt
Distribution: Fedora Core 3
Posts: 22

Original Poster
Rep: Reputation: 15
hi

thanks

i download the file gcc-3.4.3.tar.bz2

but when i setup this file and when i write ./configure i have:


Quote:
[root@shrook2005 gcc-3.4.3]# ./configure
creating cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
./configure: line 2332: cc: command not found
*** The command 'cc -o conftest -g conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
[root@shrook2005 gcc-3.4.3]# make
make: *** No targets specified and no makefile found. Stop.
[root@shrook2005 gcc-3.4.3]# make install
make: *** No rule to make target `install'. Stop.
what can i do, please?
 
Old 01-30-2005, 12:05 PM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,088

Rep: Reputation: 299Reputation: 299Reputation: 299
You need to install gcc from the RPMs that came with Mandrake, as you need a C compiler to compile gcc from source. Therefore, the only way to install it on a system with no C compiler is to use a binary package (in this case a RPM).
 
Old 01-30-2005, 12:17 PM   #5
AL MOSLEM
LQ Newbie
 
Registered: Jan 2005
Location: Cairo - Egypt
Distribution: Fedora Core 3
Posts: 22

Original Poster
Rep: Reputation: 15
thank you for your answer

but i want more explain
 
Old 01-30-2005, 01:07 PM   #6
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Mandrake has a good package management program calle urpmi, this makes it easier to install packages from your installation CD roms or from the internet. To find out more about urpmi, go to zebulon.org.uk and easyurpmi. Once configured, you would then install gcc, by doing

#urpmi gcc
 
Old 01-30-2005, 07:43 PM   #7
AL MOSLEM
LQ Newbie
 
Registered: Jan 2005
Location: Cairo - Egypt
Distribution: Fedora Core 3
Posts: 22

Original Poster
Rep: Reputation: 15
Thanks to every body

i installed gcc by rpmdrake

but thire is anoter problem
when i write ./configure i have



Quote:
------------------------------------------------------------------------------

D4X -- Web Downloader for X (2.5.0rc1)

------------------------------------------------------------------------------
checking build system type... i686-redhat-linux-gnu
checking host system type... i686-redhat-linux-gnu
checking target system type... i686-redhat-linux-gnu
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 for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output... 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 ANSI C... none needed
checking dependency style of gcc... gcc3
checking whether struct tm is in sys/time.h or time.h... time.h
checking for struct tm.tm_zone... 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++... gcc3
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking for gawk... (cached) gawk
checking for ranlib... ranlib
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for strerror in -lcposix... no
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
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 for off_t... yes
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking whether we are using the GNU C Library 2.1 or newer... yes
checking whether integer division by zero raises SIGFPE... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unsigned long long... yes
checking for inttypes.h... yes
checking whether the inttypes.h PRIxNN macros are broken... no
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking argz.h usability... yes
checking argz.h presence... yes
checking for argz.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking nl_types.h usability... yes
checking nl_types.h presence... yes
checking for nl_types.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) 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 for feof_unlocked... yes
checking for fgets_unlocked... yes
checking for getc_unlocked... yes
checking for getcwd... yes
checking for getegid... yes
checking for geteuid... yes
checking for getgid... yes
checking for getuid... yes
checking for mempcpy... yes
checking for munmap... yes
checking for putenv... yes
checking for setenv... yes
checking for setlocale... yes
checking for stpcpy... yes
checking for strcasecmp... yes
checking for strdup... yes
checking for strtoul... yes
checking for tsearch... yes
checking for __argz_count... yes
checking for __argz_stringify... yes
checking for __argz_next... yes
checking for iconv... yes
checking for iconv declaration...
extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for nl_langinfo and CODESET... yes
checking for LC_MESSAGES... yes
checking for bison... no
checking whether NLS is requested... yes
checking whether included gettext is requested... no
checking for GNU gettext in libc... yes
checking for autogen... ${SHELL} /home/abu_bakr/d4x-2.5.0rc1/admin/missing --run autogen
checking for doxygen... ${SHELL} /home/abu_bakr/d4x-2.5.0rc1/admin/missing --run doxygen
checking for rpm... /bin/rpm
checking for dot... no
checking whether ln -s works... yes
checking for esd-config... no
checking for ESD - version >= 0.2.7... no
*** The esd-config script installed by ESD could not be found
*** If ESD was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the ESD_CONFIG environment variable to the
*** full path to esd-config.
checking for pkg-config... /usr/bin/pkg-config
checking for GLIB - version >= 2.0.6... no
*** Could not run GLIB test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GLIB is incorrectly installed.
configure: error: *** GLIB >= 2.0.6 not installed! ***
i installed glib by rpmdrake but i can't do anyting with this massege

Last edited by AL MOSLEM; 01-30-2005 at 07:45 PM.
 
Old 01-31-2005, 02:33 AM   #8
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Look at the error message, it says glib 2.0.6 is not installed, so you need to make sure you install a version of glib2 thats equal to the one required or newer. Also if you have glib2 installed but not glib2-devel you can get the same error.

Last edited by reddazz; 01-31-2005 at 02:36 AM.
 
Old 01-31-2005, 06:49 AM   #9
AL MOSLEM
LQ Newbie
 
Registered: Jan 2005
Location: Cairo - Egypt
Distribution: Fedora Core 3
Posts: 22

Original Poster
Rep: Reputation: 15
i installed glib-2.6.0.tar.gz but i have nothing

the same massege
 
Old 01-31-2005, 09:46 AM   #10
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
I guess you didn't get what I said, Mandrake has it's own version of glib, thats probably installed on your system. What you need to do is use rpmdrake or urpmi, to find out what version it is and install the devel package. Also Mandrake puts it's glib in /usr and not /usr/local, the default when you compile your own software, so you configure glib with a prefix of /usr. Also, if you insist on compiling your own version, always get the latest version, which I think is 2.6.1 at the moment.
 
Old 01-31-2005, 06:00 PM   #11
AL MOSLEM
LQ Newbie
 
Registered: Jan 2005
Location: Cairo - Egypt
Distribution: Fedora Core 3
Posts: 22

Original Poster
Rep: Reputation: 15
reddazz
Thank you very much
but i'm sorry i did everything in your reply
but i have the same error

please

if this problem in your system, what you will do?

please write in easy points

and i'm very sorry again

Last edited by AL MOSLEM; 01-31-2005 at 06:01 PM.
 
Old 02-01-2005, 12:20 PM   #12
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
How exactly did you install glib and in what prefix?
 
Old 02-01-2005, 12:43 PM   #13
AL MOSLEM
LQ Newbie
 
Registered: Jan 2005
Location: Cairo - Egypt
Distribution: Fedora Core 3
Posts: 22

Original Poster
Rep: Reputation: 15
i download glib-2.6.1.tar.bz2 and install it by:
su
tar jxvf glib-2.6.1.tar.bz2
cd glib-2.6.1
./configure
make
make install
 
Old 02-01-2005, 03:46 PM   #14
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Do me a favour, can you reduce the font size in your signature, it's too distracting. Anyway if you just do
$./configure
the files get installed in /usr/local so your system may not recognise your installation. What you need to do is go back in to your glib-2.6.1 directory and
#make uninstall
$make clean

once thats done, do
$./configure --prefix=/usr
$make
#make install

then do
#ldconfig

You may need to install/upgrade pango and atk before upgrading glib and gtk.
 
Old 02-02-2005, 09:32 AM   #15
AL MOSLEM
LQ Newbie
 
Registered: Jan 2005
Location: Cairo - Egypt
Distribution: Fedora Core 3
Posts: 22

Original Poster
Rep: Reputation: 15
install pango and atk by

Quote:
$./configure --prefix=/usr
$make
#make install

then do
#ldconfig
???????????????????????
 
  


Reply


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
no acceptable C compiler found in $path scottown Red Hat 12 04-09-2013 08:44 PM
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/Novell 12 07-13-2005 03:41 PM
no acceptable C compiler found in $PATH skrothuset Linux - Newbie 4 06-13-2003 06:11 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration