Anope IRC Services

Anope Support => 2.0.x/1.9.x Support => Topic started by: tusaichi on January 16, 2016, 11:18:11 AM

Title: Anope 2.0.2 missing module
Post by: tusaichi on January 16, 2016, 11:18:11 AM
I installed anope 2.0.2, I noticed that missing several extra modules
as m_chanstats m_mysql ir2sql etc etc,
reading out a statement wiki
"enable / disable board using the command ./extra"
how do I use it?
Thank you
Title: Re: Anope 2.0.2 missing module
Post by: Davide on January 16, 2016, 12:46:57 PM
Hi TuSaiChi,
You can enable the extra modules by typing ./extras in anope-2.0.2-source/ and by writing the name of the modules which are listed, then pressing enter.
Basically:
./extras
Will output something like this:
Quote
m_ldap.cpp                = disabled
m_ldap_authentication.cpp = disabled
m_ldap_oper.cpp           = disabled
m_mysql.cpp               = enabled
m_regex_pcre.cpp          = disabled
m_regex_posix.cpp         = disabled
m_regex_tre.cpp           = disabled
m_sasl_dh-aes.cpp         = disabled
m_sasl_dh-blowfish.cpp    = disabled
m_sql_authentication.cpp  = enabled
m_sql_log.cpp             = enabled
m_sql_oper.cpp            = enabled
m_sqlite.cpp              = disabled
m_ssl_gnutls.cpp          = disabled
m_ssl_openssl.cpp         = disabled
stats                     = enabled

Please enter the name of the module or type 'q' to quit.:
Now write the name of the module, like "stats" and press Enter.
You'll see that it will be enabled or disabled. Then, type "q" and press Enter. It will say:
Quote
-- Configuring done
-- Generating done
-- Build files have been written to: /home/<username>/anope-2.0.2-source/build

Now cd build, then run make to build Anope.
Just do cd build, and then compile Anope.
Title: Re: Anope 2.0.2 missing module
Post by: tusaichi on January 16, 2016, 02:55:42 PM
Quote
CMake Error at cmake/Anope.cmake:411 (message):
  /home/hub/anope-2.0.2-source/modules/m_mysql.cpp needs header file
  mysql/mysql.h but we were unable to locate that header file! Check that the
  header file is within the search path of your OS.
Call Stack (most recent call first):
  modules/CMakeLists.txt:25 (calculate_depends)
  modules/CMakeLists.txt:165 (build_modules)


-- Configuring incomplete, errors occurred!

Now cd build, then run make to build Anope.

hub@sd-44325:~/anope-2.0.2-source$ cd build/
hub@sd-44325:~/anope-2.0.2-source/build$ make
CMake Error at cmake/Anope.cmake:411 (message):
  /home/hub/anope-2.0.2-source/modules/m_mysql.cpp needs header file
  mysql/mysql.h but we were unable to locate that header file! Check that the
  header file is within the search path of your OS.
Call Stack (most recent call first):
  modules/CMakeLists.txt:25 (calculate_depends)
  modules/CMakeLists.txt:165 (build_modules)


-- Configuring incomplete, errors occurred!
make: *** [cmake_check_build_system] Error 1
Title: Re: Anope 2.0.2 missing module
Post by: tusaichi on January 16, 2016, 04:12:39 PM
Resolve
i install libmysqlclient-dev on server