Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1] 2   Go Down

Author Topic: help with bs_quote  (Read 11789 times)

0 Members and 1 Guest are viewing this topic.

epic

  • Anope User
  • Offline Offline
  • Posts: 22
help with bs_quote
« on: November 18, 2012, 10:04:44 PM »

Hi, i try to install bs_quote.c, but when i try to load the mod with /os modload bs_quote  say this:

"18:50 -OperServ(services@battle.cl)- Imposible cargar modulo bs_quotes " (unable to load)

please a little help.... and sorry my english, i'm from Chile...
Logged

Thomas Edwards

  • Anope User
  • Offline Offline
  • Posts: 23
    • Ilkotech Technology and Entertainment
Re: help with bs_quote
« Reply #1 on: November 18, 2012, 10:13:47 PM »

What version of Anope are you running?
Have you consulted docs/MODULES in your Anope Source directory?
Logged

epic

  • Anope User
  • Offline Offline
  • Posts: 22
Re: help with bs_quote
« Reply #2 on: November 18, 2012, 10:21:26 PM »

1.8.7 and i try with http://modules.anope.org/index.php?page=view&id=242

i read that doc, and i can load other mod (redirect) and work OK, but i need this bs_quote, but i`m an ignorant in this and i can't running that mod :c
Logged

Thomas Edwards

  • Anope User
  • Offline Offline
  • Posts: 23
    • Ilkotech Technology and Entertainment
Re: help with bs_quote
« Reply #3 on: November 18, 2012, 10:25:00 PM »

Have you closely followed the instructions here:

https://raw.github.com/anope/anope/1.8/docs/MODULES

These instructions are in the docs directory.
Logged

epic

  • Anope User
  • Offline Offline
  • Posts: 22
Re: help with bs_quote
« Reply #4 on: November 18, 2012, 10:28:21 PM »

yes, in this case i made the step Nº 5 (i.e.  upload file in dir, "make module" and " make install") this work fine, but the mod don't load...
Logged

Thomas Edwards

  • Anope User
  • Offline Offline
  • Posts: 23
    • Ilkotech Technology and Entertainment
Re: help with bs_quote
« Reply #5 on: November 18, 2012, 10:30:33 PM »

Are there any errors displayed when compiling the module?
Logged

epic

  • Anope User
  • Offline Offline
  • Posts: 22
Re: help with bs_quote
« Reply #6 on: November 18, 2012, 10:34:58 PM »

i try again, and after "make modules":

../../include -c bs_quotes.c
bs_quotes.c: In function âdo_view_quoteâ:
bs_quotes.c:509:40: warning: variable âchanâ set but not used [-Wunused-but-set-variable]
gcc -shared ../mod_version.o bs_quotes.o -o bs_quotes.so
make all in dummy...
make[2]: Entering directory `/home/irc/anope-1.8.7/src/modules/dummy'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/irc/anope-1.8.7/src/modules/dummy'
make[1]: Leaving directory `/home/irc/anope-1.8.7/src/modules'
*** All done, now (g)make install to install Anope/Modules

Logged

Thomas Edwards

  • Anope User
  • Offline Offline
  • Posts: 23
    • Ilkotech Technology and Entertainment
Re: help with bs_quote
« Reply #7 on: November 18, 2012, 10:40:13 PM »

After that have you ran "make install"?
Logged

epic

  • Anope User
  • Offline Offline
  • Posts: 22
Re: help with bs_quote
« Reply #8 on: November 18, 2012, 10:42:07 PM »

yes, and no warning or error....
Logged

Thomas Edwards

  • Anope User
  • Offline Offline
  • Posts: 23
    • Ilkotech Technology and Entertainment
Re: help with bs_quote
« Reply #9 on: November 18, 2012, 10:43:54 PM »

Is there a file names bs_quote.so in services/modules/?
Logged

epic

  • Anope User
  • Offline Offline
  • Posts: 22
Re: help with bs_quote
« Reply #10 on: November 18, 2012, 10:46:31 PM »

yes
Logged

Thomas Edwards

  • Anope User
  • Offline Offline
  • Posts: 23
    • Ilkotech Technology and Entertainment
Re: help with bs_quote
« Reply #11 on: November 18, 2012, 10:47:42 PM »

Now try /msg operserv modload bs_quote from your IRC Server.
Logged

epic

  • Anope User
  • Offline Offline
  • Posts: 22
Re: help with bs_quote
« Reply #12 on: November 18, 2012, 10:51:05 PM »

Imposible cargar modulo bs_quote  (unable to load)
Logged

Thomas Edwards

  • Anope User
  • Offline Offline
  • Posts: 23
    • Ilkotech Technology and Entertainment
Re: help with bs_quote
« Reply #13 on: November 18, 2012, 11:00:03 PM »

I've noticed you're compiling bs_quotes and not bs_quote, Have you tried /msg operserv modload bs_quotes
Logged

epic

  • Anope User
  • Offline Offline
  • Posts: 22
Re: help with bs_quote
« Reply #14 on: November 18, 2012, 11:10:30 PM »

sorry... y paste bad...

Imposible cargar modulo bs_quotes (unable to load)
Logged

epic

  • Anope User
  • Offline Offline
  • Posts: 22
Re: help with bs_quote
« Reply #15 on: November 19, 2012, 01:02:13 AM »

i tried restarting the services and adding the line to services.conf, but nothing... please help!
Logged

epic

  • Anope User
  • Offline Offline
  • Posts: 22
Re: help with bs_quote
« Reply #16 on: November 19, 2012, 11:24:58 PM »

someone please?
Logged

VisioN

  • Contributor
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 82
    • myIRC Project Hosting IRC Network
Re: help with bs_quote
« Reply #17 on: November 19, 2012, 11:32:29 PM »

unable to load doesnt give us much information really. Please paste the logs anope writes when it tries to load the module. You can find that in the directory /services/logs. Also, it'd be nice if you could translate what's in there ;)
Logged
______________________________
VisioN
Find me: irc.myirc.net | irc.anope.org
Contact me: vision@myirc.net

epic

  • Anope User
  • Offline Offline
  • Posts: 22
Re: help with bs_quote
« Reply #18 on: November 19, 2012, 11:43:24 PM »

when i try "make modules" say this:

./../include -c bs_quotes.c
bs_quotes.c: In function âdo_view_quoteâ:
bs_quotes.c:509:40: warning: variable âchanâ set but not used [-Wunused-but-set-variable]
gcc -shared ../mod_version.o bs_quotes.o -o bs_quotes.so
make all in dummy...
make[2]: Entering directory `/home/irc/anope-1.8.7/src/modules/dummy'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/irc/anope-1.8.7/src/modules/dummy'
make[1]: Leaving directory `/home/irc/anope-1.8.7/src/modules'
*** All done, now (g)make install to install Anope/Modules


and the services log say this:
[Nov 19 20:38:30 2012] Trying to load module [bs_quotes]
[Nov 19 20:38:30 2012] [bs_quotes]: Missing config options!
[Nov 19 20:38:30 2012] bs_quotes requested unload...
[Nov 19 20:38:30 2012] [bs_quotes]: Module Unloaded
[Nov 19 20:38:30 2012] Module loading status: 6 (Module Error, Error during load time or module returned MOD_STOP)

sorry my ignorance, but i don`t know what i need to configure...
Logged

VisioN

  • Contributor
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 82
    • myIRC Project Hosting IRC Network
Re: help with bs_quote
« Reply #19 on: November 19, 2012, 11:47:46 PM »

there is your answer then. You need to add the configuration directives the module needs in your services.conf , cause the module will not load without them. If you check the module you will see which configuration options you need to add for it to work. Then you will need to reload your services configuration with /os reload and finally load your module with /os modload .
Logged
______________________________
VisioN
Find me: irc.myirc.net | irc.anope.org
Contact me: vision@myirc.net

epic

  • Anope User
  • Offline Offline
  • Posts: 22
Re: help with bs_quote
« Reply #20 on: November 20, 2012, 12:20:55 AM »

i add this  in services.conf in last line

QuoteMySQLHost "localhost" - The hostname for the MySQL server (for TCP connections)
QuoteMySQLPort 3306 - The port for the MySQL server (for TCP connections)
QuoteMySQLSocket "x/xxx/" - The UNIX socket file for the MySQL server
QuoteMySQLUser "xxxxxxxx" - The username to use
QuoteMySQLPassword "xxxxx" - The password for the specified username
QuoteMySQLDatabase "database" - The database to use for the quotes
QuoteMySQLTable "bs_quotes" - The table to use
QuoteEnableMultiLine - Enable multi-line support, disabled by default

but i don't know if this is what i have to do...
this is the log:

[Nov 19 21:15:19 2012] Trying to load module [bs_quotes]
[Nov 19 21:15:19 2012] module error: too many config. params
[Nov 19 21:15:19 2012] module error: too many config. params
[Nov 19 21:15:19 2012] module error: too many config. params
[Nov 19 21:15:19 2012] module error: too many config. params
[Nov 19 21:15:19 2012] [bs_quotes] Can't connect to MySQL server
[Nov 19 21:15:19 2012] bs_quotes requested unload...
[Nov 19 21:15:19 2012] [bs_quotes]: Module Unloaded
[Nov 19 21:15:19 2012] Module loading status: 6 (Module Error, Error during load time or module returned MOD_STOP)
Logged

VisioN

  • Contributor
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 82
    • myIRC Project Hosting IRC Network
Re: help with bs_quote
« Reply #21 on: November 20, 2012, 02:13:45 AM »

no its not, you have to actually fill in the options, not just copy paste them as they are :(
Logged
______________________________
VisioN
Find me: irc.myirc.net | irc.anope.org
Contact me: vision@myirc.net

epic

  • Anope User
  • Offline Offline
  • Posts: 22
Re: help with bs_quote
« Reply #22 on: November 20, 2012, 02:39:06 AM »

the other thing who i edit was the "mysql configuration" from services.conf ...
Logged

epic

  • Anope User
  • Offline Offline
  • Posts: 22
Re: help with bs_quote
« Reply #23 on: November 20, 2012, 02:57:01 AM »

can i paste the modules and try to help me to config please??? i need that mod :c
Logged

epic

  • Anope User
  • Offline Offline
  • Posts: 22
Re: help with bs_quote
« Reply #24 on: November 20, 2012, 01:15:00 PM »

say "couldn't connect with mysql", but the adress is good... and my user and pass are good too...
Logged
Pages: [1] 2   Go Up