Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: 1.7.19 Mysql in Mandriva one 2009 with xampp  (Read 7411 times)

0 Members and 1 Guest are viewing this topic.

luis

  • Anope User
  • Offline Offline
  • Posts: 4
1.7.19 Mysql in Mandriva one 2009 with xampp
« on: March 30, 2009, 11:39:42 AM »

Hello.
First. i'd like to thank all anope developers for this great software that i've been using for more than 2 years in my XP box without almost any problem.

I recently moved to a linux box thinking it would be more secure and have a better performance.
I installed Mandriva one 2009 (Gnome version) and after fighting some days with the included lamp package, i decided to try with xampp and it works like a charm.
I installed Unreal3.2.6 (because of some modules i'm used to) and Anope 1.7.19.
Anope works great except that i'm not being able to configure it with mysql.

In my XP box, i have a site linked to anope mysql that i need to keep alive. Every user has to register with nickserv so they can have a profile and upload files, post in the forums, etc.. i even made a php socket bot that enters the chat and registers a new user from a registration form in the site and this is why i need Anope MySql functions to be working urgently.



I read some posts and i installed mysql-devel on my box and mysql_config seems to have the correct paths.
But when i run ./Config it says:

Code: [Select]
checking for mysql_config... /usr/bin/mysql_config
checking if mysql_config produces valid values... no



This is the output of my # mysql_config --libs:

Code: [Select]
-rdynamic -L/opt/lampp/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -L/opt/lampp/lib/ -lssl -lcrypto



Then i open Config.log and read this (and i don't understand a word):

Code: [Select]
configure:2825: checking for mysql_config
configure:2843: found /usr/bin/mysql_config
configure:2856: result: /usr/bin/mysql_config
configure:2892: gcc -o conftest -pipe -g -O2 -I/opt/lampp/include/mysql  -mpentiumpro -I/opt/lampp/include -L/opt/lampp/lib -Wl,--rpath -Wl,/opt/lampp/lib -felide-constructors -fno-exceptions -fno-rtti   -DUNIV_LINUX   -rdynamic -L/opt/lampp/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -L/opt/lampp/lib/ -lssl -lcrypto conftest.c  >&5
cc1: error: unrecognized command line option "-mpentiumpro"
cc1: warning: command line option "-felide-constructors" is valid for C++/ObjC++ but not for C
cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for C
configure:2898: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
| #include <mysql.h>
| int
| main ()
| {
| MYSQL *mysql = mysql_init(0);
|   ;
|   return 0;
| }



I would be thankful if someone could help me.
« Last Edit: March 30, 2009, 11:41:51 AM by luis »
Logged

Jan Milants

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 1372
Re: 1.7.19 Mysql in Mandriva one 2009 with xampp
« Reply #1 on: March 30, 2009, 03:38:26 PM »

Have you tried whether Anope-1.8.0 can detect the libraries?
If they can then your version is simply out of date :)
Logged
If you like me donate coins to 1FBmZVT4J8WAUMHKqpWhgNVj3XXnRN1cCk :)

luis

  • Anope User
  • Offline Offline
  • Posts: 4
Re: 1.7.19 Mysql in Mandriva one 2009 with xampp
« Reply #2 on: March 30, 2009, 03:59:33 PM »

Thank you Jan.
I tried what you said but got almost the same results.

Code: [Select]
configure:3213: checking for mysql_config
configure:3231: found /usr/bin/mysql_config
configure:3244: result: /usr/bin/mysql_config
configure:3295: gcc -o conftest -pipe -g -O2 -I/opt/lampp/include/mysql  -mpentiumpro -I/opt/lampp/include -L/opt/lampp/lib -Wl,--rpath -Wl,/opt/lampp/lib -felide-constructors -fno-exceptions -fno-rtti   -DUNIV_LINUX   -rdynamic -L/opt/lampp/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -L/opt/lampp/lib/ -lssl -lcrypto conftest.c  >&5
cc1: error: unrecognized command line option "-mpentiumpro"
cc1: warning: command line option "-felide-constructors" is valid for C++/ObjC++ but not for C
cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for C
configure:3298: $? = 1
configure: program exited with status 1
configure: failed program was:

Anyway i would like a solution for my first log with Anope 1.7.19 rather than 1.8.0.
Thanks.
Logged

mooncup

  • Contributor
  • *
  • Offline Offline
  • Posts: 65
Re: 1.7.19 Mysql in Mandriva one 2009 with xampp
« Reply #3 on: March 30, 2009, 05:03:19 PM »

You need mysql-server don't you?
Logged

luis

  • Anope User
  • Offline Offline
  • Posts: 4
Re: 1.7.19 Mysql in Mandriva one 2009 with xampp
« Reply #4 on: March 30, 2009, 05:16:14 PM »

thanks mooncup but as i worte, i have xampp running and that means i have apache, mysql, php and perl.
xampp is working fine (mysql included) and i also have mysql-devel packages from the mandriva repositories (libmysql-devel - MySQL - Development header files and libraries​ Version: 5.0.67-3mdv2009.0).
Logged

luis

  • Anope User
  • Offline Offline
  • Posts: 4
Re: 1.7.19 Mysql in Mandriva one 2009 with xampp
« Reply #5 on: April 01, 2009, 10:41:38 PM »

So there's no hope for me ? u.u
Logged

Lord GNR

  • Anope User
  • Offline Offline
  • Posts: 1
Re: 1.7.19 Mysql in Mandriva one 2009 with xampp
« Reply #6 on: December 27, 2009, 08:48:48 AM »

you need you need mysq-devel package, be sure XAMPP includes this package
Logged

Charles Kingsley

  • Contributor
  • *
  • Offline Offline
  • Posts: 1405
Re: 1.7.19 Mysql in Mandriva one 2009 with xampp
« Reply #7 on: December 27, 2009, 08:52:13 AM »

Please do not reply to ancient threads without any useful information.
Logged
Pages: [1]   Go Up