MySQL seg fault

Hello all,

So I recently updated my ROOT verision to 5.18/00.

Now I am getting a seg fault in code which worked fine before.

The seg fault come after the following line

db_pointer = TSQLServer::Connect(full_ad.c_str(),db_user.c_str(),db_pw.c_str());
cout << “Hello” << endl;
if(!db_pointer->IsConnected())

so it’s when I ask if I have connected. I get the following error

Error in TUnixSystem::DynamicPathName: RMySQL[.so | .sl | .dl | .a | .dll] does not exist in .:/usr/local/root/lib/root::/usr/local/root/lib/root:/usr/local/astro_root/lib:
Hello

*** Break *** segmentation violation
Using host libthread_db library “/lib/libthread_db.so.1”.
Attaching to program: /proc/12923/exe, process 12923
[Thread debugging using libthread_db enabled]
[New Thread 46992239715664 (LWP 12923)]
0x00002abd3b724af5 in waitpid () from /lib/libc.so.6
error detected on stdin
The program is running. Quit anyway (and detach it)? (y or n) [answered Y; input not from terminal]
Detaching from program: /proc/12923/exe, process 12923

Any ideas?

Cheers

opus117

Hi,

Yes this means that the MySQL ROOT plugin (libRMySQL.so) was not build. Either you do not have MySQL install or configure did not find it and you need to pass its location to configure.

Cheers,
Philippe.