Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: Compiling Anope 2 with MySQL support  (Read 6465 times)

0 Members and 1 Guest are viewing this topic.

Jake Stanton

  • Anope User
  • Offline Offline
  • Posts: 1
Compiling Anope 2 with MySQL support
« on: February 03, 2015, 05:43:10 AM »

Hi,

I have installed UnrealIRCd with Anope2 Services.

The installation was very easy and everything works just fine :)

I have been looking at using Channel data to provide stats on my website, to do this I have been trying to add MySQL support to Anope 2.  Unfortunately I have stumbled a problem and hopefully someone has had the same issue and perhaps could share their solution.

I have tried recompiling Anope using the 'extras' script but I get the error that mysql.h is not in my OS path, although I know that it is. In fact I get the same error for any extra module I try to install.

Is this a bug with Anope 2?
Logged

Jordan Cook

  • Anope User
  • Offline Offline
  • Posts: 1
Re: Compiling Anope 2 with MySQL support
« Reply #1 on: March 31, 2015, 08:06:47 AM »

I'm having the same problem:

Code: [Select]
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  = disabled
m_sql_log.cpp             = enabled
m_sql_oper.cpp            = disabled
m_sqlite.cpp              = disabled
m_ssl_gnutls.cpp          = disabled
m_ssl_openssl.cpp         = disabled
stats                     = disabled

Please enter the name of the module or type 'q' to quit.: q
CMake Error at cmake/Anope.cmake:411 (message):
  /home/anope/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!
See also "/home/anope/anope-2.0.2-source/build/CMakeFiles/CMakeOutput.log".
See also "/home/anope/anope-2.0.2-source/build/CMakeFiles/CMakeError.log".

Now cd build, then run make to build Anope.
Logged

Adam

  • Team
  • *
  • Offline Offline
  • Posts: 463
Re: Compiling Anope 2 with MySQL support
« Reply #2 on: March 31, 2015, 12:59:51 PM »

Install libmysqlclient-dev or mysql-devel. On centos you might have to give ./Config the path to libmysql eg /usr/lib64/mysql
Logged
Pages: [1]   Go Up