forked from mysql/mysql-workbench
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL
133 lines (87 loc) · 4.56 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
MySQL Workbench 8.0
-------------------
MySQL Workbench is a complete database modeling, administration and development program for MySQL.
This tree contains the source files for the MySQL Workbench 8.0.
MySQL Workbench is an extensible visual database design tool.
Buiding on Linux
----------------
To build MySQL Workbench on Ubuntu and other Debian based distros:
- Remove iodbc, if necessary
$> sudo apt-get remove iodbc
- Install dependencies
$> sudo apt-get install build-essential cmake cmake-data autoconf automake pkg-config libtool libzip-dev libxml2-dev \
libsigc++-2.0-dev libglade2-dev libglu1-mesa-dev libgl1-mesa-glx \
mesa-common-dev libmysqlclient-dev libmysqlcppconn-dev uuid-dev libpixman-1-dev libpcre3-dev \
libpango1.0-dev libcairo2-dev python-dev \
libboost-dev mysql-client python-pysqlite2 libsqlite3-dev \
swig libvsqlitepp-dev libgdal-dev libgtk-3-dev libgtkmm-3.0-dev libssl-dev \
libsecret-1-dev libproj-dev
apt install build-essential cmake cmake-data autoconf automake pkg-config libtool libzip-dev libxml2-dev \
libsigc++-2.0-dev libglade2-dev libglu1-mesa-dev libgl1-mesa-glx \
mesa-common-dev libmysqlclient-dev libmysqlcppconn-dev uuid-dev libpixman-1-dev libpcre3-dev \
libpango1.0-dev libcairo2-dev python-dev \
libboost-dev mysql-client python-pysqlite2 libsqlite3-dev \
swig libvsqlitepp-dev libgdal-dev libgtk-3-dev libgtkmm-3.0-dev libssl-dev \
libsecret-1-dev libproj-dev
* X - put the proper value for your system
- Extract the sources into a directory
$> tar xvf mysql-workbench-community-<version>-src.tar.gz
- Go to the project and create a build directory
$> cd mysql-workbench-community-<version>-src
$> mkdir wb-build
$> cd wb-build
- Build and install the project, and optionaly set the install prefix (should default to /usr/local)
$> cmake [-DCMAKE_INSTALL_PREFIX=/usr] ..
$> make
$> sudo make install
- If you don't have permissions, you may install it on the current directory
$> make install DESTDIR=.
For complete and up-to-date instructions, visit http://wb.mysql.com/?page_id=152
Note about swig:
- You will need swig 3.0 to build WB
Note about ANTLR:
- ANTLR 4.7 is required to generate the files for the MySQL Parser. Download antlr-4.7.2-complete.jar from http://www.antlr.org/download.html.
Then you'll need to pass it as cmake argument:
-DWITH_ANTLR_JAR=<path_to_your_antlr_complete_file>
Note about iodbc:
- Instead of iodbc you can use unixodbc. To do that you need to install unixodbc and add -DUSE_UNIXODBC=True to cmake.
Note about gdal:
- Ubuntu Packages require unixodbc, so if you're using it, there won't be any problem. If you want to use iodbc, you'll need to build it from source.
Building on Windows
-------------------
To build on Windows, you need Visual Studio 2017 with C++ and C# support.
You also need to prepare pre-compiled binaries for all the 3rd party libraries that Workbench
depends on. You can use a C++ package manager for Windows, Linux and MacOS
https://docs.microsoft.com/en-us/cpp/vcpkg?view=vs-2017
To Build:
- Create folder bundle or similar and put there all 3dpart libs. Folder should look like:
* bin
* include
* lib
* debug
** bin
** include
** lib
* python
- Create in system environoment variable which point to folder where 3rd party libs are located WB_3DPARTY_LIB=<libs and headers files directory>
- Go to the mysql-workbench directory
- Open MySQLWorkbench.sln solution file
- Select Release_OSS or the Debug Configuration
- Build Project
Buiding on macOS
-------------------
- Go to http://rudix.org/ and download and install the following packages
gettext, glib, libpng, libsigc++, lua, pkg-config, pcre, libzip, cairo, pixman
- Install a recent MySQL server (64bit). The installer will link /usr/local/mysql
to the correct installation.
- Install the latest MySQL Connector/C++ and vsqlite++.
- Install the latest Xcode and open the MySQLWorkbench.xcodeproj file.
- In the target dropdown pick MySQLWorkbench and build it.
==============================================================================
MySQL Workbench OSS edition is licensed under the terms of the
General Public License version 2. For the exact terms of this license,
please view the included COPYING file.
==============================================================================
For more information, newer versions, FAQ, mailing lists etc
visit http://wb.mysql.com
The MySQL Workbench Team.