Rvm error running make

Hey, recently I installed Ubuntu 17.10 and I successfully installed ruby-2.4.1, but while trying to install ruby-2.2.1 (and a few others, as a test), I'm getting "Error running '__rvm_...

Hey, recently I installed Ubuntu 17.10 and I successfully installed ruby-2.4.1, but while trying to install ruby-2.2.1 (and a few others, as a test), I’m getting «Error running ‘__rvm_make -j4′»

I’ve checked #3748 and a few others, but can’t seem to find a fix.

Description

«Error running ‘__rvm_make -j4′» when installing ruby-2.2.1 (and 2.1.0)

Steps to reproduce

  1. rvm install ruby-2.2.1

Expected behavior

To install ruby 2.2.1

Actual behavior

Error running '__rvm_make -j4',
please read /home/rafael/.rvm/log/1516816132_ruby-2.1.0/make.log
There has been an error while running make. Halting the installation.
  • command
  • config.log N/A
  • make.log

Environment info

ruby-2.4.1:

  system:
    uname:        "Linux jade 4.13.0-31-generic #34-Ubuntu SMP Fri Jan 19 16:34:46 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux"
    name:         "Ubuntu"
    version:      "17.10"
    architecture: "x86_64"
    bash:         "/bin/bash => GNU bash, version 4.4.12(1)-release (x86_64-pc-linux-gnu)"
    zsh:          " => not installed"
    remote_path:  "ubuntu/17.10/x86_64"

  rvm:
    version:      "1.29.3 (master)"
    updated:      "22 minutes 46 seconds ago"
    path:         "/home/rafael/.rvm"
    autolibs:     "[4] Allow RVM to use package manager if found, install missing dependencies, install package manager (only OS X)."

  ruby:
    interpreter:  "ruby"
    version:      "2.4.1p111"
    date:         "2017-03-22"
    platform:     "x86_64-linux"
    patchlevel:   "2017-03-22 revision 58053"
    full_version: "ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux]"

  homes:
    gem:          "/home/rafael/.rvm/gems/ruby-2.4.1"
    ruby:         "/home/rafael/.rvm/rubies/ruby-2.4.1"

  binaries:
    ruby:         "/home/rafael/.rvm/rubies/ruby-2.4.1/bin/ruby"
    irb:          "/home/rafael/.rvm/rubies/ruby-2.4.1/bin/irb"
    gem:          "/home/rafael/.rvm/rubies/ruby-2.4.1/bin/gem"
    rake:         "/home/rafael/.rvm/gems/ruby-2.4.1@global/bin/rake"

  environment:
    PATH:         "/home/rafael/.rvm/gems/ruby-2.4.1/bin:/home/rafael/.rvm/gems/ruby-2.4.1@global/bin:/home/rafael/.rvm/rubies/ruby-2.4.1/bin:/home/rafael/.rvm/bin:/home/rafael/.nvm/versions/node/v9.4.0/bin:/home/rafael/.local/share/umake/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"
    GEM_HOME:     "/home/rafael/.rvm/gems/ruby-2.4.1"
    GEM_PATH:     "/home/rafael/.rvm/gems/ruby-2.4.1:/home/rafael/.rvm/gems/ruby-2.4.1@global"
    MY_RUBY_HOME: "/home/rafael/.rvm/rubies/ruby-2.4.1"
    IRBRC:        "/home/rafael/.rvm/rubies/ruby-2.4.1/.irbrc"
    RUBYOPT:      ""
    gemset:       ""

Thanks!

Error running ‘__rvm_make install’

I’m new to programming trying to add Ruby 2.2 using RVM and receiving the below error. I’ve run rvm get stable and tried reinstalling, but getting the same error.

7 Answers 7

Try to update your rvm using command

Then try again. Hopefully it should work.

This error got me scratching my head when installing ruby through RVM on an M1 Macbook:

First you need to inspect the file make.log and see what the underlying error is. In my case it was:

I found the complete solution to my problem on this GitHub page. Here it is:

Step 1 Run in terminal: brew info libffi which will output the following:

Step 2 Run all 3 export commands in terminal to set the env variables.

Step 3 Finally, run the ruby installation command. In my case, it was:

In case you’re using rbenv there’s another working solution in that GH thread.

RubyGems is more secure now and you must have openssl installed for rvm to work. rvm doesn’t come with the newest openssl libs out of the box, so for now you have to add its package, and also specify the path to your openssl configuration when installing a new ruby. The nature of the error doesn’t really present itself, and it’s a bit of a pain when installing new rubies, but maybe this will be changed in the future.

To verify if this is your situation, if you still have access to your log file, check it to see if it is failing on the openssl library. Alternatively, you can run ruby -ropenssl -e «puts :OK» to see if you get an error (this assumes you have a different ruby version installed you can use).

If either are true, then follow these two OS-agnostic steps:

. based on whether it was a new or pre-existing install of ruby.

Источник

macOS 10.14.5 — Error running ‘__rvm_make -j8’ #4697

Comments

evandev commented May 17, 2019 •

Description

Unable to install Ruby 2.5.0 on macOS 10.14.5 (I have not attempted to install other ruby versions).

Steps to reproduce

  1. Update to macOS 10.14.5
  2. Perform a fresh install of RVM, either stable or master.
  3. Run rvm install «ruby-2.5.0»

rvm install 2.5.0
ruby-2.5.0 — #removing src/ruby-2.5.0..
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.14/x86_64/ruby-2.5.0.
Continuing with compilation. Please read ‘rvm help mount’ to get more information on binary rubies.
Checking requirements for osx.
Certificates bundle ‘/usr/local/etc/openssl@1.1/cert.pem’ is already up to date.
Requirements installation successful.
Installing Ruby from source to: /Users/QA/.rvm/rubies/ruby-2.5.0, this may take a while depending on your cpu(s).
ruby-2.5.0 — #downloading ruby-2.5.0, this may take a while depending on your connection.
ruby-2.5.0 — #extracting ruby-2.5.0 to /Users/QA/.rvm/src/ruby-2.5.0.
ruby-2.5.0 — #applying patch /Users/QA/.rvm/patches/ruby/2.5.0/prelude_gcc_diagnostic.patch.
ruby-2.5.0 — #applying patch /Users/QA/.rvm/patches/ruby/2.5.0/libressl_2_7.patch.
ruby-2.5.0 — #configuring. |
ruby-2.5.0 — #post-configuration.
ruby-2.5.0 — #compiling.
Error running ‘__rvm_make -j8’,
please read /Users/QA/.rvm/log/1558106728_ruby-2.5.0/make.log

There has been an error while running make. Halting the installation.

cat /Users/QA/.rvm/log/1558101895_ruby-2.5.0/make.log
[2019-05-17 10:06:33] __rvm_make
__rvm_make ()
<
make «$@» || return $?
>
current path: /Users/QA/.rvm/src/ruby-2.5.0
PATH=/usr/local/opt/coreutils/bin:/usr/local/opt/pkg-config/bin:/usr/local/opt/libtool/bin:/usr/local/opt/automake/bin:/usr/local/opt/autoconf/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/QA/.rvm/bin
command(2): __rvm_make -j8
++ make -j8
CC = gcc
LD = ld
LDSHARED = gcc -dynamiclib
CFLAGS = -O3 -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 -Wshorten-64-to-32 -Wimplicit-function-declaration -Wdivision-by-zero -Wdeprecated-declarations -Wextra-tokens -fno-common -pipe
XCFLAGS = -D_FORTIFY_SOURCE=2 -fstack-protector -fno-strict-overflow -fvisibility=hidden -DRUBY_EXPORT
CPPFLAGS = -I/usr/local/opt/libyaml/include -I/usr/local/opt/libksba/include -I/usr/local/opt/readline/include -I/usr/local/opt/zlib/include -I/usr/local/opt/openssl@1.1/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -I. -I.ext/include/x86_64-darwin18 -I./include -I. -I./enc/unicode/10.0.0
DLDFLAGS = -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -L/usr/local/opt/libyaml/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/zlib/lib -L/usr/local/opt/openssl@1.1/lib -install_name /Users/QA/.rvm/rubies/ruby-2.5.0/lib/libruby.2.5.dylib -compatibility_version 2.5 -current_version 2.5.0 -fstack-protector -framework Foundation -fstack-protector -framework Foundation
SOLIBS = -lpthread -lgmp -ldl -lobjc
LANG = en_US.UTF-8
LC_ALL =
LC_CTYPE =
Configured with: —prefix=/Library/Developer/CommandLineTools/usr —with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/c++/4.2.1
Apple LLVM version 10.0.1 (clang-1001.0.46.4)
Target: x86_64-apple-darwin18.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
compiling ./main.c
compiling dmydln.c
compiling miniinit.c
compiling dmyext.c
generating miniprelude.c
translating probes probes.d
compiling bignum.c
compiling class.c
miniprelude.c updated
compiling compar.c
. ./vm_opts.h
compiling compile.c
compiling complex.c
compiling cont.c
compiling debug.c
compiling debug_counter.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
compiling hash.c
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
compiling ./missing/explicit_bzero.c
compiling ./missing/setproctitle.c
compiling dmyenc.c
compiling dln.c
compiling localeinit.c
config.status: creating ruby-runner.h
generating prelude.c
compiling miniprelude.c
prelude.c updated
compiling array.c
compiling enc/ascii.c
compiling enc/us_ascii.c
compiling enc/unicode.c
compiling enc/utf_8.c
compiling enc/trans/newline.c
compiling prelude.c
linking miniruby
generating encdb.h
make: ./miniruby: Permission denied
make: ./miniruby: Permission denied
make: *** [.rbconfig.time] Error 1
make: *** Waiting for unfinished jobs.
make: *** [encdb.h] Error 1
++ return 2

Environment Info

system:
uname: «Darwin mac-3001.ecstuning.local 18.6.0 Darwin Kernel Version 18.6.0: Thu Apr 25 23:16:27 PDT 2019; root:xnu-4903.261.4

2/RELEASE_X86_64 x86_64″
name: «OSX»
version: «10.14»
architecture: «x86_64»
bash: «/bin/bash => GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin18)»
zsh: «/bin/zsh => zsh 5.3 (x86_64-apple-darwin18.0)»
remote_path: «osx/10.14/x86_64»
xcode: «10.2.1»

rvm:
version: «1.29.8-next (master)»
updated: «1 hour 9 minutes 28 seconds ago»
path: «/Users/QA/.rvm»
autolibs: «[4] Allow RVM to use package manager if found, install missing dependencies, install package manager (only OS X).»

homes:
gem: «not set»
ruby: «not set»

binaries:
ruby: «/usr/bin/ruby»
irb: «/usr/bin/irb»
gem: «/usr/bin/gem»
rake: «/usr/bin/rake»

environment:
PATH: «/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/QA/.rvm/bin»
GEM_HOME: «»
GEM_PATH: «»
MY_RUBY_HOME: «»
IRBRC: «»
RUBYOPT: «»
gemset: «»

The text was updated successfully, but these errors were encountered:

Источник

Error running ‘__rvm_make -j 1’

Today I was trying to install ruby 2.5.0, but I am getting this error every time.

console output with the error I got

My make.log file

I tried to completely uninstall rvm (rvm implode) and reinstall it but I wasn’t successful.

System

  • Mac OS X – High Sierra (10.13.3)
  • rvm 1.29.3 (latest)
  • Homebrew 1.5.4

4 Answers 4

Try rvm install 2.5.0 —disable-dtrace

possible Ruby build problem

I faced the same issue as the original poster.

Compilation would halt at

Inspection of the make.log revealed:

I finally found this reference to Avira Anti-virus in this link.

I went to Avira Anti-virus and selected «disable real time protection» and tried again. That fixed it.

For M1 processors:

Right click Terminal from the Application/Utilities folder, Get Info, and tick the «Open using Rosetta» box.

Check Homebrew is working fine: brew doctor

Reinstall openssl: brew install openssl

Install Ruby: rvm install 2.5.0

ruby-2.4.6 — #compiling — please wait Error running ‘__rvm_make -j4’, please read /Users/mgq/.rvm/log/1557891511_ruby-2.4.6/make.log

There has been an error while running make. Halting the installation.

It seems that Avira antivirus is running. It has been reported to cause failures on ruby compilation. Disable it for the time of the installation and try again.

Источник

rvm install ruby 2.3.0 — Error running ‘__rvm_make -j12’ #4915

Comments

kenyounot commented Apr 23, 2020

Description

Can’t install ruby 2.3.0 on Pop_OS(Ubuntu 20.04)

Steps to reproduce

Expected behavior

functional install of ruby version 2.3.0

Actual behavior

Make log attached below, seems like an OpenSSL issue, I have tried all the OpenSSL workarounds.

Environment info

system:
uname: «Linux pop-os 5.4.0-7624-generic #28 1586790353 20.04

9e10e31-Ubuntu SMP Mon Apr 13 19:56:56 UTC x86_64 x86_64 x86_64 GNU/Linux»
name: «Debian»
version: «bullseye_sid»
architecture: «x86_64»
bash: «/usr/bin/bash => GNU bash, version 5.0.16(1)-release (x86_64-pc-linux-gnu)»
zsh: » => not installed»
remote_path: «debian/bullseye_sid/x86_64»

rvm:
version: «1.29.10-next (master)»
updated: «21 minutes 33 seconds ago»
path: «/usr/share/rvm»
autolibs: «[4] Allow RVM to use package manager if found, install missing dependencies, install package manager (only OS X).»

ruby:
interpreter: «ruby»
version: «2.4.0p0»
date: «2016-12-24»
platform: «x86_64-linux»
patchlevel: «2016-12-24 revision 57164»
full_version: «ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-linux]»

homes:
gem: «/home/kenyounot/.rvm/gems/ruby-2.4.0»
ruby: «/usr/share/rvm/rubies/ruby-2.4.0»

binaries:
ruby: «/usr/share/rvm/rubies/ruby-2.4.0/bin/ruby»
irb: «/usr/share/rvm/rubies/ruby-2.4.0/bin/irb»
gem: «/usr/share/rvm/rubies/ruby-2.4.0/bin/gem»
rake: «/home/kenyounot/.rvm/gems/ruby-2.4.0/bin/rake»

environment:
PATH: «/home/kenyounot/.rvm/gems/ruby-2.4.0/bin:/home/kenyounot/.rvm/gems/ruby-2.4.0@global/bin:/usr/share/rvm/rubies/ruby-2.4.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/share/rvm/bin»
GEM_HOME: «/home/kenyounot/.rvm/gems/ruby-2.4.0»
GEM_PATH: «/home/kenyounot/.rvm/gems/ruby-2.4.0:/home/kenyounot/.rvm/gems/ruby-2.4.0@global»
MY_RUBY_HOME: «/usr/share/rvm/rubies/ruby-2.4.0»
IRBRC: «/usr/share/rvm/rubies/ruby-2.4.0/.irbrc»
RUBYOPT: «»
gemset: «»

The text was updated successfully, but these errors were encountered:

Источник

Ошибка при запуске ‘__rvm_make -j 1’ во время rvm Установка Ruby | Ошибка при открытии

Вероятно, вы ищете ошибку при запуске ‘__rvm_make -j 1’
Это только говорит, что во время компиляции рубина что-то пошло не так. Этот вопрос относится только к вам, если openssl и/или ossl_ssl является частью вашего сообщения об ошибке.
Но, возможно, ваша проблема аналогична, и вы можете решить свою проблему с некоторыми настройками.

Задний план
Сегодня я хотел удалить все драгоценности проекта, но забыл заранее указать путь для связки, чтобы все камни были установлены в

Поскольку это единственный проект rm -rf

/.rvm/gems/ruby-2.2.4/gems/* 2.2.4, хотя rm -rf

/.rvm/gems/ruby-2.2.4/gems/* будет отлично. Это не так. Бундлер ушел, а комплект поставки gem install bundler не работал.

Я удалил отверстие рубиновой установки с помощью rvm remove ruby-2.2.4 ant попытался переустановить его. Это консольный вывод с полученной ошибкой:

Консольный выход

Повторная попытка ничего не меняет. Я также попытался полностью удалить rvm ( rvm implode ) и переустановить его, но это не было успешным.

система
Mac OS X – El Capitan (10.11.3)
rvm 1.26.11 (последний)
Homebrew 0.9.5

Похоже, есть проблема с openssl.

rvm использует homebrew в качестве менеджера пакетов при моей установке (по умолчанию я предполагаю). Вы можете гарантировать, что с rvm autolibs homebrew .

Я переустановил openssl с помощью

и увидел через brew list что в моей системе был еще один пакет openssl с именем openssl098. Попытка переустановки также вызвала следующую ошибку:

Я просто удалил пакет с помощью

и снова заново установил openssl, чтобы убедиться, что openssl098 не является необходимой зависимостью. Но он не был установлен снова.

Впоследствии я попытался снова установить ruby-2.2.4 через rvm, и это сработало как шарм 🙂 Итак, я думаю, что мой пакет openssl по какой-то причине был сломан.

openssl098 был официально удален и больше не доступен. Скорее всего, у вас устаревшая версия rvm которая пытается построить против ветки 0.9.8 . Обновите rvm чтобы он исправил: rvm get head . Источник.

Я пытался установить ruby 1.9.3, но имел ошибку as- Ошибка при запуске ‘__rvm_make -j4’

Я следую @mpapis и решил проблему

Теперь у меня есть setup-

Это то, что сработало для меня. Я всегда забываю это сделать. Одно время.

Источник

#
8 лет, 11 месяцев назад

Темы:

1

Сообщения:

2

Участник с: 04 марта 2014

Здравствуйте!

Ставлю Ruby 2.0.0-p353 через rvm и получаю следующую ошибку:

$ rvm install ruby-2.0.0-p353
Searching for binary rubies, this might take some time.
No binary rubies available for: arch/libc-2.19/i386/ruby-2.0.0-p353.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for arch.
Requirements installation successful.
Installing Ruby from source to: /home/vmamaev/.rvm/rubies/ruby-2.0.0-p353, this may take a while depending on your cpu(s)...
ruby-2.0.0-p353 - #downloading ruby-2.0.0-p353, this may take a while depending on your connection...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 10.2M  100 10.2M    0     0   699k      0  0:00:14  0:00:14 --:--:-- 1647k
ruby-2.0.0-p353 - #extracting ruby-2.0.0-p353 to /home/vmamaev/.rvm/src/ruby-2.0.0-p353.
ruby-2.0.0-p353 - #applying patch /home/vmamaev/.rvm/patches/ruby/libyaml015.patch.
ruby-2.0.0-p353 - #applying patch /home/vmamaev/.rvm/patches/ruby/GH-488.patch.
ruby-2.0.0-p353 - #configuring.................................................
ruby-2.0.0-p353 - #post-configuration.
ruby-2.0.0-p353 - #compiling........................................................................
Error running '__rvm_make -j1',
showing last 15 lines of /home/vmamaev/.rvm/log/1393971787_ruby-2.0.0-p353/make.log
readline.c:1886:26: ошибка: «Function» undeclared (first use in this function)
     rl_pre_input_hook = (Function *)readline_pre_input_hook;
                          ^
readline.c:1886:26: замечание: each undeclared identifier is reported only once for each function it appears in
readline.c:1886:36: ошибка: expected expression before «)» token
     rl_pre_input_hook = (Function *)readline_pre_input_hook;
                                    ^
Makefile:227: ошибка выполнения рецепта для цели «readline.o»
make[2]: *** [readline.o] Ошибка 1
make[2]: выход из каталога «/home/vmamaev/.rvm/src/ruby-2.0.0-p353/ext/readline»
exts.mk:180: ошибка выполнения рецепта для цели «ext/readline/all»
make[1]: *** [ext/readline/all] Ошибка 2
make[1]: выход из каталога «/home/vmamaev/.rvm/src/ruby-2.0.0-p353»
uncommon.mk:179: ошибка выполнения рецепта для цели «build-ext»
make: *** [build-ext] Ошибка 2
There has been an error while running make. Halting the installation.

Пробовал ставить и самую последнюю версию 2.1.1 ошибка аналогичная, стоит ArchLinux самый свежий, все дефолтное.
Железо старое:
битность: 32;
2гб озу;
2200 проц (одно ядро, AMD Athlon).

red

#
8 лет, 11 месяцев назад

red avatar

Темы:

30

Сообщения:

1517

Участник с: 31 августа 2011

здесь и здесь смотрели ?

vmamaev

#
8 лет, 11 месяцев назад

Темы:

1

Сообщения:

2

Участник с: 04 марта 2014

red
здесь и здесь смотрели ?

Да, все сделал по инструкциям, ранее аналогичное проделывал на Debian и Ubuntu.

webhive

#
8 лет, 11 месяцев назад

Темы:

4

Сообщения:

73

Участник с: 12 сентября 2013

Блин — такая же проблема.
Началось это дело после обновления RVM.
До этого все ставилось нормально — есть установленные версии 2.0.0.
С выходом 2.1.1 обновил RVM, решил поставить и привет — ниче не собирается, причём старые версии тоже не собираются.

webhive

#
8 лет, 11 месяцев назад

Темы:

4

Сообщения:

73

Участник с: 12 сентября 2013

И кстати на CentOS такой ошибки нет — так что косяк тут именно арчевский.

webhive

#
8 лет, 11 месяцев назад

Темы:

4

Сообщения:

73

Участник с: 12 сентября 2013

В общем решение такое (для моего случая с версией 2.1.1)

rvm pkg install readline
rvm install 2.1.1

webhive

#
8 лет, 11 месяцев назад

Темы:

4

Сообщения:

73

Участник с: 12 сентября 2013

Хммм а вот 2.0.0 не пересобрался — его надо вот так

rvm install ruby-2.0.0-p353  -C --with-readline-dir=$HOME/.rvm/usr

Понравилась статья? Поделить с друзьями:
  • Rutracker org host error
  • Rutracker org error 522
  • Rutracker org 522 ошибка
  • Rutracker cloudflare ошибка
  • Rutoken код ошибки 0x6983