Skip to content

Commit b967d51

Browse files
authored
Merge pull request rails#51819 from tnir/tn-mysql2-on-mac-pr44766
Remove deprecated problem from local dev guide
2 parents 52b417b + b9b2311 commit b967d51

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

guides/source/development_dependencies_install.md

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -86,33 +86,6 @@ $ brew services start mysql
8686

8787
Replace `mysql` with the name of the service you want to start.
8888

89-
##### Potential Issues
90-
91-
This section details some of the potential issues you may run into with native extensions on macOS, particularly when bundling the mysql2 gem in local development. This documentation is subject to change and may be incorrect as Apple makes changes to the developer environment on Rails.
92-
93-
In order to compile the `mysql2` gem on macOS you will need the following:
94-
95-
1. `[email protected]` installed (not `openssl@3`)
96-
2. Ruby compiled with `[email protected]`
97-
3. Set compiler flags in the bundle config for `mysql2`.
98-
99-
If both `[email protected]` and `openssl@3` are installed, you will need to tell Ruby to use `[email protected]` in order for Rails to bundle `mysql2`.
100-
101-
In your `.bash_profile` set the `PATH` and `RUBY_CONFIGURE_OPTS` to point to `[email protected]`:
102-
103-
```sh
104-
export PATH="/usr/local/opt/[email protected]/bin:$PATH"
105-
export RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix [email protected])"
106-
```
107-
108-
In your `~/.bundle/config` set the following for `mysql2`. Be sure to delete any other entries for `BUNDLE_BUILD__MYSQL2`:
109-
110-
```
111-
BUNDLE_BUILD__MYSQL2: "--with-ldflags=-L/usr/local/opt/[email protected]/lib --with-cppflags=-L/usr/local/opt/[email protected]/include"
112-
```
113-
114-
By setting these flags before installing Ruby and bundling Rails, you should be able to get your local macOS development environment working.
115-
11689
#### Ubuntu
11790

11891
To install all run:

0 commit comments

Comments
 (0)