Anope IRC Services
Anope Development => Modules => Topic started 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?
-
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]
-
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?
-
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
-
[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)
-
I'm guessing you don't have MYSQL enabled during configuration on your services.
-
Is there anyway to enable it without having to reset my NickServ and Channel Registrations and such?
-
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*