Compiling Ndo-utils in Red Hat - EL 5

I want to install nagvis and I need to compile ndo-utils in Red Hat EL 5.
But I have this problem:

*** MySQL library could not be located… **************************

You chose to compile NDBXT with MySQL support, but I was unable to
locate the MySQL library on your system. If the library is
installed, use the --with-mysql-lib argument to specify the
location of the MySQL library.

NOTE: After you install the necessary libraries on your system:
1. Make sure /etc/ld.so.conf has an entry for the directory in
which the MySQL libraries are installed.
2. Run ‘ldconfig’ to update the run-time linker options.
3. Run ‘make devclean’ in the NDBXT distribution to clean out
any old references to your previous compile.
4. Rerun the configure script.

TIP: Try the following…

     ./configure --with-mysql-lib=/usr/lib/mysql

checking mysql/mysql.h usability… no
checking mysql/mysql.h presence… no
checking for mysql/mysql.h… no

*** MySQL include file could not be located… **********************

You chose to compile NDBXT with MySQL support, but I was unable to
locate <mysql/mysql.h> on your system. If the include file is
installed, use the --with-mysql-inc argument to specify the location
of the MySQL include file.


I have tried to use this solution: altinity.blogs.com/dotorg/2007/0 … qlcli.html
but I can not apply the patch correctly. Does anyone know how to do this?

Try to reinstall mysql

I did
Also installed postfix and the result is the same.

I did
Also installed postfix and the result is the same.

ubuntuforums.org/showthread.php?t=642234

In that forum proposes to install libraries that already have installed on my red hat.

Maybe you should downgrade mysql to the lower version.

I’ve downgraded mysql version to 4.1 and the error persists