Ruby 2.3.0 fails to build
#1
Thu, 2016-03-24 09:56
sig
-
- Offline
- 2 years 3 days ago
- 2016-03-24
Hello everyone.
I'm trying to install Ruby 2.3.0 on Alpine 3.3.1 but I got the following error
BUILD FAILED (Alpine Linux 3.3.1 using ruby-build 20160228) Inspect or clean up the working tree at /tmp/ruby-build.20160324085357.29 Results logged to /tmp/ruby-build.20160324085357.29.log Last 10 log lines: compiling numeric.c compiling object.c compiling pack.c compiling parse.c compiling process.c compiling random.c random.c:525:26: fatal error: linux/random.h: No such file or directory compilation terminated. Makefile:375: recipe for target 'random.o' failed make: *** [random.o] Error 1
Is there a package I can install to fix this issue?
Thanks and have a nice day
Try installing linux-headers and jemalloc-dev.
However, you'll probably hit another bug. In my case, I'm compiling with these commands:
----------
And here's the error message I get:
Hi elifarley.
Adding
linux-headers
did the trick for me.Thanks and have anice day.