NetXMS Support Forum

English Support => General Support => Topic started by: jman on March 03, 2010, 12:00:26 AM

Title: CentOS default install fails mysql and postgres
Post by: jman on March 03, 2010, 12:00:26 AM
After a default install of CentOS with both mysql and postgres and libs netxms fails on both. Postgres: checking for floor in -lm... yes
checking for PQconnectdb in -lpq... no
configure: error: libpq is required for PostgreSQL support

Fails
Mysql:checking for mysql_init in -lmysqlclient... yes
checking whether mysql clients can run... no
configure: error: Your MySQL client libraries aren't properly installed
Fails.
I have read many posts previously submitted and have not been able to get past either failure. Is there a but in the install or me? It has been some time since I have slept so I am willing to concede.
Title: Re: CentOS default install fails mysql and postgres
Post by: Victor Kirhenshtein on March 03, 2010, 10:26:54 AM
Problem with MySQL is already known, and I'll fix it in rc2. In the meantime, you could try to prefix ./configure with LDFLAGS=-lmysqlclient, like this:

LDFLAGS=-lmysqlclient ./configure --with-server --with-mysql

Nobody reports PostgreSQL problem so far. Could you please post config.log from failed PostgreSQL configuration?

Best regards,
Victor
Title: Re: CentOS default install fails mysql and postgres
Post by: jman on March 03, 2010, 07:48:27 PM
That worked V! Thanks. I am on a different machine tho. I will get the postgres info poss. 3-4-10.

J
Title: Re: CentOS default install fails mysql and postgres
Post by: aggie0642 on September 11, 2010, 10:08:16 PM
I am having the same problem with postgresql has this been resolved yet?

Also when I try the LDFLAGS option I get :
configure: error: C compiler cannot create executables

I am also using CentOS but I don't have a lot of Unix/Linux experience so I might have messed something up
Title: Re: CentOS default install fails mysql and postgres
Post by: Victor Kirhenshtein on September 12, 2010, 10:05:00 PM
Could you please post config.log here?

Best regards,
Victor