Bug #81833 Wrong info about MeCab parser plugin
Submitted: 13 Jun 2016 13:13 Modified: 23 Jun 2016 14:59
Reporter: Tomislav Plavcic Email Updates:
Status: Closed Impact on me:
Category:MySQL Server: Documentation Severity:S3 (Non-critical)
Version: OS:Linux
Assigned to: CPU Architecture:Any

[13 Jun 2016 13:13] Tomislav Plavcic
On the following page:

There is this info under "Installing the MeCab Parser Plugin":
"On Unix-like platforms, libmecab.so is statically linked in libpluginmecab.so, which is located in the MySQL plugin directory."

Which I believe is not correct at least for Ubuntu and probably Debian since I see there is a dependency on the system libmecab2 package so it's not statically linked.
But I think it is statically linked in Centos and probably Fedora, not sure for others.

How to repeat:
Ubuntu Trusty:

vagrant@t-ubuntu1404-64:~$ sudo apt-get install mysql-server
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libmecab2 mysql-client mysql-common mysql-community-client
The following NEW packages will be installed:
  libmecab2 mysql-client mysql-common mysql-community-client
  mysql-community-server mysql-server
0 upgraded, 6 newly installed, 0 to remove and 234 not upgraded.
Need to get 27.2 MB of archives.
After this operation, 214 MB of additional disk space will be used.
Do you want to continue? [Y/n]

root@t-ubuntu1404-64:/usr/lib/mysql/plugin# ldd libpluginmecab.so 
        linux-vdso.so.1 =>  (0x00007fff395fe000)
        libmecab.so.2 => /usr/lib/libmecab.so.2 (0x00007f003474e000)
        libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f003444a000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f0034233000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f0033e6d000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f0033c4f000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f0033948000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f0034d22000)

Suggested fix:
Make it clear where exists a dependency on the system packages and where it is statically linked.
[14 Jun 2016 9:16] MySQL Verification Team
Hello Tomislav Plavcic,

Thank you for the report and feedback!

[23 Jun 2016 14:59] Daniel Price
Posted by developer:
On supported Fedora, Debian and Ubuntu platforms (except Ubuntu 12.04
where the system mecab version is too old), MySQL dynamically links to the
system mecab installation.

The following page has been updated. The change will appear online soon.


Thank you for the bug report.