When I try to start the application after a long time, the application does not start.
I got the following error:
-① Try to execute "bundle install --path vendor" locally
Fetching libv8 18.104.22.168 Installing libv8 22.214.171.124 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native extension. In file included from ../src/allocation.cc:33: ../src/utils.h:33:10: fatal error: 'climits' file not found #include <climits> ^~~~~~~~~ 1 error generated. (abridgement)
The above error occurs.
-② Execute the following command according to the instruction of the error wording.
CMD> gem install libv8 -v '126.96.36.199' --source 'https://rubygems.org/'
The same error message as ① is output and the command fails.
――③ Currently, mac-os is using "Catalina v10.15.4". When I checked, there was information that there was no backward compatibility, so execute the following command to make it compatible.
CMD> brew install v8-315
Now that you have run the brew command and installed it, change the settings of your local application.
CMD>bundle config --local build.therubyracer --with-v8-dir=$(brew --prefix v8-315)
Finally I ran the budle installation locally. The issue has been resolved and the Rails server can now be started.