bundle install failed. The case caused by gem "libv8".

background </ font>

When I tried to implement asynchronous processing and tried to install the jquery gem and "bundle install", I got the following error. In the first place, except for the newly added gem, it was recognized that it was installed ...

Installing libv8 3.16.14.19 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

../src/utils.h:33:10: fatal error: 'climits' file not found
#include <climits>
         ^~~~~~~~~
1 error generated.

environment </ font>

item Contents
OS.Catalina v10.15.4
Ruby v2.5.1
Ruby On Rails v5.2.4.3

Contents </ font>

** Correspondence 1) Set bundler ** I ran the following command to individually configure the bundler. Set the related "therubyracer" in the same way.

CMD>bundle config --local build.libv8 --with-system-v8
You are replacing the current local value of build.libv8, which is currently nil

CMD>bundle config --local build.therubyracer --with-v8-dir=/usr/local/opt/[email protected]
You are replacing the current local value of build.therubyracer, which is currently nil
```

 Confirm that it has been registered with the following command.
`CMD>bundle config`

```

build.libv8
Set for your local app (/Users/ichikawadaisuke/projects/krown/.bundle/config): "--with-system-v8"

build.therubyracer
Set for your local app (/Users/ichikawadaisuke/projects/krown/.bundle/config): "--with-v8-dir=/usr/local/opt/[email protected]"
```

 (Here, I set a path that does not pass, so it failed when installing the gem.)

 Why next? mysql error ...

```
Installing mysql2 0.5.2 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
```

<font color='blue'>**to be continued....**</font>


### <font color ='lightblue'> Reference article </ font>
 [Therubyracer error encountered during Rails bundle install and how to resolve it](https://qiita.com/kay-adamof/items/59c8a5dd8816660fc02d)
 [What to do if bundle install does not work even though you have installed therubyracer on Rails](https://qiita.com/takecian/items/4e7504f6b5987d1621ae)
 [Therubyracer cannot be installed](https://arika.org/2016/12/28/therubyracer-installation-failed/)