Operating System - Linux
1753259 Members
5633 Online
108792 Solutions
New Discussion юеВ

configure: error: no acceptable C compiler found in $PATH in MySQL 4.0

 
SOLVED
Go to solution
monu_1
Regular Advisor

configure: error: no acceptable C compiler found in $PATH in MySQL 4.0

Dear Mastero,

I want to install mysql-4.0.27.tar.gz on my fedora core 1.

But after when i buid configure as follow

./configure --prefix=/usr/local/mysql --enable-large-files --enable-shared=yes --with-readline

i get an error at the end

configure: error: no acceptable C compiler found in $PATH


I have also check above rpm as

rpm -qa | grep gcc* and it gives result as-

libgcc -3.3.2-1
libgcj-3.3.2-1
gconf-editor-2.4.0-1


but problem is still there(configure: error: no acceptable C compiler found in $PATH )

what should i do? is that my compiler is not supporting ?

Plz advice me soom i m waiting.

Thanks in Advance.

Manoj K Sharma


18 REPLIES 18
Wouter Jagers
Honored Contributor
Solution

Re: configure: error: no acceptable C compiler found in $PATH in MySQL 4.0

There doesn't seem to be a gcc compiler in your list. (libgcc = shared support library)

Try installing gcc-3.3.2-1.i386.rpm.

Cheers,
Wout
an engineer's aim in a discussion is not to persuade, but to clarify.
monu_1
Regular Advisor

Re: configure: error: no acceptable C compiler found in $PATH in MySQL 4.0

thanks,

But hoe to install above rpm plz suggest.
i haven't got actual location of abve rpm

Regards,
MKS
Wouter Jagers
Honored Contributor

Re: configure: error: no acceptable C compiler found in $PATH in MySQL 4.0

http://rpm.pbone.net is a nice site for searching RPMs :-)

Check this link:
http://rpm.pbone.net/index.php3?stat=26&dist=31&size=3719822&name=gcc-3.3.2-1.i386.rpm

Cheers,
Wout
an engineer's aim in a discussion is not to persuade, but to clarify.
monu_1
Regular Advisor

Re: configure: error: no acceptable C compiler found in $PATH in MySQL 4.0

Thanks,

I have installed gcc-3.4.6 in path /usr/local/gcc-3.4.6/gcc

but problem is still there.I m totally confused.
But i think there is problem of setting of environment path for gcc.if it is then how to do it.

Plz suggest if any other issues.

Regards,
MKS
Wouter Jagers
Honored Contributor

Re: configure: error: no acceptable C compiler found in $PATH in MySQL 4.0

The following command checks whether gcc is in your PATH:
# whereis gcc

Not there ? Try and add the location of your gcc to your PATH variable like this:
# export PATH=$PATH:/usr/local/gcc-3.4.6

Cheers,
Wout
an engineer's aim in a discussion is not to persuade, but to clarify.
monu_1
Regular Advisor

Re: configure: error: no acceptable C compiler found in $PATH in MySQL 4.0

but i have done as u said setting path

whereas whereis gcc response me
gcc:

and nothing

I want run gcc from my shell prompt but its still answering command not found.

is there configuration process for gcc compiler??

i wanna output from $ gcc -v but still sayning command not found.

Plz suggest how to configure gcc


regards
MKS

Wouter Jagers
Honored Contributor

Re: configure: error: no acceptable C compiler found in $PATH in MySQL 4.0

This command should show whether or not your gcc has been properly installed:
# rpm -qa | grep gcc

This one should tell you which files were installed by the package:
# rpm -ql

This one looks for a file named 'gcc' on your machine:
# find / -type f -name gcc -print

What do these teach us ?

Cheers,
Wout

(no need to keep assigning points, by the way. But who am I to complain :-))
an engineer's aim in a discussion is not to persuade, but to clarify.
monu_1
Regular Advisor

Re: configure: error: no acceptable C compiler found in $PATH in MySQL 4.0

Thanks Wout,

According to yr given command i got below

# rpm -qa | grep gcc
libgcc-3.3.2-1

# rpm -ql libgcc-3.3.2-1
/lib/libgcc_s-3.3.2-20031023.so.1
/lib/libgcc_s.so.1
/usr/sbin/libgcc_post_upgrade

# find / -type f -name gcc -print
nothing print

Sorry for delay.I was not able go further coz of eve

Plz suggest what to do next!!!!

Regards,
MKS
Wouter Jagers
Honored Contributor

Re: configure: error: no acceptable C compiler found in $PATH in MySQL 4.0

Looks like you still have only the libgcc -3.3.2-1 and not the gcc one..

Try getting the gcc-3.3.2-1.i386.rpm mentioned above and install it like this:

# rpm -Uvh gcc-3.3.2-1.i386.rpm

It should then tell you it's installed the rpm, and then the 'rpm -qa | grep gcc' should return both the libgcc and the gcc.

Try that.

Also, do you really need to compile mysql from scratch ? The binary distributions of mysql are quite good, I use one as well :-)

Cheers
Wout
an engineer's aim in a discussion is not to persuade, but to clarify.