i trying create mysql database using pyqt5 on python 3.6.1 elementary os 4.1. when call qsqldatabase.adddatabase('mysql')
, run program, get:
qsqldatabase: qmysql driver not loaded qsqldatabase: available drivers: qsqlite qmysql qmysql3 qodbc qodbc3 qp sql qpsql7
i'm using pycharm2017.2.3, interpreter anaconda3
.
if run ldd libqsqlmysql.so
, get:
linux-vdso.so.1 => (0x00007ffccb3bd000) libqt5sql.so.5 => /home/mark/qt/5.9.1/gcc_64/plugins/sqldrivers/./../../lib/libqt5sql.so.5 (0x00007f71b2cfb000) libqt5core.so.5 => /home/mark/qt/5.9.1/gcc_64/plugins/sqldrivers/./../../lib/libqt5core.so.5 (0x00007f71b25bb000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f71b237b000) libmysqlclient.so.18 => not found libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f71b1ff3000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f71b1ce3000) libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f71b1acb000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f71b16fb000) libicui18n.so.56 => /home/mark/qt/5.9.1/gcc_64/plugins/sqldrivers/./../../lib/libicui18n.so.56 (0x00007f71b125b000) libicuuc.so.56 => /home/mark/qt/5.9.1/gcc_64/plugins/sqldrivers/./../../lib/libicuuc.so.56 (0x00007f71b0ea3000) libicudata.so.56 => /home/mark/qt/5.9.1/gcc_64/plugins/sqldrivers/./../../lib/libicudata.so.56 (0x00007f71af4bb000) libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f71af29b000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f71af093000) libgthread-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0 (0x00007f71aee8b000) libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f71aeb73000) /lib64/ld-linux-x86-64.so.2 (0x000055652870b000) libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f71ae903000)
if run locate mysqlclient
, get:
/usr/lib/x86_64-linux-gnu/libmysqlclient.so.20 /usr/lib/x86_64-linux-gnu/libmysqlclient.so.20.3.6 /usr/share/doc/libmysqlclient20 /usr/share/doc/libmysqlclient20/news.debian.gz /usr/share/doc/libmysqlclient20/changelog.debian.gz /usr/share/doc/libmysqlclient20/copyright /var/cache/apt/archives/libmysqlclient20_5.7.19-0ubuntu0.16.04.1_amd64.deb /var/lib/dpkg/info/libmysqlclient20:amd64.list /var/lib/dpkg/info/libmysqlclient20:amd64.md5sums /var/lib/dpkg/info/libmysqlclient20:amd64.shlibs /var/lib/dpkg/info/libmysqlclient20:amd64.symbols /var/lib/dpkg/info/libmysqlclient20:amd64.triggers
Comments
Post a Comment