Why does SER fail to start with an ERROR: load_module: could not open module </usr/local/lib/ser/modules/mysql.so> ?

Keywords: mysql

SERi, by default, is designed to work with or without a database (and even with different databases). Because of this, SER doesn't compile the MySQL module as part of its normal compile process. Some binary distributions don't even come with the mysql.so module as part of the distribution, or come with a module compiled using a different version of mysql development libraries.  In order to ensure that your mysql.so module is compiled and installed, you need to grab a copy of the SER source from the Iptel site.

If you're building all of seri from src, you can include the command to build the mysql module when you do your initial make:

make all include_modules="mysql" 

To compile just the mysql.so module, you would enter this command from the root source directory:

make  modules=modules/mysql modules

Once you've built the module, copy the mysql.so file (located inside src/modules/mysql/ ) into the SER modules directory. This is, by default, /usr/local/lib/ser/modules/ , but it can be wherever your SER modules are housed.

Once you've copied the module file into SER's module directory, try starting SER again.

If you still have an error about SER being unable to load the mysql.so module, check the loadmodule line in your ser.cfg file to make sure there are no typos and the load directory is the same directory in which your mysql.so module resides.

loadmodule "/usr/local/lib/ser/modules/mysql.so"

Home |  Recent changes |  Search |  Glossary |  Sitemap |  Login