Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rvm install ruby-2.3.4 Error running '__rvm_make -j4', #4424

Open
Xyko opened this issue Jul 8, 2018 · 4 comments
Open

rvm install ruby-2.3.4 Error running '__rvm_make -j4', #4424

Xyko opened this issue Jul 8, 2018 · 4 comments

Comments

@Xyko
Copy link

Xyko commented Jul 8, 2018

Description

Can't get ruby 2.3.4 with RVM on Linux Mint Tara (Ubuntu 18.04 LTS based)

Steps to reproduce

rvm install ruby-2.3.4
ruby-2.3.4 - #removing src/ruby-2.3.4..
Searching for binary rubies, this might take some time.
No binary rubies available for: mint/19/x86_64/ruby-2.3.4.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for mint.
Installing requirements for mint.
Updating system..francisco password required for 'apt-get --quiet --yes update':
..
Installing required packages: libreadline6-dev...
Requirements installation successful.
Installing Ruby from source to: /home/francisco/.rvm/rubies/ruby-2.3.4, this may take a while depending on your cpu(s)...
ruby-2.3.4 - #downloading ruby-2.3.4, this may take a while depending on your connection...
ruby-2.3.4 - #extracting ruby-2.3.4 to /home/francisco/.rvm/src/ruby-2.3.4.....
ruby-2.3.4 - #applying patch /home/francisco/.rvm/patches/ruby/ruby_2_3_gcc7.patch.
ruby-2.3.4 - #applying patch /home/francisco/.rvm/patches/ruby/2.3.4/fix_rb_thread_fd_close.patch.
ruby-2.3.4 - #applying patch /home/francisco/.rvm/patches/ruby/2.3.4/random_c_using_NR_prefix.patch.
ruby-2.3.4 - #configuring..........................................................
ruby-2.3.4 - #post-configuration..
ruby-2.3.4 - #compiling..................................................................................................................................-
Error running '__rvm_make -j4',
please read /home/francisco/.rvm/log/1531056099_ruby-2.3.4/make.log
There has been an error while running make. Halting the installation.

Expected behavior

Getting operational ruby 2.3.4

Actual behavior

make.log

Obs.: The solution posted in (#4407) dont work. The error persist after this steps....

Environment info

ruby-2.4.1:

system:
uname: "Linux francisco-Latitude-7480 4.15.0-24-generic #26-Ubuntu SMP Wed Jun 13 08:44:47 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux"
name: "Mint"
version: "19"
architecture: "x86_64"
bash: "/bin/bash => GNU bash, version 4.4.19(1)-release (x86_64-pc-linux-gnu)"
zsh: "/usr/bin/zsh => zsh 5.4.2 (x86_64-ubuntu-linux-gnu)"
remote_path: "mint/19/x86_64"

rvm:
version: "1.29.4 (master)"
updated: "17 hours 23 minutes 54 seconds ago"
path: "/home/francisco/.rvm"
autolibs: "[packages] Allow RVM to use package manager if found, install missing dependencies."

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/francisco/.rvm/gems/ruby-2.4.1"
ruby: "/home/francisco/.rvm/rubies/ruby-2.4.1"

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

environment:
PATH: "/home/francisco/.rvm/gems/ruby-2.4.1/bin:/home/francisco/.rvm/gems/ruby-2.4.1@global/bin:/home/francisco/.rvm/rubies/ruby-2.4.1/bin:/home/francisco/bin:/home/francisco/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin:/home/francisco/.rvm/bin:/home/francisco/.rvm/bin"
GEM_HOME: "/home/francisco/.rvm/gems/ruby-2.4.1"
GEM_PATH: "/home/francisco/.rvm/gems/ruby-2.4.1:/home/francisco/.rvm/gems/ruby-2.4.1@global"
MY_RUBY_HOME: "/home/francisco/.rvm/rubies/ruby-2.4.1"
IRBRC: "/home/francisco/.rvm/rubies/ruby-2.4.1/.irbrc"
RUBYOPT: ""
gemset: ""

@Xyko
Copy link
Author

Xyko commented Jul 9, 2018

Folks,
I succeeded by doing this:
apt purge libssl-dev && apt install libssl1.0-dev...
After that the 'rvm install 2.3.5' works fine
Obs.: I tried before doing the same installation in a ubuntu 18.04 and the command 'rvm install 2.3.5' works fine too!
Is not the Tara version the same as ububtu 18.04? I'm afraid there will be other differences......

@danielpclark
Copy link

danielpclark commented Jul 13, 2018

I can confirm that the 1.29.4 version of RVM fixed this with the libssl dev apt package switch. I couldn't install Ruby 2.3.7 before but with the RVM upgrade it now works. I'm also on Ubuntu 18.04 LTS.

@feliarana
Copy link

feliarana commented Oct 16, 2018

Hi, I had a similar problem with LM 19 Tara edition. This solution helped me:

$ rvm pkg install openssl
$ rvm remove x.x.x
$ rvm install x.x.x -C --with-openssl-dir=$HOME/.rvm/usr

@brohit-97
Copy link

I had a similar problem and resolved it by
export warnflags=-Wno-error=implicit-function-declaration
export optflags="-w"
rvm install "ruby-2.6.3" --with-out-ext=fiddle

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants