Bug #34623 | Make file error | ||
---|---|---|---|
Submitted: | 17 Feb 2008 4:45 | Modified: | 31 Dec 2010 19:10 |
Reporter: | Foo Soon Loke | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: Packaging | Severity: | S3 (Non-critical) |
Version: | mysql-6.0.3-alpha,mysql-5.1.23-rc | OS: | Any (CentOS 6) |
Assigned to: | CPU Architecture: | Any |
[17 Feb 2008 4:45]
Foo Soon Loke
[17 Feb 2008 14:43]
Valeriy Kravchuk
Thank you for a problem report. Please, send the results of: echo $PATH find / -name "g++" -print 2>/dev/null rpm -q -a | grep "g++"
[18 Feb 2008 10:27]
Susanne Ebrecht
I think, g++ is just missing on your system. Please look, if g++ is installed. Here is the list, what you need to install for compiling MySQL: gcc, g++, autotools, autoconfig, automake, libtool, libncurses-dev, ncurses, bison Please let us know, if it just were a missing package.
[18 Mar 2008 0:02]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".
[20 Mar 2008 10:05]
Susanne Ebrecht
Foo Soon Loke, could you solve the problem? Can we close this bug report?
[20 Apr 2008 23:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".
[28 Dec 2008 10:50]
Bart Wenmeckers
I had the same problems but installing all the missing packages fixed most of the problems
[22 Jun 2010 8:59]
Kesavan Muthuvel
After compilation, I try to `make`. It fails with following message: ================================== ... Making all in mysys make[1]: Entering directory `/home/kesavan/mysql-5.5.4-m3/mysys' source='my_new.cc' object='my_new.o' libtool=no \ DEPDIR=.deps depmode=none /bin/sh ../depcomp \ g++ -DDEFAULT_BASEDIR=\"/usr/local\" -DMYSQL_DATADIR="\"/usr/local/var\"" -DDEFAULT_CHARSET_HOME="\"/usr/local\"" -DSHAREDIR="\"/usr/local/share/mysql\"" -DDEFAULT_HOME_ENV=MYSQL_HOME -DDEFAULT_GROUP_SUFFIX_ENV=MYSQL_GROUP_SUFFIX -DDEFAULT_SYSCONFDIR="\"/usr/local/etc\"" -DHAVE_CONFIG_H -I. -I../include -I../zlib -I../include -I../include -I. -O -fno-implicit-templates -fno-exceptions -fno-rtti -c -o my_new.o my_new.cc ../depcomp: line 571: exec: g++: not found make[1]: *** [my_new.o] Error 127 make[1]: Leaving directory `/home/kesavan/mysql-5.5.4-m3/mysys' make: *** [all-recursive] Error 1 ======================================== Data of my system ======================================== [root@Config2415VM0 mysql-5.5.4-m3]# echo $PATH /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/kesavan/bin [root@Config2415VM0 mysql-5.5.4-m3]# find / -name "g++" -print 2>/dev/null /usr/lib/perl5/5.8.5/i386-linux-thread-multi/g++ [root@Config2415VM0 mysql-5.5.4-m3]# rpm -q -a | grep "g++" [root@Config2415VM0 mysql-5.5.4-m3]# rpm -qa|grep -i gcc libgcc-3.4.6-3 gcc-3.4.6-3 [root@Config2415VM0 mysql-5.5.4-m3]# ======================================== Is anything missed? I hope g++ is synonym of gcc.Right?
[22 Jun 2010 10:36]
Kesavan Muthuvel
System with no g++ ================================ [root@badger kesavan]# g++ bash: g++: command not found This may be fixed by installing by the following command : `yum install g++` This actually installs ======================================= Installing: gcc-c++ Installing for dependencies: libstdc++-devel ======================================= ... Installed: gcc-c++.i386 0:3.4.6-3 Dependency Installed: libstdc++-devel.i386 0:3.4.6-3 Complete! [root@badger kesavan]# g++ g++: no input files ====================================== Finally g++ installed
[29 Dec 2010 1:09]
Mohinish Shaikh
I was able to fix it, obviously the system doesn't have certain packages which configure and make needs to compile. yum install gcc-c++ yum install ncurses-devel once necessary packages are installed do, make clean ./configure make make install
[31 Dec 2010 19:10]
Sveta Smirnova
Thank you fr the feedback. g++ is required for compiling MySQL from sources. Closing as "Not a Bug"