-1

While trying to install RVM when I came across a problem:

Error running '__rvm_make -j2', please read /usr/local/rvm/log/1519159695_ruby-2.4.1/make.log There has been an error while running make. Halting the installation.

I was following a tutorial: https://www.digitalocean.com/community/tutorials/how-to-install-ruby-on-rails-with-rvm-on-debian-8

I executed the following commando:

cat rvm.sh | bash -s stable --rails

After that it gave me this output:

Downloading https://github.com/rvm/rvm/archive/1.29.3.tar.gz
Downloading https://github.com/rvm/rvm/releases/download/1.29.3/1.29.3.tar.gz.asc
gpg: Signature made Sun 10 Sep 2017 10:59:21 PM CEST using RSA key ID BF04FF17
gpg: Good signature from "Michal Papis (RVM signing) <mpapis@gmail.com>"
gpg:                 aka "Michal Papis <michal.papis@toptal.com>"
gpg:                 aka "[jpeg image of size 5015]"
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: 409B 6B17 96C2 7546 2A17  0311 3804 BB82 D39D C0E3
     Subkey fingerprint: 62C9 E5F4 DA30 0D94 AC36  166B E206 C29F BF04 FF17
GPG verified '/usr/local/rvm/archives/rvm-1.29.3.tgz'

Upgrading the RVM installation in /usr/local/rvm/
Upgrade of RVM in /usr/local/rvm/ is complete.

Upgrade Notes:

  * No new notes to display.

Ruby enVironment Manager 1.29.3 (latest) (c) 2009-2017 Michal Papis, Piotr Kuczynski, Wayne E. Seguin

ruby-2.4.1 - #removing src/ruby-2.4.1..
Searching for binary rubies, this might take some time.
No binary rubies available for: debian/8/x86_64/ruby-2.4.1.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for debian.
Requirements installation successful.
Found user configured '-j' flag in 'rvm_make_flags', please note that RVM can detect number of CPU threads and set the '-j' flag automatically if you do not set it.
Installing Ruby from source to: /usr/local/rvm/rubies/ruby-2.4.1, this may take a while depending on your cpu(s)...
ruby-2.4.1 - #downloading ruby-2.4.1, this may take a while depending on your connection...
ruby-2.4.1 - #extracting ruby-2.4.1 to /usr/local/rvm/src/ruby-2.4.1....
ruby-2.4.1 - #applying patch /usr/local/rvm/patches/ruby/2.4.1/random_c_using_NR_prefix.patch.
ruby-2.4.1 - #configuring..................................................................
ruby-2.4.1 - #post-configuration..
ruby-2.4.1 - #compiling.............
Error running '__rvm_make -j2',
please read /usr/local/rvm/log/1519159695_ruby-2.4.1/make.log
There has been an error while running make. Halting the installation.

Content of /usr/local/rvm/log/1519159695_ruby-2.4.1/make.log:

[2018-02-20 21:48:54] __rvm_make
__rvm_make ()
{
    \make "$@" || return $?
}
current path: /usr/local/rvm/src/ruby-2.4.1
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/rvm/bin
command(2): __rvm_make -j2
++ make -j2
        CC = gcc
        LD = ld
        LDSHARED = gcc -shared
        CFLAGS = -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat -Wsuggest-attribute=noreturn -Wsuggest-attribute=format -std=gnu99  -fPIC
        XCFLAGS = -D_FORTIFY_SOURCE=2 -fstack-protector -fno-strict-overflow -fvisibility=hidden -fexcess-precision=standard -DRUBY_EXPORT
        CPPFLAGS =   -I. -I.ext/include/x86_64-linux -I./include -I. -I./enc/unicode/9.0.0
        DLDFLAGS = -Wl,-soname,libruby.so.2.4  -fstack-protector
        SOLIBS = -lpthread -lgmp -ldl -lcrypt -lm
gcc (Debian 4.9.2-10+deb8u1) 4.9.2
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

translating probes probes.d
compiling main.c
<command-line>:0:10: warning: missing whitespace after the macro name
<command-line>:0:0: warning: "__STDC__" redefined
<built-in>: note: this is the location of the previous definition
compiling dmydln.c
compiling miniinit.c
compiling dmyext.c
compiling miniprelude.c
compiling array.c
compiling bignum.c
compiling class.c
compiling compar.c
compiling compile.c
compiling complex.c
compiling cont.c
compiling debug.c
compiling dir.c
compiling dln_find.c
compiling encoding.c
compiling enum.c
compiling enumerator.c
compiling error.c
compiling eval.c
compiling file.c
compiling gc.c
gc.c: In function ‘gc_prof_mark_timer_start’:
gc.c:8651:71: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
     do {if (RUBY_DTRACE_GC_##name##_ENABLED()) RUBY_DTRACE_GC_##name();} while (0)
                                                                       ^
gc.c:8655:5: note: in expansion of macro ‘RUBY_DTRACE_GC_HOOK’
     RUBY_DTRACE_GC_HOOK(MARK_BEGIN);
     ^
gc.c: In function ‘gc_prof_mark_timer_stop’:
gc.c:8651:71: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
     do {if (RUBY_DTRACE_GC_##name##_ENABLED()) RUBY_DTRACE_GC_##name();} while (0)
                                                                       ^
gc.c:8666:5: note: in expansion of macro ‘RUBY_DTRACE_GC_HOOK’
     RUBY_DTRACE_GC_HOOK(MARK_END);
     ^
gc.c: In function ‘gc_prof_sweep_timer_start’:
gc.c:8651:71: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
     do {if (RUBY_DTRACE_GC_##name##_ENABLED()) RUBY_DTRACE_GC_##name();} while (0)
                                                                       ^
gc.c:8678:5: note: in expansion of macro ‘RUBY_DTRACE_GC_HOOK’
     RUBY_DTRACE_GC_HOOK(SWEEP_BEGIN);
     ^
gc.c: In function ‘gc_prof_sweep_timer_stop’:
gc.c:8651:71: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
     do {if (RUBY_DTRACE_GC_##name##_ENABLED()) RUBY_DTRACE_GC_##name();} while (0)
                                                                       ^
gc.c:8691:5: note: in expansion of macro ‘RUBY_DTRACE_GC_HOOK’
     RUBY_DTRACE_GC_HOOK(SWEEP_END);
     ^
compiling hash.c
gc.c: At top level:
cc1: warning: unrecognized command line option "-Wno-self-assign"
cc1: warning: unrecognized command line option "-Wno-constant-logical-operand"
cc1: warning: unrecognized command line option "-Wno-parentheses-equality"
cc1: warning: unrecognized command line option "-Wno-tautological-compare"
compiling inits.c
compiling io.c
compiling iseq.c
compiling load.c
compiling marshal.c
compiling math.c
compiling node.c
compiling numeric.c
compiling object.c
compiling pack.c
compiling parse.c
compiling proc.c
compiling process.c
compiling random.c
compiling range.c
compiling rational.c
compiling re.c
compiling regcomp.c
compiling regenc.c
compiling regerror.c
compiling regexec.c
compiling regparse.c
compiling regsyntax.c
compiling ruby.c
compiling safe.c
compiling signal.c
compiling sprintf.c
compiling st.c
compiling strftime.c
compiling string.c
compiling struct.c
compiling symbol.c
compiling thread.c
compiling time.c
compiling transcode.c
compiling util.c
compiling variable.c
compiling version.c
compiling vm.c
compiling vm_backtrace.c
compiling vm_dump.c
compiling vm_trace.c
processing probes in object files
<command-line>:0:10: warning: missing whitespace after the macro name
<command-line>:0:0: warning: "__STDC__" redefined
<built-in>: note: this is the location of the previous definition
dtrace: failed to link script ./probes.d: drti.o is not available - please install it
Cannot locate: /usr/lib/dtrace/drti.o
(You can set env DTRACE_DRTI_O to point to the location of the object file)
Makefile:398: recipe for target 'probes.o' failed
make: *** [probes.o] Error 1
make: *** Waiting for unfinished jobs....
++ return 2

Is there any way to fix this?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.