|
1 | 1 | Issues & Troubleshooting |
2 | 2 | ======================== |
3 | 3 |
|
4 | | - |
5 | | -##### MAC OS INSTALLATION ###### |
6 | | -==================== |
7 | | - |
| 4 | +Mac OS Installation |
| 5 | +=================== |
8 | 6 |
|
9 | 7 | Docker/Database Issues |
10 | 8 | ---------------------- |
11 | 9 |
|
12 | 10 | Make sure Docker is installed: |
13 | 11 |
|
14 | 12 | Download the dmg installer from: |
15 | | -docker: https://docs.docker.com/desktop/setup/install/mac-install/ |
| 13 | +https://docs.docker.com/desktop/setup/install/mac-install/ |
16 | 14 |
|
17 | | -Database: mariadb_config error |
18 | | ----------------------- |
19 | | -Sometimes the plug in isnt properly set up or can't be found. |
| 15 | +### Database: `mariadb_config` error |
| 16 | + |
| 17 | +Sometimes the plugin isn't properly set up or can't be found. |
20 | 18 |
|
21 | | -check: |
22 | | -which mariadb |
| 19 | +Check: |
| 20 | + |
| 21 | +.. code-block:: bash |
| 22 | +
|
| 23 | + which mariadb |
23 | 24 |
|
24 | 25 | If no path is displayed: |
25 | 26 |
|
26 | | -1) |
| 27 | +1. Install the connector: |
27 | 28 |
|
28 | | -.. code-block:: bash |
29 | | -brew install mariadb-connector-c |
| 29 | + .. code-block:: bash |
30 | 30 |
|
31 | | -2) Add missing paths |
| 31 | + brew install mariadb-connector-c |
32 | 32 |
|
33 | | -Add these to path (Intel) |
| 33 | +2. Add missing paths: |
| 34 | + |
| 35 | +**For Intel:** |
34 | 36 |
|
35 | 37 | .. code-block:: bash |
36 | | -export PATH="/usr/local/opt/mariadb-connector-c/bin:$PATH" |
37 | | -export CPPFLAGS="-I/usr/local/opt/mariadb-connector-c/include" |
38 | | -export LDFLAGS="-L/usr/local/opt/mariadb-connector-c/lib" |
39 | | -MARIADB_CONFIG=/usr/local/opt/mariadb-connector-c/bin/mariadb_config |
40 | 38 |
|
41 | | -Add these to path (Silicon) |
| 39 | + export PATH="/usr/local/opt/mariadb-connector-c/bin:$PATH" |
| 40 | + export CPPFLAGS="-I/usr/local/opt/mariadb-connector-c/include" |
| 41 | + export LDFLAGS="-L/usr/local/opt/mariadb-connector-c/lib" |
| 42 | + export MARIADB_CONFIG=/usr/local/opt/mariadb-connector-c/bin/mariadb_config |
| 43 | +
|
| 44 | +**For Apple Silicon:** |
42 | 45 |
|
43 | 46 | .. code-block:: bash |
44 | | -export PATH="/opt/homebrew/opt/mariadb-connector-c/bin:$PATH" |
45 | | -export CPPFLAGS="-I/opt/homebrew/opt/mariadb-connector-c/include" |
46 | | -export LDFLAGS="-L/opt/homebrew/opt/mariadb-connector-c/lib" |
47 | | -MARIADB_CONFIG=/opt/homebrew/opt/mariadb-connector-c/bin/mariadb_config |
48 | 47 |
|
49 | | -3) Manually install mariadb |
| 48 | + export PATH="/opt/homebrew/opt/mariadb-connector-c/bin:$PATH" |
| 49 | + export CPPFLAGS="-I/opt/homebrew/opt/mariadb-connector-c/include" |
| 50 | + export LDFLAGS="-L/opt/homebrew/opt/mariadb-connector-c/lib" |
| 51 | + export MARIADB_CONFIG=/opt/homebrew/opt/mariadb-connector-c/bin/mariadb_config |
50 | 52 |
|
51 | | -.. code-block:: bash |
52 | | -pip install mariadb |
| 53 | +3. Manually install MariaDB Python bindings: |
53 | 54 |
|
54 | | -4) Update shell |
| 55 | + .. code-block:: bash |
55 | 56 |
|
56 | | -.. code-block:: bash |
57 | | -source ~/.zshrc |
| 57 | + pip install mariadb |
58 | 58 |
|
| 59 | +4. Update your shell environment: |
59 | 60 |
|
| 61 | + .. code-block:: bash |
60 | 62 |
|
61 | | -##### LINUX INSTALLATION ###### |
62 | | -==================== |
| 63 | + source ~/.zshrc |
| 64 | +
|
| 65 | +Linux Installation |
| 66 | +================== |
63 | 67 |
|
64 | 68 | Prerequisite Libraries/Plugins |
65 | | ----------------------- |
| 69 | +------------------------------ |
66 | 70 |
|
67 | | -These are not installed by default so it is helpful to ensure all the python tools are installed: |
| 71 | +These are not installed by default, so it is helpful to ensure all Python tools are available: |
68 | 72 |
|
69 | 73 | .. code-block:: bash |
70 | | -sudo apt update |
71 | | -sudo apt install software-properties-common -y |
72 | | -sudo add-apt-repository ppa:deadsnakes/ppa -y |
73 | | -sudo apt update |
74 | | -sudo apt update |
75 | | -sudo apt install -y python3-dev python3-pip python3-venv build-essential |
76 | | -sudo apt update |
77 | | -sudo apt install python3.11 python3.11-venv python3.11-dev -y |
78 | | - |
79 | | -GCC |
| 74 | +
|
| 75 | + sudo apt update |
| 76 | + sudo apt install software-properties-common -y |
| 77 | + sudo add-apt-repository ppa:deadsnakes/ppa -y |
| 78 | + sudo apt update |
| 79 | + sudo apt install -y python3-dev python3-pip python3-venv build-essential |
| 80 | + sudo apt install python3.11 python3.11-venv python3.11-dev -y |
| 81 | +
|
| 82 | +Install GCC: |
| 83 | + |
80 | 84 | .. code-block:: bash |
81 | | -sudo apt install build-essential -y |
82 | 85 |
|
| 86 | + sudo apt install build-essential -y |
| 87 | +
|
| 88 | +### Database: `mariadb_config` error |
83 | 89 |
|
84 | | -Database: mariadb_config error |
85 | | ----------------------- |
86 | 90 | .. code-block:: bash |
87 | | -sudo apt install libmariadb-dev -y |
88 | 91 |
|
89 | | -#check |
| 92 | + sudo apt install libmariadb-dev -y |
| 93 | +
|
| 94 | +Check: |
| 95 | + |
90 | 96 | .. code-block:: bash |
91 | | -mariadb_config --cflags |
92 | | -mariadb_config --libs |
| 97 | +
|
| 98 | + mariadb_config --cflags |
| 99 | + mariadb_config --libs |
93 | 100 |
|
94 | 101 | Docker Issues |
95 | | ----------------------- |
| 102 | +------------- |
| 103 | + |
| 104 | +After installing Docker, if you get a permissions error when running `dt-db up`: |
96 | 105 |
|
97 | | -After installing Docker if there is a permissions error when running dt-db up: |
| 106 | +1. |
98 | 107 |
|
99 | | -1) |
100 | 108 | .. code-block:: bash |
101 | | -sudo groupadd docker |
102 | 109 |
|
103 | | -2) |
| 110 | + sudo groupadd docker |
| 111 | +
|
| 112 | +2. |
| 113 | + |
104 | 114 | .. code-block:: bash |
105 | | -sudo usermod -aG docker $USER |
106 | 115 |
|
107 | | -3) |
| 116 | + sudo usermod -aG docker $USER |
| 117 | +
|
| 118 | +3. |
| 119 | + |
108 | 120 | .. code-block:: bash |
109 | | -newgrp docker |
110 | 121 |
|
111 | | -4) Verify: |
| 122 | + newgrp docker |
| 123 | +
|
| 124 | +4. Verify Docker is working: |
| 125 | + |
112 | 126 | .. code-block:: bash |
113 | | -docker ps |
| 127 | +
|
| 128 | + docker ps |
114 | 129 |
|
115 | 130 | --- |
116 | 131 |
|
|
0 commit comments