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

Unable to install ruby 2.2 on Ubuntu 18.04 #4371

Open
arturoblanco opened this issue Apr 30, 2018 · 19 comments
Open

Unable to install ruby 2.2 on Ubuntu 18.04 #4371

arturoblanco opened this issue Apr 30, 2018 · 19 comments

Comments

@arturoblanco
Copy link

arturoblanco commented Apr 30, 2018

Description

I'm trying to install ruby 2.2.10 without any success due to error __rvm_make -j4, I try using the --with-gcc=gcc option with no success. I also tried without passing --with-gcc=gcc

Output for: rvm install 2.2.10

Searching for binary rubies, this might take some time.
No binary rubies available for: ubuntu/18.04/x86_64/ruby-2.2.10.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for ubuntu.
Installing requirements for ubuntu.
Updating system....
Installing required packages: libreadline6-dev....
Requirements installation successful.
Installing Ruby from source to: /usr/share/rvm/rubies/ruby-2.2.10, this may take a while depending on your cpu(s)...
ruby-2.2.10 - #downloading ruby-2.2.10, 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 12.7M  100 12.7M    0     0  3993k      0  0:00:03  0:00:03 --:--:-- 3992k
No checksum for downloaded archive, recording checksum in user configuration.
ruby-2.2.10 - #extracting ruby-2.2.10 to /usr/share/rvm/src/ruby-2.2.10....
ruby-2.2.10 - #configuring.........................................................
ruby-2.2.10 - #post-configuration..
ruby-2.2.10 - #compiling.....................................................................................................................................................................................
Error running '__rvm_make -j4',
please read /home/arturo/.rvm/log/1525055424_ruby-2.2.10/make.log
There has been an error while running make. Halting the installation.

Output for: rvm install 2.2.10 --with-gcc=gcc

ruby-2.2.10 - #removing src/ruby-2.2.10..
Checking requirements for ubuntu.
Installing requirements for ubuntu...
Installing required packages: libreadline6-dev....
Requirements installation successful.
Installing Ruby from source to: /usr/share/rvm/rubies/ruby-2.2.10, this may take a while depending on your cpu(s)...
ruby-2.2.10 - #downloading ruby-2.2.10, this may take a while depending on your connection...
ruby-2.2.10 - #extracting ruby-2.2.10 to /usr/share/rvm/src/ruby-2.2.10....
ruby-2.2.10 - #configuring.........................................................
ruby-2.2.10 - #post-configuration..
ruby-2.2.10 - #compiling.....................................................................................................................................................................................
Error running '__rvm_make -j4',
please read /home/arturo/.rvm/log/1525091257_ruby-2.2.10/make.log
There has been an error while running make. Halting the installation.

Steps to reproduce

  1. Install rvm following instructions for Ubuntu on ubuntu_rvm
  2. rvm install ruby 2.2.10 or rvm install ruby 2.2.10 --with-gcc=gcc

Expected behavior

Ruby version 2.2.10 installed

Actual behavior

Debug mode:

Environment info

ruby-2.4.1:

  system:
    uname:        "Linux MOSAICO-0011 4.15.0-20-generic #21-Ubuntu SMP Tue Apr 24 06:16:15 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux"
    name:         "Ubuntu"
    version:      "18.04"
    architecture: "x86_64"
    bash:         "/bin/bash => GNU bash, version 4.4.19(1)-release (x86_64-pc-linux-gnu)"
    zsh:          " => not installed"
    remote_path:  "ubuntu/18.04/x86_64"

  rvm:
    version:      "1.29.3 (manual)"
    updated:      "1 day 4 minutes 36 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.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/arturo/.rvm/gems/ruby-2.4.1"
    ruby:         "/usr/share/rvm/rubies/ruby-2.4.1"

  binaries:
    ruby:         "/usr/share/rvm/rubies/ruby-2.4.1/bin/ruby"
    irb:          "/usr/share/rvm/rubies/ruby-2.4.1/bin/irb"
    gem:          "/usr/share/rvm/rubies/ruby-2.4.1/bin/gem"
    rake:         "/usr/share/rvm/rubies/ruby-2.4.1/bin/rake"

  environment:
    PATH:         "/home/arturo/.rvm/gems/ruby-2.4.1/bin:/home/arturo/.rvm/gems/ruby-2.4.1@global/bin:/usr/share/rvm/rubies/ruby-2.4.1/bin:/usr/share/rvm/bin:/home/arturo/.rvm/gems/ruby-2.2.10/bin:/home/arturo/.rvm/gems/ruby-2.2.10@global/bin:/home/arturo/.rvm/gems/ruby-2.4.1/bin:/home/arturo/.rvm/gems/ruby-2.4.1@global/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"
    GEM_HOME:     "/home/arturo/.rvm/gems/ruby-2.4.1"
    GEM_PATH:     "/home/arturo/.rvm/gems/ruby-2.4.1:/home/arturo/.rvm/gems/ruby-2.4.1@global"
    MY_RUBY_HOME: "/usr/share/rvm/rubies/ruby-2.4.1"
    IRBRC:        "/usr/share/rvm/rubies/ruby-2.4.1/.irbrc"
    RUBYOPT:      ""
    gemset:       ""
@kewogc
Copy link

kewogc commented Apr 30, 2018

some trouble 10 minutes ago

@gkalil
Copy link

gkalil commented Apr 30, 2018

I have the same problem, read about some possible solutions but none worked so far.

@kewogc
Copy link

kewogc commented May 1, 2018

well. Alas, it's time for me to downgrade to Ubuntu 16.04 😭

@gkalil
Copy link

gkalil commented May 1, 2018

@kewogc waaait! I finally got it working doing sudo apt purge libssl-dev && sudo apt install libssl1.0-dev and then using rbenv instead of rvm to install older ruby versions. Hope it works for you too.

@arturoblanco
Copy link
Author

arturoblanco commented May 1, 2018

@gkalil I also tried dowgrading my openssl version to 1.0 but couldn't downgrade all of my dependencies.

One good news @kewogc @gkalil is that I manage to install ruby 2.2 using an Ubuntu boot and by following these installations steps:

  1. gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB

  2. I did not install RVM using it's Ubuntu package https://github.com/rvm/ubuntu_rvm but instead I used \curl -sSL https://get.rvm.io | bash developement version

  3. I ran rvm install 2.2.2 and this is the result:

Searching for binary rubies, this might take some time.
No binary rubies available for: ubuntu/18.04/x86_64/ruby-2.2.2.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for ubuntu.
Installing requirements for ubuntu.
Updating system....
Installing required packages: gawk, g++, gcc, autoconf, automake, bison, libc6-dev, libffi-dev, libgdbm-dev, libncurses5-dev, libsqlite3-dev, libtool, libyaml-dev, make, pkg-config, sqlite3, zlib1g-dev, libgmp-dev, libreadline-dev, libssl1.0-dev............................
Requirements installation successful.
Installing Ruby from source to: /home/ubuntu/.rvm/rubies/ruby-2.2.2, this may take a while depending on your cpu(s)...
ruby-2.2.2 - #downloading ruby-2.2.2, 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 12.6M  100 12.6M    0     0  11.8M      0  0:00:01  0:00:01 --:--:-- 11.8M
ruby-2.2.2 - #extracting ruby-2.2.2 to /home/ubuntu/.rvm/src/ruby-2.2.2.....
ruby-2.2.2 - #applying patch /home/ubuntu/.rvm/patches/ruby/2.2.2/fix_installing_bundled_gems.patch.
ruby-2.2.2 - #applying patch /home/ubuntu/.rvm/patches/ruby/2.2.2/openssl3.patch.
ruby-2.2.2 - #configuring........................................................
ruby-2.2.2 - #post-configuration..
ruby-2.2.2 - #compiling....................................................................................................................................................................................-
ruby-2.2.2 - #installing................
ruby-2.2.2 - #making binaries executable..
ruby-2.2.2 - #downloading rubygems-2.7.6
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  832k  100  832k    0     0   982k      0 --:--:-- --:--:-- --:--:--  981k
ruby-2.2.2 - #extracting rubygems-2.7.6.....
ruby-2.2.2 - #removing old rubygems........
ruby-2.2.2 - #installing rubygems-2.7.6..........................
ruby-2.2.2 - #gemset created /home/ubuntu/.rvm/gems/ruby-2.2.2@global
ruby-2.2.2 - #importing gemset /home/ubuntu/.rvm/gemsets/global.gems.............................................
ruby-2.2.2 - #generating global wrappers.......
ruby-2.2.2 - #gemset created /home/ubuntu/.rvm/gems/ruby-2.2.2
ruby-2.2.2 - #importing gemsetfile /home/ubuntu/.rvm/gemsets/default.gems evaluated to empty gem list
ruby-2.2.2 - #generating default wrappers.......
ruby-2.2.2 - #adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
Install of ruby-2.2.2 - #complete 
Please be aware that you just installed a ruby that requires 2 patches just to be compiled on an up to date linux system.
This may have known and unaccounted for security vulnerabilities.
Please consider upgrading to ruby-2.5.1 which will have all of the latest security patches.
Ruby was built without documentation, to build it run: rvm docs generate-ri

Environment Info

ruby-2.2.2:

  system:
    uname:        "Linux ubuntu 4.15.0-20-generic #21-Ubuntu SMP Tue Apr 24 06:16:15 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux"
    name:         "Ubuntu"
    version:      "18.04"
    architecture: "x86_64"
    bash:         "/bin/bash => GNU bash, version 4.4.19(1)-release (x86_64-pc-linux-gnu)"
    zsh:          " => not installed"
    remote_path:  "ubuntu/18.04/x86_64"

  rvm:
    version:      "1.29.3 (master)"
    updated:      "17 minutes 23 seconds ago"
    path:         "/home/ubuntu/.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.2.2p95"
    date:         "2015-04-13"
    platform:     "x86_64-linux"
    patchlevel:   "2015-04-13 revision 50295"
    full_version: "ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux]"

  homes:
    gem:          "/home/ubuntu/.rvm/gems/ruby-2.2.2"
    ruby:         "/home/ubuntu/.rvm/rubies/ruby-2.2.2"

  binaries:
    ruby:         "/home/ubuntu/.rvm/rubies/ruby-2.2.2/bin/ruby"
    irb:          "/home/ubuntu/.rvm/rubies/ruby-2.2.2/bin/irb"
    gem:          "/home/ubuntu/.rvm/rubies/ruby-2.2.2/bin/gem"
    rake:         "/home/ubuntu/.rvm/rubies/ruby-2.2.2/bin/rake"

  environment:
    PATH:         "/home/ubuntu/.rvm/gems/ruby-2.2.2/bin:/home/ubuntu/.rvm/gems/ruby-2.2.2@global/bin:/home/ubuntu/.rvm/rubies/ruby-2.2.2/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/ubuntu/.rvm/bin"
    GEM_HOME:     "/home/ubuntu/.rvm/gems/ruby-2.2.2"
    GEM_PATH:     "/home/ubuntu/.rvm/gems/ruby-2.2.2:/home/ubuntu/.rvm/gems/ruby-2.2.2@global"
    MY_RUBY_HOME: "/home/ubuntu/.rvm/rubies/ruby-2.2.2"
    IRBRC:        "/home/ubuntu/.rvm/rubies/ruby-2.2.2/.irbrc"
    RUBYOPT:      ""
    gemset:       ""

I'm going to try using the Ubuntu package installation and check if that's the problem

@arturoblanco
Copy link
Author

Description

@gkalil @kewogc Installation of Ruby 2.2.10 following Instructions above, worked just fine!

Output for: rvm install 2.2.10

rvm install 2.2.10
Searching for binary rubies, this might take some time.
No binary rubies available for: ubuntu/18.04/x86_64/ruby-2.2.10.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for ubuntu.
Requirements installation successful.
Installing Ruby from source to: /home/ubuntu/.rvm/rubies/ruby-2.2.10, this may take a while depending on your cpu(s)...
ruby-2.2.10 - #downloading ruby-2.2.10, 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 12.7M  100 12.7M    0     0  6142k      0  0:00:02  0:00:02 --:--:-- 6142k
ruby-2.2.10 - #extracting ruby-2.2.10 to /home/ubuntu/.rvm/src/ruby-2.2.10.....
ruby-2.2.10 - #applying patch /home/ubuntu/.rvm/patches/ruby/2.2.10/fix_installing_bundled_gems.patch.
ruby-2.2.10 - #configuring.........................................................
ruby-2.2.10 - #post-configuration..
ruby-2.2.10 - #compiling...................................................................................................................................................................................-
ruby-2.2.10 - #installing................
ruby-2.2.10 - #making binaries executable..
ruby-2.2.10 - #downloading rubygems-2.7.6
ruby-2.2.10 - #extracting rubygems-2.7.6......
ruby-2.2.10 - #removing old rubygems........
ruby-2.2.10 - #installing rubygems-2.7.6..........................
ruby-2.2.10 - #gemset created /home/ubuntu/.rvm/gems/ruby-2.2.10@global
ruby-2.2.10 - #importing gemset /home/ubuntu/.rvm/gemsets/global.gems.............................................
ruby-2.2.10 - #generating global wrappers.......
ruby-2.2.10 - #gemset created /home/ubuntu/.rvm/gems/ruby-2.2.10
ruby-2.2.10 - #importing gemsetfile /home/ubuntu/.rvm/gemsets/default.gems evaluated to empty gem list
ruby-2.2.10 - #generating default wrappers.......
ruby-2.2.10 - #adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
Install of ruby-2.2.10 - #complete 
Please be aware that you just installed a ruby that requires 1 patches just to be compiled on an up to date linux system.
This may have known and unaccounted for security vulnerabilities.
Please consider upgrading to ruby-2.5.1 which will have all of the latest security patches.
Ruby was built without documentation, to build it run: rvm docs generate-ri

Environment Info

ruby-2.2.10:

  system:
    uname:        "Linux ubuntu 4.15.0-20-generic #21-Ubuntu SMP Tue Apr 24 06:16:15 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux"
    name:         "Ubuntu"
    version:      "18.04"
    architecture: "x86_64"
    bash:         "/bin/bash => GNU bash, version 4.4.19(1)-release (x86_64-pc-linux-gnu)"
    zsh:          " => not installed"
    remote_path:  "ubuntu/18.04/x86_64"

  rvm:
    version:      "1.29.3 (master)"
    updated:      "28 minutes 11 seconds ago"
    path:         "/home/ubuntu/.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.2.10p489"
    date:         "2018-03-28"
    platform:     "x86_64-linux"
    patchlevel:   "2018-03-28 revision 63023"
    full_version: "ruby 2.2.10p489 (2018-03-28 revision 63023) [x86_64-linux]"

  homes:
    gem:          "/home/ubuntu/.rvm/gems/ruby-2.2.10"
    ruby:         "/home/ubuntu/.rvm/rubies/ruby-2.2.10"

  binaries:
    ruby:         "/home/ubuntu/.rvm/rubies/ruby-2.2.10/bin/ruby"
    irb:          "/home/ubuntu/.rvm/rubies/ruby-2.2.10/bin/irb"
    gem:          "/home/ubuntu/.rvm/rubies/ruby-2.2.10/bin/gem"
    rake:         "/home/ubuntu/.rvm/rubies/ruby-2.2.10/bin/rake"

  environment:
    PATH:         "/home/ubuntu/.rvm/gems/ruby-2.2.10/bin:/home/ubuntu/.rvm/gems/ruby-2.2.10@global/bin:/home/ubuntu/.rvm/rubies/ruby-2.2.10/bin:/home/ubuntu/.rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"
    GEM_HOME:     "/home/ubuntu/.rvm/gems/ruby-2.2.10"
    GEM_PATH:     "/home/ubuntu/.rvm/gems/ruby-2.2.10:/home/ubuntu/.rvm/gems/ruby-2.2.10@global"
    MY_RUBY_HOME: "/home/ubuntu/.rvm/rubies/ruby-2.2.10"
    IRBRC:        "/home/ubuntu/.rvm/rubies/ruby-2.2.10/.irbrc"
    RUBYOPT:      ""
    gemset:       ""

@raelgc
Copy link
Contributor

raelgc commented May 1, 2018

Using the Ubuntu package you can achieve the same, just:

  • update the package to remove the ssl dependencies
  • add the gpg key
  • fix permissions with rvm cleanup all
  • update rvm to master with rvm get master.

@raelgc
Copy link
Contributor

raelgc commented May 1, 2018

Aside my comment above (update the Ubuntu package, install the gpg keys and perform rvm get master) if you really want to uninstall the Ubuntu package, just run the usual sudo apt purge rvm: it'll automatically perform implode and remove all installed stuff.

There is no point at all to remove a Ubuntu package removing each files manually.

@davorb
Copy link

davorb commented May 17, 2018

I was able to reinstall it just fine after i did rvm implode.

@raelgc
Copy link
Contributor

raelgc commented May 17, 2018

@davorb Of course, you can run it and it'll remove the core of the Ubuntu package, but then you'll have a broken package.

Removing the Ubuntu package will perform rvm implode and will remove all related files.

@samuelebistoletti
Copy link

Got it working with that:

1. sudo apt purge libssl-dev && sudo apt install libssl1.0-dev
2. rvm install 2.3.5 --autolibs=disable

You must install RVM dependencies manually, otherwise, with autolibs enabled, RVM will try to update system dependencies and also libssl-dev (that you downgraded in the first step). If you don't want to manually install dependencies you can try to install Ruby with autolibs enabled, the installation will fail, at this point you have dependencies installalled, so you can downgrade libssl repeating all from step 1.

@biot023
Copy link

biot023 commented Jun 13, 2018

@raelgc 's comment on May 1st about upgrading RVM ubuntu package version seems to have fixed it for me... Fingers crossed, anyway!

@raelgc
Copy link
Contributor

raelgc commented Jun 13, 2018

Thanks for the feedback @biot023.

@rvm rvm deleted a comment from arturoblanco Jun 13, 2018
@raelgc
Copy link
Contributor

raelgc commented Jun 13, 2018

@arturoblanco I've removed your comment with instructions to remove the files from package without remove the package. Feel free to write new instructions if they'll not lead to a broken installed package (i.e, remove the package properly instead of remove the files from it). And again: the ubuntu package is updated with ssl dependencies removed.

@hodjam
Copy link

hodjam commented Jun 27, 2018

As samuelebistoletti said, the correct comment is "You must install RVM dependencies manually, otherwise, with autolibs enabled, RVM will try to update system dependencies and also libssl-dev (that you downgraded in the first step)...."

@raelgc
Copy link
Contributor

raelgc commented Jun 27, 2018

@hodjam Just update rvm to master as this issue is fixed on this branch.

@Sohair63
Copy link

Sohair63 commented Jul 7, 2018

for macOS high Sierra 10.13

i was getting

Error running '__rvm_make -j8',
please read /Users/sohair/.rvm/log/1530945891_ruby-2.3.6/make.log
There has been an error while running make. Halting the installation.

this is the content of the file make.log

cat /Users/sohair/.rvm/log/1530945891_ruby-2.3.6/make.log
[2018-07-06 23:46:04] __rvm_make
__rvm_make () 
{ 
    \make "$@" || return $?
}
current path: /Users/sohair/.rvm/src/ruby-2.3.6
PATH=/Users/sohair/.rvm/usr/bin:/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:/Users/sohair/Library/Python/3.6/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/usr/local/opt/qt@5.5/bin:/usr/local/opt/imagemagick@6/bin:/usr/local/opt/imagemagick@6/bin:/Users/sohair/.rbenv/bin:/usr/local/bin:/usr/local/opt/dirmngr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/sohair/.rvm/bin:/Users/sohair/.rvm/bin
command(2): __rvm_make -j8
++ make -j8
	CC = gcc
	LD = ld
	LDSHARED = gcc -dynamiclib
	CFLAGS = -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -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/readline/include -I/usr/local/opt/libksba/include -I/usr/local/opt/openssl/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -I. -I.ext/include/x86_64-darwin17 -I./include -I.
	DLDFLAGS = -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -L/usr/local/opt/libyaml/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/openssl/lib -install_name /Users/sohair/.rvm/rubies/ruby-2.3.6/lib/libruby.2.3.0.dylib -compatibility_version 2.3 -current_version 2.3.6  -fstack-protector -Wl,-u,_objc_msgSend -framework CoreFoundation  -fstack-protector -Wl,-u,_objc_msgSend -framework CoreFoundation  
	SOLIBS = -lpthread -lgmp -ldl -lobjc 
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 9.1.0 (clang-902.0.39.2)
Target: x86_64-apple-darwin17.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
translating probes probes.d
compiling main.c
compiling dmydln.c
compiling miniinit.c
compiling dmyext.c
compiling miniprelude.c
compiling bignum.c
compiling class.c
compiling compar.c
. ./vm_opts.h
compiling complex.c
compiling dir.c
compiling dln_find.c
compiling encoding.c
compiling enum.c
compiling enumerator.c
compiling error.c
compiling eval.c
compiling load.c
compiling proc.c
compiling file.c
compiling gc.c
In file included from file.c:23:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFString.h:13:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:72:
/usr/local/include/Block.h:16:3: error: Never include this file directly. Use <lzma.h> instead.
#       error Never include this file directly. Use <lzma.h> instead.
        ^
/usr/local/include/Block.h:93:2: error: unknown type name 'lzma_check'
        lzma_check check;
        ^
/usr/local/include/Block.h:148:2: error: unknown type name 'lzma_vli'
        lzma_vli compressed_size;
        ^
/usr/local/include/Block.h:172:2: error: unknown type name 'lzma_vli'
        lzma_vli uncompressed_size;
        ^
/usr/local/include/Block.h:200:2: error: unknown type name 'lzma_filter'
        lzma_filter *filters;
        ^
/usr/local/include/Block.h:217:20: error: use of undeclared identifier 'LZMA_CHECK_SIZE_MAX'
        uint8_t raw_check[LZMA_CHECK_SIZE_MAX];
                          ^
/usr/local/include/Block.h:231:2: error: unknown type name 'lzma_vli'
        lzma_vli reserved_int3;
        ^
/usr/local/include/Block.h:232:2: error: unknown type name 'lzma_vli'
        lzma_vli reserved_int4;
        ^
/usr/local/include/Block.h:233:2: error: unknown type name 'lzma_vli'
        lzma_vli reserved_int5;
        ^
/usr/local/include/Block.h:234:2: error: unknown type name 'lzma_vli'
        lzma_vli reserved_int6;
        ^
/usr/local/include/Block.h:235:2: error: unknown type name 'lzma_vli'
        lzma_vli reserved_int7;
        ^
/usr/local/include/Block.h:236:2: error: unknown type name 'lzma_vli'
        lzma_vli reserved_int8;
        ^
/usr/local/include/Block.h:237:2: error: unknown type name 'lzma_reserved_enum'
        lzma_reserved_enum reserved_enum1;
        ^
/usr/local/include/Block.h:238:2: error: unknown type name 'lzma_reserved_enum'
        lzma_reserved_enum reserved_enum2;
        ^
/usr/local/include/Block.h:239:2: error: unknown type name 'lzma_reserved_enum'
        lzma_reserved_enum reserved_enum3;
        ^
/usr/local/include/Block.h:240:2: error: unknown type name 'lzma_reserved_enum'
        lzma_reserved_enum reserved_enum4;
        ^
/usr/local/include/Block.h:261:2: error: unknown type name 'lzma_bool'
        lzma_bool ignore_check;
        ^
/usr/local/include/Block.h:263:2: error: unknown type name 'lzma_bool'
        lzma_bool reserved_bool2;
        ^
/usr/local/include/Block.h:264:2: error: unknown type name 'lzma_bool'
        lzma_bool reserved_bool3;
        ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
eval.c:776:8: warning: unused variable 'mid' [-Wunused-variable]
    ID mid = me->called_id;
       ^
compiling hash.c
20 errors generated.
make: *** [file.o] Error 1
make: *** Waiting for unfinished jobs....
1 warning generated.
++ return 2

after applying so many solution as described above I finally found sudo mv /usr/local/include /usr/local/include_old somewhere after which rvm install x.x.x worked.

@ljromero
Copy link

ljromero commented Sep 19, 2018

Fixed for Ubuntu 18.04 upgrading rvm to master rvm get master as @raelgc recommended. Maybe this issue could be just closed.

@rsurendraidexcel
Copy link

rsurendraidexcel commented Sep 7, 2019

**In ubutu 18.4 , active directory attached user domain user folder not able install ruby throught ruby
Problems:

rsurendra@idexcel.internal@laplen024:$ rvm install 2.5.5
Searching for binary rubies, this might take some time.
Found remote file https://rvm_io.global.ssl.fastly.net/binaries/ubuntu/18.04/x86_64/ruby-2.5.5.tar.bz2
Checking requirements for ubuntu.
Requirements installation successful.
ruby-2.5.5 - #configure
ruby-2.5.5 - #download
ruby-2.5.5 - #validate archive
ruby-2.5.5 - #extract
ruby-2.5.5 - #validate binary
ruby-2.5.5 - #setup
mkdir: cannot create directory ‘/home/rsurendra@global’: Permission denied
Can not create gemset 'global', permissions problem?
Required ruby-2.5.5 is not installed - installing.
ruby-2.5.5 - #removing rubies/ruby-2.5.5..
Searching for binary rubies, this might take some time.
Found remote file https://rvm_io.global.ssl.fastly.net/binaries/ubuntu/18.04/x86_64/ruby-2.5.5.tar.bz2
Checking requirements for ubuntu.
Requirements installation successful.
ruby-2.5.5 - #configure
ruby-2.5.5 - #download
ruby-2.5.5 - #validate archive
ruby-2.5.5 - #extract
ruby-2.5.5 - #validate binary
ruby-2.5.5 - #setup
mkdir: cannot create directory ‘/home/rsurendra@global’: Permission denied
Can not create gemset 'global', permissions problem?
rsurendra@idexcel.internal@laplen024:
$

My home directory and I am active directory user domain

$pwd
/home/rsurendra@idexcel.internal

I am not able install the ruby any version user@folder.domin**

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