Re: Confused with GCC
# find /usr -name gcc /usr/local/bin/gcc # echo $PATH /sbin:/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/bin/X11:/usr/local:/usr/local/bin It seems to find gcc for the CC compiler though, and that part of the configure works. "Matthew P. Marino" wrote: > OK. Much better. The configure can't find gcc. If it is installed, find it with > "find /usr -name gcc -print". This will tell you where gcc is installed, > something like /usr/local/bin or /usr/ccs/bin. If you find "gcc" it is probably > not in your search list. Meaning, the path to the directory that contains gcc > isn't in the $PATH environment variable. Check it by entering "echo $PATH". So, > let's say that it's in /usr/local/bin and your $PATH variable doen't contain > that path. type in something like; > > PATH=$PATH:/usr/local/bin > export PATH > > Now; "echo $PATH" to make sure it worked. That should help. > > !! I strongly suggest you use gnu "make" and use the "--with-low-memory" > option. I have a sun UltraSparcII with dual CPU's and 512MB RAM that still > couldn't manage to compile the sql_yacc.cc > > Good luck!! > > Terry Babbey wrote: > > > > Here is my configure statement and the generated error message ( I am using > > GCC2.95.2): > > > > CC="gcc" CXX="gcc" ./configure --prefix=/usr/local/mysql > > > > checking whether the C++ compiler (gcc ) works... no > > configure: error: installation or configuration problem: C++ compiler cannot cre > > ate executables. > > > > "Matthew P. Marino" wrote: > > > > > We really need to know what the error message text is. Could be anything from > > > a.) you don't actualy have gcc loaded" to z.) sql_yacc.cc which hardly ever > > > compiles right and has nothing to do with gcc. > > > > > > Terry Babbey wrote: > > > > > > > > I notice some of you compile with gcc as you C-compiler (CC) and > > > > C++-compiler (CXX). Configure generates an error message for me when I > > > > try to do this. Can anyone help me with this? > > > > Thanks, > > > > Terry > > > > > > > > -- > > > > __ > > > > Terry Babbey > > > > Technical Support Specialist > > > > Lambton College, Sarnia, Ontario, Canada > > > > __ > > > > > > > > - > > > > Before posting, please check: > > > >http://www.mysql.com/manual.php (the manual) > > > >http://lists.mysql.com/ (the list archive) > > > > > > > > To request this thread, e-mail <[EMAIL PROTECTED]> > > > > To unsubscribe, e-mail <[EMAIL PROTECTED]> > > > > Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php > > > > -- > > __ > > Terry Babbey > > Technical Support Specialist > > Lambton College, Sarnia, Ontario, Canada > > __ -- __ Terry Babbey Technical Support Specialist Lambton College, Sarnia, Ontario, Canada __ - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Re: Confused with GCC
g++ works in the configure stage, but then when I do the gnumake using g++ I get the following error: g++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr/local/mysql \"" -DDATADIR="\"/usr/local/mysql/var\"" - DSHAREDIR="\"/usr/local/mysql/share/mysql\""-DHAVE_CONFIG_H -I./../include -I./../regex-I. -I../include -I.. -I.-O3 -DDBUG_OFF -fno-implicit-templates -c sql_acl.cc In file included from ../include/global.h:186, from mysql_priv.h:20, from sql_acl.cc:28: /usr/include/alloca.h:71: warning: declaration of `void * alloca(int)' /usr/include/alloca.h:71: warning: conflicts with built-in declaration `void * a lloca(long unsigned int)' sql_acl.cc: In function `int replace_column_table(GRANT_TABLE *, TABLE *, const LEX_USER &, List &, const char *, const char *, unsigned int, bool)' : sql_acl.cc:1459: Internal compiler error in `scan_region', at except.c:2566 Please submit a full bug report. See http://www.gnu.org/software/gcc/faq.html#bugreport> for instructions. gnumake[3]: *** [sql_acl.o] Error 1 gnumake[3]: Leaving directory `/usr/local/mysql/mysql-3.23.33/sql' gnumake[2]: *** [all-recursive] Error 1 gnumake[2]: Leaving directory `/usr/local/mysql/mysql-3.23.33/sql' gnumake[1]: *** [all-recursive] Error 1 Peter Pentchev wrote: > On Fri, Mar 02, 2001 at 11:30:31AM -0500, Terry Babbey wrote: > > Here is my configure statement and the generated error message ( I am using > > GCC2.95.2): > > > > CC="gcc" CXX="gcc" ./configure --prefix=/usr/local/mysql > > Have you tried CXX="g++"? The C++ compiler of the GNU Compiler Suite > is g++, you know.. > > G'luck, > Peter > > -- > This sentence would be seven words long if it were six words shorter. -- __ Terry Babbey Technical Support Specialist Lambton College, Sarnia, Ontario, Canada __ - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Re: Confused with GCC
On Fri, Mar 02, 2001 at 11:30:31AM -0500, Terry Babbey wrote: > Here is my configure statement and the generated error message ( I am using > GCC2.95.2): > > CC="gcc" CXX="gcc" ./configure --prefix=/usr/local/mysql Have you tried CXX="g++"? The C++ compiler of the GNU Compiler Suite is g++, you know.. G'luck, Peter -- This sentence would be seven words long if it were six words shorter. - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Re: Confused with GCC
Here is my configure statement and the generated error message ( I am using GCC2.95.2): CC="gcc" CXX="gcc" ./configure --prefix=/usr/local/mysql checking whether the C++ compiler (gcc ) works... no configure: error: installation or configuration problem: C++ compiler cannot cre ate executables. "Matthew P. Marino" wrote: > We really need to know what the error message text is. Could be anything from > a.) you don't actualy have gcc loaded" to z.) sql_yacc.cc which hardly ever > compiles right and has nothing to do with gcc. > > Terry Babbey wrote: > > > > I notice some of you compile with gcc as you C-compiler (CC) and > > C++-compiler (CXX). Configure generates an error message for me when I > > try to do this. Can anyone help me with this? > > Thanks, > > Terry > > > > -- > > __ > > Terry Babbey > > Technical Support Specialist > > Lambton College, Sarnia, Ontario, Canada > > __ > > > > - > > Before posting, please check: > >http://www.mysql.com/manual.php (the manual) > >http://lists.mysql.com/ (the list archive) > > > > To request this thread, e-mail <[EMAIL PROTECTED]> > > To unsubscribe, e-mail <[EMAIL PROTECTED]> > > Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php -- __ Terry Babbey Technical Support Specialist Lambton College, Sarnia, Ontario, Canada __ - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Confused with GCC
I notice some of you compile with gcc as you C-compiler (CC) and C++-compiler (CXX). Configure generates an error message for me when I try to do this. Can anyone help me with this? Thanks, Terry -- __ Terry Babbey Technical Support Specialist Lambton College, Sarnia, Ontario, Canada __ - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php