Problem with installing mysql to Mac os Sierra
-
Hi All, so i'm planning to install mysql to my mac os sierra ,
i find a tutorial in this forum and i tried to follow steps ( https://forum.qt.io/topic/106565/mysql-qt-create-plugin-mysql-for-qt-on-mac )
i'm using QT 5.12.8
i have downloaded mysql workbench community and already installed in /usr/local ( see scrennshot )
i opened the Terminal :
First Step from the other topic:
cd $QTDIR/Src/qtbase/src/plugins/sqldrivers
For me it is :
cd /Users/zunneh/Qt5.12.8/5.12.8/clang_64/plugins/sqldriversNow second Step:
qmake -- MYSQL_PREFIX=/usr/local/mysqlFor me it is :
/Users/zunneh/Qt5.12.8/5.12.8/clang_64/bin/qmake --MYSQL_PREFIX=/usr/local/mysqlNow 3rd Step :
make sub-mysqlFor me , i didn't install Xcode, i only install CommandLineTools so :
/Library/Developer/CommandLineTools/usr/bin/make sub-mysqland in this Step Error
make: *** No rule to make target `sub-mysql'. Stop.Why i can't execute make ? in the other topic ( where the person uses mac too ) the sqldrivers folder was located in QTDIR/Src/qtbase/src/plugins/sqldrivers, why for me i don't have Src in my Qt5.12.8 ? i only have QTDIR/clang_64/plugins/sqldrivers
Can someone Help me please, i just followed the link ( who seems work) but it didnt work for me
-
Hi,
What does the configuration log tel you after your called qmake ?
-
@Zunneh said in Problem with installing mysql to Mac os Sierra:
in the other topic ( where the person uses mac too ) the sqldrivers folder was located in QTDIR/Src/qtbase/src/plugins/sqldrivers, why for me i don't have Src in my Qt5.12.8 ? i only have QTDIR/clang_64/plugins/sqldrivers
Because you didn't choose the "Sources" component in the installer when you were installing Qt. :)
But you don't have to. You can download the source code package separately. -
@Zunneh said in Problem with installing mysql to Mac os Sierra:
in the other topic ( where the person uses mac too ) the sqldrivers folder was located in QTDIR/Src/qtbase/src/plugins/sqldrivers, why for me i don't have Src in my Qt5.12.8 ? i only have QTDIR/clang_64/plugins/sqldrivers
Because you didn't choose the "Sources" component in the installer when you were installing Qt. :)
But you don't have to. You can download the source code package separately. -
@Zunneh said in Problem with installing mysql to Mac os Sierra:
in the other topic ( where the person uses mac too ) the sqldrivers folder was located in QTDIR/Src/qtbase/src/plugins/sqldrivers, why for me i don't have Src in my Qt5.12.8 ? i only have QTDIR/clang_64/plugins/sqldrivers
Because you didn't choose the "Sources" component in the installer when you were installing Qt. :)
But you don't have to. You can download the source code package separately. -
@Bonnie How to install the source package ? should i reinstall Qt ? will it fix my problem ?
@Zunneh
As I said, you don't have to install it.
You can download theqtbase-everywhere-src
package only from http://download.qt.io/official_releases/qt/5.12/5.12.8/submodules and extract to anywhere.
This can only fix your "no qtbase/src/plugins/sqldrivers" problem. I'm not sure whether you would have other problems. -
@Zunneh
As I said, you don't have to install it.
You can download theqtbase-everywhere-src
package only from http://download.qt.io/official_releases/qt/5.12/5.12.8/submodules and extract to anywhere.
This can only fix your "no qtbase/src/plugins/sqldrivers" problem. I'm not sure whether you would have other problems. -
@Zunneh
As I said, you don't have to install it.
You can download theqtbase-everywhere-src
package only from http://download.qt.io/official_releases/qt/5.12/5.12.8/submodules and extract to anywhere.
This can only fix your "no qtbase/src/plugins/sqldrivers" problem. I'm not sure whether you would have other problems.