Skip to content

Commit 3b20466

Browse files
Merge pull request #4361 from tadeubas/docs-env
More info on setting up env instructions
2 parents 3d076e5 + ef36658 commit 3b20466

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

docs/setting-up-your-environment.md

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ To install Ruby 2.5.8, simply run this command:
5050

5151
Sometimes this will find a pre-compiled Ruby package for your Linux
5252
distribution, 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

5556
After Ruby 2.5.8 is installed, make it your default Ruby:
5657

@@ -188,3 +189,29 @@ before building you preview:
188189
You can also add this line to your `~/.bashrc` file if you frequently
189190
build site previews so that you don't have to remember to run it for
190191
each 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+
```

0 commit comments

Comments
 (0)