milenishte.org
One tequila, two tequila, three tequila, floor.

Installing EZMLM-IDX on Debian

This time I started with the qmailrocks package. It doesn't include the last idx patch, but at least compiled successfully!

In case the ezmlm-mktab contains the following text:

This is the standard database version. You do not need to create any separate database.

it obviously means that you don't have compiled mysql support in ezmlm.

In order to activate the MySQL support, several steps are needed (not mentioned in the instructions!)
  1. Make sure you have libmysqlclient15-dev package (or the most resent available)
  2. check sub_mysql/conf-sqlcc and sub_mysql/conf-sqlld files
  3. run 'make mysql' before make && make setup
  4. In case you get the following error:
    opensql.c: In function 'opensql':
    opensql.c:95: error: lvalue required as left operand of assignment
    opensql.c:99: warning: return discards qualifiers from pointer target type


    You need to make the following patch:
    Open opensql.c
    Change from:
    if (!((MYSQL *)psql = mysql_init((MYSQL *) 0)))

    to

    if (!(psql = (void *)mysql_init((MYSQL *) 0)))


Last update: 06.02.2016, contacts: milenishte@gmail.com, Skype: milenishte