WSL icon indicating copy to clipboard operation
WSL copied to clipboard

Can't install RVM

Open dnt294 opened this issue 10 years ago • 63 comments

I'm trying to install RVM, and when i try to run

curl -L https://get.rvm.io | bash -s stable

Bash return sth like this:

....
install: cannot create symlink to 'scripts/install" : invalid argument
...
tar: scripts/functions/requirements/mint: Cannot create symlink to ‘ubuntu’: Invalid argument
.... 
 (tar: scripts/functions/requirements/mint: Cannot create symlink to + all other linux OS ...
.....
tar: bin/rvm-installer: Cannot create symlink to ‘../binscripts/rvm-installer’: Invalid argument
tar: Exiting with failure status due to previous errors
Could not extract RVM sources.

It's look like someone got problem with symlink when install NVM here

https://github.com/creationix/nvm/issues/1054

dnt294 avatar Apr 18 '16 09:04 dnt294

@kaanoo2904 This is known issue see: #9 It's fixed in internal builds, more info here: https://github.com/Microsoft/BashOnWindows/issues/9#issuecomment-207904851

patryk9200 avatar Apr 18 '16 10:04 patryk9200

Closing this out as it's a duplicate of #9. Thanks for trying out our stuff and reporting the issue though!

benhillis avatar Apr 19 '16 02:04 benhillis

Reopening to discuss further install issues.

benhillis avatar Apr 22 '16 19:04 benhillis

Now that #9 is fixed, you can install RVM itself, but afterwards, it complains:

* WARNING: you are missing '/dev/fd' it is important for shell scripting used by RVM, You can fix it on most linux systems with: ln -sf /proc/self/fd /dev/fd

Indeed, when you then try to install a version of Ruby, you get lots of references to the problem:

root@ENTERPRISE:~# rvm install 2.2.3 ruby-2.2.3 - #removing src/ruby-2.2.3.. Searching for binary rubies, this might take some time. Found remote file https://rubies.travis-ci.org/ubuntu/14.04/x86_64/ruby-2.2.3.tar.bz2 Checking requirements for ubuntu. Requirements installation successful. df: Warning: cannot read table of mounted file systems: No such file or directory ruby-2.2.3 - #configure ruby-2.2.3 - #download ruby-2.2.3 - #validate archive cat: /dev/fd/63: No such file or directory cat: /dev/fd/63: No such file or directory The downloaded package for https://rubies.travis-ci.org/ubuntu/14.04/x86_64/ruby-2.2.3.tar.bz2, Does not contains single 'bin/ruby' or 'ruby-2.2.3', Only '' were found instead. Mounting remote ruby failed with status 4, trying to compile. df: Warning: cannot read table of mounted file systems: No such file or directory Checking requirements for ubuntu. grep: write error: Broken pipe sort: fflush failed: standard output: Broken pipe sort: write error Requirements installation successful. Installing Ruby from source to: /usr/local/rvm/rubies/ruby-2.2.3, this may take a while depending on your cpu(s)... ruby-2.2.3 - #downloading ruby-2.2.3, this may take a while depending on your connection... ruby-2.2.3 - #extracting ruby-2.2.3 to /usr/local/rvm/src/ruby-2.2.3.... cat: /dev/fd/63: No such file or directory cat: /dev/fd/63: No such file or directory cat: /dev/fd/63: No such file or directory bash: echo: write error: Broken pipe ruby-2.2.3 - #configuring......................................................... ruby-2.2.3 - #post-configuration.. ruby-2.2.3 - #compiling............................................................................... ruby-2.2.3 - #installing.......................... Error running '__rvm_make install', showing last 15 lines of /usr/local/rvm/log/1461353546_ruby-2.2.3/install.log make[2]: Entering directory /usr/local/rvm/src/ruby-2.2.3/ext/win32ole' make[2]: Nothing to be done forall'. make[2]: Leaving directory /usr/local/rvm/src/ruby-2.2.3/ext/win32ole' make[2]: Entering directory/usr/local/rvm/src/ruby-2.2.3/ext/zlib' make[2]: Leaving directory /usr/local/rvm/src/ruby-2.2.3/ext/zlib' make[2]: Entering directory/usr/local/rvm/src/ruby-2.2.3' make[2]: ruby' is up to date. make[2]: Leaving directory/usr/local/rvm/src/ruby-2.2.3' make[1]: Leaving directory /usr/local/rvm/src/ruby-2.2.3' ./miniruby -I./lib -I. -I.ext/common ./tool/runruby.rb --extout=.ext -- --disable-gems -r./x86_64-linux-fake ./tool/rbinstall.rb --make="make" --dest-dir="" --extout=".ext" --mflags="" --make-flags="" --data-mode=0644 --prog-mode=0755 --installed-list .installed.list --mantype="doc" ./tool/runruby.rb:70: warning: Insecure world writable dir /usr/local/rvm/bin in PATH, mode 042777 ./tool/runruby.rb:99:inexec': Cannot allocate memory - ./ruby (Errno::ENOMEM) from ./tool/runruby.rb:99:in `

' make: *** [do-install-nodoc] Error 1 ++ return 2 There has been an error while running make install. Halting the installation.

davidkrider avatar Apr 22 '16 19:04 davidkrider

are you using an internal build? cause i've just updated to 14328 and i'm still being hold back by symlink issue

oh, wait, it's actually another error this only happens if I try to install rvm as NON-root

$ curl -sSL https://get.rvm.io | bash
Downloading https://github.com/rvm/rvm/archive/master.tar.gz
tar: README.rdoc: Cannot utime: Operation not permitted
tar: README.txt: Cannot utime: Operation not permitted
tar: bin/ruby-rvm-env: Cannot utime: Operation not permitted
tar: bin/rvm-shebang-ruby: Cannot utime: Operation not permitted
tar: install: Cannot utime: Operation not permitted
tar: scripts/functions/requirements/amazon: Cannot utime: Operation not permitted
tar: scripts/functions/requirements/clearos: Cannot utime: Operation not permitted
tar: scripts/functions/requirements/debian: Cannot utime: Operation not permitted
tar: scripts/functions/requirements/devuan: Cannot utime: Operation not permitted
tar: scripts/functions/requirements/fedora: Cannot utime: Operation not permitted
tar: scripts/functions/requirements/mageia: Cannot utime: Operation not permitted
tar: scripts/functions/requirements/manjaro: Cannot utime: Operation not permitted
tar: scripts/functions/requirements/mint: Cannot utime: Operation not permitted
tar: scripts/functions/requirements/omnios: Cannot utime: Operation not permitted
tar: scripts/functions/requirements/oracle: Cannot utime: Operation not permitted
tar: scripts/functions/requirements/redhat: Cannot utime: Operation not permitted
tar: scripts/functions/requirements/rosadesktop: Cannot utime: Operation not permitted
tar: scripts/functions/requirements/scientific: Cannot utime: Operation not permitted
tar: scripts/functions/requirements/suse: Cannot utime: Operation not permitted
tar: scripts/zsh/Completion/_rvm: Cannot utime: Operation not permitted
tar: patches/ree/1.8.7/zlib-gc-fix.diff: Cannot utime: Operation not permitted
tar: patches/ree/1.8.7/readline-fix.diff: Cannot utime: Operation not permitted
tar: bin/rvm-installer: Cannot utime: Operation not permitted
tar: Exiting with failure status due to previous errors
Could not extract RVM sources.
Downloading https://bitbucket.org/mpapis/rvm/get/master.tar.gz
tar: README.rdoc: Cannot utime: Operation not permitted
tar: README.txt: Cannot utime: Operation not permitted
tar: bin/ruby-rvm-env: Cannot utime: Operation not permitted
tar: bin/rvm-shebang-ruby: Cannot utime: Operation not permitted
tar: install: Cannot utime: Operation not permitted
tar: scripts/functions/requirements/amazon: Cannot utime: Operation not permitted
tar: scripts/functions/requirements/clearos: Cannot utime: Operation not permitted
tar: scripts/functions/requirements/debian: Cannot utime: Operation not permitted
tar: scripts/functions/requirements/devuan: Cannot utime: Operation not permitted
tar: scripts/functions/requirements/fedora: Cannot utime: Operation not permitted
tar: scripts/functions/requirements/mageia: Cannot utime: Operation not permitted
tar: scripts/functions/requirements/manjaro: Cannot utime: Operation not permitted
tar: scripts/functions/requirements/mint: Cannot utime: Operation not permitted
tar: scripts/functions/requirements/omnios: Cannot utime: Operation not permitted
tar: scripts/functions/requirements/oracle: Cannot utime: Operation not permitted
tar: scripts/functions/requirements/redhat: Cannot utime: Operation not permitted
tar: scripts/functions/requirements/rosadesktop: Cannot utime: Operation not permitted
tar: scripts/functions/requirements/scientific: Cannot utime: Operation not permitted
tar: scripts/functions/requirements/suse: Cannot utime: Operation not permitted
tar: scripts/zsh/Completion/_rvm: Cannot utime: Operation not permitted
tar: patches/ree/1.8.7/zlib-gc-fix.diff: Cannot utime: Operation not permitted
tar: patches/ree/1.8.7/readline-fix.diff: Cannot utime: Operation not permitted
tar: bin/rvm-installer: Cannot utime: Operation not permitted
tar: Exiting with failure status due to previous errors
Could not extract RVM sources.

dreyks avatar Apr 23 '16 10:04 dreyks

I use a non-root user on my system as well and got the same as @dreyks on 14328.

hfaran avatar Apr 24 '16 03:04 hfaran

Wanted to give an update here since this is a topic a lot of people care about. Wrote this up in #50, but adding it here.

RVM install failed for me on 14328. For fun, I tried it on an internal build and seeing:

  • Install worked but with a non-critical error
  • rvm install 1.9.2 displayed more non-critical errors
  • rvm use 1.9.2 required me to launch bash with "bash -c "/bin/bash --login"

Output is:

russ@RUSSALEX-DESK:~$ rvm use 1.9.2 Using /home/russ/.rvm/gems/ruby-1.9.2-p330 russ@RUSSALEX-DESK:~$ ruby -version ruby 1.9.2p330 (2014-08-07 revision 47094) [x86_64-linux] -e:1:in <main>': undefined local variable or methodrsion' for main:Object (NameError)

Punchline is: this build is much better than the last, but good things are still on the way.

russalex avatar Apr 25 '16 23:04 russalex

Since 14332 has landed, I successfully managed to install rvm as a non-root user but the ruby installation still fails.

$ rvm install 2.3.0
Searching for binary rubies, this might take some time.
Found remote file https://rubies.travis-ci.org/ubuntu/14.04/x86_64/ruby-2.3.0.tar.bz2
Checking requirements for ubuntu.
Requirements installation successful.
df: Warning: cannot read table of mounted file systems: No such file or directory
ruby-2.3.0 - #configure
ruby-2.3.0 - #download
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 25.1M  100 25.1M    0     0  2976k      0  0:00:08  0:00:08 --:--:-- 5271k
No checksum for downloaded archive, recording checksum in user configuration.
ruby-2.3.0 - #validate archive
cat: /dev/fd/63: No such file or directory
cat: /dev/fd/63: No such file or directory
The downloaded package for https://rubies.travis-ci.org/ubuntu/14.04/x86_64/ruby-2.3.0.tar.bz2,
Does not contains single 'bin/ruby' or 'ruby-2.3.0',
Only '' were found instead.
Mounting remote ruby failed with status 4, trying to compile.
df: Warning: cannot read table of mounted file systems: No such file or directory
Checking requirements for ubuntu.
Requirements installation successful.
Installing Ruby from source to: /home/dreyk/.rvm/rubies/ruby-2.3.0, this may take a while depending on your cpu(s)...
sort: fflush failed: standard output: Broken pipe
sort: write error
grep: write error: Broken pipe
ruby-2.3.0 - #downloading ruby-2.3.0, 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 13.5M  100 13.5M    0     0  2557k      0  0:00:05  0:00:05 --:--:-- 3575k
ruby-2.3.0 - #extracting ruby-2.3.0 to /home/dreyk/.rvm/src/ruby-2.3.0....
cat: /dev/fd/63: No such file or directory
cat: /dev/fd/63: No such file or directory
cat: /dev/fd/63: No such file or directory
ruby-2.3.0 - #configuring..........................................................
ruby-2.3.0 - #post-configuration..
ruby-2.3.0 - #compiling....................................
ruby-2.3.0 - #installing......
Error running '__rvm_make install',
showing last 15 lines of /home/dreyk/.rvm/log/1461880464_ruby-2.3.0/install.log
make[2]: Entering directory `/home/dreyk/.rvm/src/ruby-2.3.0/ext/io/nonblock'
rm -f ../../../.ext/x86_64-linux/io/nonblock.so ../../../.ext/.timestamp/.RUBYARCHDIR.-.io.time
rmdir --ignore-fail-on-non-empty -p ../../../.ext/x86_64-linux/io 2> /dev/null || true
rm -f
rm -f ../../../.ext/x86_64-linux/io/nonblock.so  *.o  *.bak mkmf.log .*.time
rm -f Makefile extconf.h conftest.* mkmf.log
rm -f core ruby *~
rmdir --ignore-fail-on-non-empty -p  2> /dev/null || true
make[2]: Leaving directory `/home/dreyk/.rvm/src/ruby-2.3.0/ext/io/nonblock'
make[1]: Leaving directory `/home/dreyk/.rvm/src/ruby-2.3.0'
./miniruby -I./lib -I. -I.ext/common  ./tool/runruby.rb --extout=.ext  -- --disable-gems -r./x86_64-linux-fake ./tool/rbinstall.rb --make="make" --dest-dir="" --extout=".ext" --mflags="" --make-flags="" --data-mode=0644 --prog-mode=0755 --installed-list .installed.list --mantype="doc"
./ruby is not found.
Try `make' first, then `make test', please.
make: *** [do-install-nodoc] Error 1
++ return 2
There has been an error while running make install. Halting the installation.

dreyks avatar Apr 28 '16 22:04 dreyks

Have you tried extracting the ruby package manually and running make then make test ?

PurityControl avatar Apr 29 '16 07:04 PurityControl

Yup. Everything seems ok?

$ make test
        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 -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat -std=iso9899:1999  -fPIC
        XCFLAGS = -D_FORTIFY_SOURCE=2 -fstack-protector -fno-strict-overflow -fvisibility=hidden -DRUBY_EXPORT
        CPPFLAGS =   -I. -I.ext/include/x86_64-linux -I./include -I.
        DLDFLAGS = -Wl,-soname,libruby.so.2.3  -fstack-protector
        SOLIBS = -lpthread -lgmp -ldl -lcrypt -lm
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.4-2ubuntu1~14.04.1' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.1)
linking ruby

test succeeded
PASS all 1010 tests
exec ./miniruby -I./lib -I. -I.ext/common  ./tool/runruby.rb --extout=.ext  -- --disable-gems "./bootstraptest/runner.rb" --ruby="ruby --disable-gems"   ./KNOWNBUGS.rb
2016-04-29 17:25:45 +0000
Driver is ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux]
Target is ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux]

KNOWNBUGS.rb  PASS 0
No tests, no problem

dreyks avatar Apr 29 '16 17:04 dreyks

I'd like to +1 dreyks comment above. I have the same results, using RVM and building rbenv as per http://qiita.com/chimame/items/3787a59eca1005b89eac (sorry about the Japanese, just follow the terminal commands as they are self explanatory).

Regardless of the path I take, the same make error persists

Edit: It should be noted that for some reason my VMs (Orical VBox w/ Vagrant) were completely toasted by this failed install today. Had to revert out of insider build, had failed uninstalls of VBox, and when I got it back, vbox was cleaned out. Files were there but all installs were removed.

jvilleneuve avatar May 09 '16 04:05 jvilleneuve

I verified this morning that I was able to user RVM to install ruby 2.3.0 without issues on our internal build. I know that RVM was using some clone support that we lit up recently so it looks like this is resolved.

benhillis avatar May 09 '16 18:05 benhillis

Great! really appreciate! regards.

zerocool4u2 avatar May 09 '16 19:05 zerocool4u2

@benhillis Can you also verify that you can build ruby via rbenv?

The error was the same, so I'd like to confirm that it was the same issue, and not separate.

jvilleneuve avatar May 10 '16 00:05 jvilleneuve

@benhills do you know when the next update is likely to be pushed out with this fix in it?

PurityControl avatar May 10 '16 06:05 PurityControl

@PurityControl @benhillis has mentioned before that his team has no influence on when new flights are released to the fast ring. If you're on the fast ring, just be on the watch for an update and it will likely be in that.

hfaran avatar May 10 '16 07:05 hfaran

@hfaran many thanks

PurityControl avatar May 10 '16 07:05 PurityControl

I'm currently on build 14342 which is supposed to fix the memory allocation issue. Am I missing something?

Trying to install ruby 2.2.4

root@DESKTOP-V6SLQKF:/usr/local/rvm/src/ruby-2.2.4# make test 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 -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat -std=iso9899:1999 XCFLAGS = -D_FORTIFY_SOURCE=2 -fstack-protector -fno-strict-overflow -fvisibility=hidden -DRUBY_EXPORT -fPIE CPPFLAGS = -I. -I.ext/include/x86_64-linux -I./include -I. DLDFLAGS = -fstack-protector -pie SOLIBS = -lgmp Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.4-2ubuntu1~14.04.1' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.1) making enc make[1]: Entering directory/usr/local/rvm/src/ruby-2.2.4' make[1]: Nothing to be done for enc'. make[1]: Leaving directory/usr/local/rvm/src/ruby-2.2.4' making srcs under enc make[1]: Entering directory /usr/local/rvm/src/ruby-2.2.4' make[1]: Nothing to be done forsrcs'. make[1]: Leaving directory /usr/local/rvm/src/ruby-2.2.4' generating transdb.h transdb.h unchanged making trans make[1]: Entering directory/usr/local/rvm/src/ruby-2.2.4' make[1]: Nothing to be done for ./enc/trans'. make[1]: Leaving directory/usr/local/rvm/src/ruby-2.2.4' making encs make[1]: Entering directory /usr/local/rvm/src/ruby-2.2.4' make[1]: Leaving directory/usr/local/rvm/src/ruby-2.2.4' generating makefile exts.mk Failed to configure -test-/win32/console. It will not be installed. Failed to configure -test-/win32/dln. It will not be installed. Failed to configure -test-/win32/dln/empty. It will not be installed. Failed to configure -test-/win32/fd_setsize. It will not be installed. configuring mathn/rational Failed to configure tk. It will not be installed. Failed to configure tk/tkutil. It will not be installed. Failed to configure win32. It will not be installed. Failed to configure win32ole. It will not be installed. make[1]: Entering directory /usr/local/rvm/src/ruby-2.2.4' make -C ext/mathn/rational -w V= realclean make[2]: Entering directory/usr/local/rvm/src/ruby-2.2.4/ext/mathn/rational' rm -f ../../../.ext/x86_64-linux/mathn/rational.so rmdir --ignore-fail-on-non-empty -p ../../../.ext/x86_64-linux/mathn 2> /dev/null || true rm -f rm -f ../../../.ext/x86_64-linux/mathn/rational.so .o *.bak mkmf.log ..time rm -f Makefile extconf.h conftest.* mkmf.log rm -f core ruby ~ rmdir --ignore-fail-on-non-empty -p 2> /dev/null || true make[2]: Leaving directory /usr/local/rvm/src/ruby-2.2.4/ext/mathn/rational' make[1]: Leaving directory/usr/local/rvm/src/ruby-2.2.4' Generating RDoc documentation ./tool/runruby.rb:70: warning: Insecure world writable dir /usr/local/rvm/gems in PATH, mode 042777 ./tool/runruby.rb:100:in exec': Cannot allocate memory - ./ruby (Errno::ENOMEM) from ./tool/runruby.rb:100:in

' make: ** [rdoc] Error 1`

ghost avatar May 12 '16 04:05 ghost

I tried to install ruby-2.2.3 with RVM. Still failed.

Searching for binary rubies, this might take some time. Found remote file https://rubies.travis-ci.org/ubuntu/14.04/x86_64/ruby-2.2.3.tar.bz2 Checking requirements for ubuntu. Requirements installation successful. df: Warning: cannot read table of mounted file systems: No such file or directory ruby-2.2.3 - #configure ruby-2.2.3 - #download % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0 100 22.9M 100 22.9M 0 0 101k 0 0:03:51 0:03:51 --:--:-- 85183 No checksum for downloaded archive, recording checksum in user configuration. ruby-2.2.3 - #validate archive cat: /dev/fd/63: No such file or directory cat: /dev/fd/63: No such file or directory The downloaded package for https://rubies.travis-ci.org/ubuntu/14.04/x86_64/ruby-2.2.3.tar.bz2, Does not contains single 'bin/ruby' or 'ruby-2.2.3', Only '' were found instead. Mounting remote ruby failed with status 4, trying to compile. df: Warning: cannot read table of mounted file systems: No such file or directory Checking requirements for ubuntu. Requirements installation successful. sort: fflush failed: standard output: Broken pipe sort: write error grep: write error: Broken pipe Installing Ruby from source to: /usr/local/rvm/rubies/ruby-2.2.3, this may take a while depending on your cpu(s)... ruby-2.2.3 - #downloading ruby-2.2.3, 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 1359k 0 0:00:09 0:00:09 --:--:-- 1620k ruby-2.2.3 - #extracting ruby-2.2.3 to /usr/local/rvm/src/ruby-2.2.3.... cat: /dev/fd/63: No such file or directory cat: /dev/fd/63: No such file or directory cat: /dev/fd/63: No such file or directory bash: echo: write error: Broken pipe ruby-2.2.3 - #configuring......................................................... ruby-2.2.3 - #post-configuration.. ruby-2.2.3 - #compiling................................... ruby-2.2.3 - #installing....... Error running '__rvm_make install', showing last 15 lines of /usr/local/rvm/log/1463064119_ruby-2.2.3/install.log make[2]: Entering directory /usr/local/rvm/src/ruby-2.2.3/ext/mathn/rational' rm -f ../../../.ext/x86_64-linux/mathn/rational.so rmdir --ignore-fail-on-non-empty -p ../../../.ext/x86_64-linux/mathn 2> /dev/null || true rm -f rm -f ../../../.ext/x86_64-linux/mathn/rational.so *.o *.bak mkmf.log .*.time rm -f Makefile extconf.h conftest.* mkmf.log rm -f core ruby *~ rmdir --ignore-fail-on-non-empty -p 2> /dev/null || true make[2]: Leaving directory/usr/local/rvm/src/ruby-2.2.3/ext/mathn/rational' make[1]: Leaving directory /usr/local/rvm/src/ruby-2.2.3' ./miniruby -I./lib -I. -I.ext/common ./tool/runruby.rb --extout=.ext -- --disable-gems -r./x86_64-linux-fake ./tool/rbinstall.rb --make="make" --dest-dir="" --extout=".ext" --mflags="" --make-flags="" --data-mode=0644 --prog-mode=0755 --installed-list .installed.list --mantype="doc" ./ruby is not found. Trymake' first, then `make test', please. make: *** [do-install-nodoc] Error 1 ++ return 2 There has been an error while running make install. Halting the installation.

Austin-Qu avatar May 12 '16 15:05 Austin-Qu

Same error, but can install ruby without using rvm without issue

$ sudo apt-add-repository ppa:brightbox/ruby-ng $ sudo apt-get update sudo apt-get install ruby2.3 ruby2.3-dev

dev-seahouse avatar May 13 '16 09:05 dev-seahouse