List:General Discussion« Previous MessageNext Message »
From:Jani Tolonen Date:October 2 1999 1:37pm
Subject:RedHat6
View as plain text  
Kittiphum Worachat writes:
 > To Sir
 >     I just try to install MySql 3.22.22 with ReHat6 that I install RedHat6
 > with server feature so I have got Apache webserver already.
 >     I do like this
 >     1. Download mysql_3.22.22.tar.gz save at /usr/local
 >     2. cd /usr/local
 >     3. gunzip mysql_3.22.22.tar.gz
 >     4.  tar xvf mysql_3.22.22.tar
 >     5. ln -s mysql_3.22.22 mysql
 >     6. cd mysql
 >     7. ./configure --with-charset=tis620
 >         the result is confiure error: installation or configuration problem:
 > C++ complier cannot create executable
 > 
 >     What I do wrong please help me (RedHat6 is automatic install from CD)
 >     Kittiphum Worachat
 > 

Hello Kittiphum,

This is from the manual:

-----------------------------------------------------------------------

By default, configure picks c++ as the compiler name and GNU c++ links
with -lg++. If you are using gcc, that behavior can cause problems
during configuration such as this: 

configure: error: installation or configuration problem:
C++ compiler cannot create executables.

You might also observe problems during compilation related to g++,
libg++ or libstdc++. One cause of these problems is that you may not
have g++, or you may have g++ but not libg++ or libstdc++. Take a look
at the `config.log' file. It should contain the exact reason why your
c++ compiler didn't work! To work around these problems, you can use
gcc as your C++ compiler. Try setting the environment variable CXX to
"gcc -O3".  For example:

  shell> CXX="gcc -O3" ./configure

This works because gcc compiles C++ sources as well as g++ does, but
does not link in libg++ or libstdc++ by default. Another way to fix
these problems, of course, is to install g++, libg++ and libstdc++. 

-----------------------------------------------------------------------

Regards,

- Jani

-- 
+-------------------------------------------------------------+
| TcX  ____  __     _____   _____  ___                        |
|     /*/\*\/\*\   /*/ \*\ /*/ \*\ |*|       Jani Tolonen     |
|    /*/ /*/ /*/   \*\_   |*|   |*||*|       jani@stripped   |
|   /*/ /*/ /*/\*\/*/  \*\|*|   |*||*|       Helsinki         |
|  /*/     /*/  /*/\*\_/*/ \*\_/*/ |*|_____  Finland          |
|  ^^^^^^^^^^^^/*/^^^^^^^^^^^\*\^^^^^^^^^^^                   |
|             /*/             \*\            Developers Team  |
+-------------------------------------------------------------+
Thread
RedHat6Kittiphum Worachat2 Oct
  • RedHat6Jani Tolonen2 Oct
  • Re: RedHat6Matthew Costello4 Oct