Anope IRC Services

Anope Development => Modules => Topic started by: Nofilicity on July 06, 2007, 05:15:41 PM

Title: /services/src folder does not exist
Post by: Nofilicity on July 06, 2007, 05:15:41 PM
I'm trying to compile a module, when I realized...my /src folder does not exist. What should I do, and where do I put the unreal_addon.c file then?
Title:
Post by: n00bie on July 06, 2007, 05:22:21 PM
You need to put your modules inside Anope-1.7.x/src/modules folder.
read this link: http://anope.info/index.php/Modules:Usage:Compiling (http://anope.info/index.php/Modules:Usage:Compiling)

[Edited on 6-7-2007 by n00bie]
Title:
Post by: Nofilicity on July 06, 2007, 05:45:22 PM
Ah, thanks. I compile the module, unreal_addon.so now, and moved it to my services/modules folder. However, when I type /os modload unreal_addon , it doesn't work. Any ideas?
Title:
Post by: n00bie on July 06, 2007, 05:54:03 PM
when you compiled the module and do 'make install' the compiled modules automatically goes to the services folder, so doing /os modload modulename will give no problem unless there is a problem with the module itself. Check your services logs folder for errors on why you can't load the modules
Title:
Post by: Nofilicity on July 06, 2007, 06:30:05 PM
Quote

[Jul 06 17:27:08 2007] Trying to load module [unreal_addon]
[Jul 06 17:27:08 2007] Trying to load module [unreal_addon]
[Jul 06 17:27:08 2007] [unreal_addon] MYSQL is not configured. Please edit your services.conf .
[Jul 06 17:27:08 2007] [unreal_addon] Module not loaded.
[Jul 06 17:27:08 2007] unreal_addon requested unload...
[Jul 06 17:27:08 2007] Module loading status: 6 (Module Error, Error during load time or module returned MOD_STOP)
Title:
Post by: n00bie on July 06, 2007, 06:47:14 PM
I'm guessing you don't have MYSQL enabled during configuration on your services.
Title:
Post by: Nofilicity on July 06, 2007, 07:00:13 PM
Is there anyway to enable it without having to reset my NickServ and Channel Registrations and such?
Title:
Post by: n00bie on July 07, 2007, 08:33:43 AM
just to make sure, do ./Config again and see that checking of MySQL libs is enabled (tho its default). Next open up your services.conf and check whether if you have encryption enabled or not (depending on your databases). go down and configure the mysql configuration. Lastly, make sure that you have all your *.db's backup before you make any changes... *just in case*