File tree Expand file tree Collapse file tree 1 file changed +28
-1
lines changed
Expand file tree Collapse file tree 1 file changed +28
-1
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,8 @@ To install Ruby 2.5.8, simply run this command:
5050
5151Sometimes this will find a pre-compiled Ruby package for your Linux
5252distribution, but sometimes it will need to compile Ruby from scratch
53- (which takes about 15 minutes).
53+ (which takes about 15 minutes, if you got an error see [ error while
54+ compiling] ( #error-while-compiling ) ).
5455
5556After Ruby 2.5.8 is installed, make it your default Ruby:
5657
@@ -188,3 +189,29 @@ before building you preview:
188189You can also add this line to your ` ~/.bashrc ` file if you frequently
189190build site previews so that you don't have to remember to run it for
190191each shell.
192+
193+ #### Error While Compiling
194+
195+ If you got an error while compiling that looks like this:
196+ ```
197+ Error running '__rvm_make -j8',
198+ please read /home/myusername/.rvm/log/1739938091_ruby-2.5.8/make.log
199+
200+ There has been an error while running make. Halting the installation.
201+ ```
202+
203+ And if the the ` make.log ` file has these lines at the end:
204+ ```
205+ make: *** [uncommon.mk:240: build-ext] Error 2
206+ ++ return 2
207+ ```
208+
209+ Probably you need to run the following command to install a specific openssl dependency needed by ruby-2.5.8 compilation:
210+ ```
211+ rvm pkg install openssl
212+ ```
213+
214+ Then install/compile ruby with the following command:
215+ ```
216+ rvm install ruby-2.5.8 --with-openssl-dir=$HOME/.rvm/usr
217+ ```
You can’t perform that action at this time.
0 commit comments