-
Notifications
You must be signed in to change notification settings - Fork 835
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
Can't install RVM #222
Comments
@kaanoo2904 This is known issue see: #9 |
Closing this out as it's a duplicate of #9. Thanks for trying out our stuff and reporting the issue though! |
Reopening to discuss further install issues. |
Now that #9 is fixed, you can install RVM itself, but afterwards, it complains:
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 make: *** [do-install-nodoc] Error 1 ++ return 2 There has been an error while running make install. Halting the installation. |
oh, wait, it's actually another error
|
I use a non-root user on my system as well and got the same as @dreyks on 14328. |
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:
Output is:
Punchline is: this build is much better than the last, but good things are still on the way. |
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. |
Have you tried extracting the ruby package manually and running |
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 |
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. |
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. |
Great! really appreciate! regards. |
@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. |
@benhills do you know when the next update is likely to be pushed out with this fix in it? |
@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 many thanks |
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
make: *_* [rdoc] Error 1` |
I tried to install ruby-2.2.3 with RVM. Still failed. Searching for binary rubies, this might take some time. |
Same error, but can install ruby without using rvm without issue $ sudo apt-add-repository ppa:brightbox/ruby-ng |
@dev-seahouse your Ruby on Rails is working without problems? |
Tried to install rvm on build 14342 with german language pack. This is the error: Upgrading the RVM installation in /home/kings/.rvm/ kings,Thank you for using RVM!We sincerely hope that RVM helps to make your life easier and more enjoyable!!!~Wayne, Michal & team.In case of problems: https://rvm.io/help and https://twitter.com/rvm_io Upgrade Notes: /home/kings/.zshrc:56: export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/kings/.rvm/bin:/home/kings/.rvm/bin"
rvm 1.27.0 (latest) by Wayne E. Seguin wayneeseguin@gmail.com, Michal Papis mpapis@gmail.com [https://rvm.io/] |
@natanlim This does not work for me. Some native extensions won't build properly. mkmf generated Makefile causes "missing separator".
|
Has anyone been able to run rails application without any problems already? |
I've validated that rvm is working on our internal development build, the |
Heh, I should have searched first: #352 |
how did you install ruby 2.3.1? I have still struck on RVM installation. I have 14342. Do I need to Turn Bash feature OFF and then turn it on and re-install BASH on Windows? I am not sure how do I re-install Bash on Windows
|
There's no fatal error in your log. It's still compiling The build that succeeded for me was 14352 You can uninstall WSL with |
@dreyks and it is forever compiling and retrying :( |
You never pasted the error that the compile failed with. What does it fail with? |
@hut8 wait I'll btw have you got rails running? |
I've got Rails running. |
Hey @hut8 @dreyks can you address this issue of
I have created a question on Stackoverflow. Please see the complete error with detail. Thanks |
rvm installs ruby into what does |
|
Yaa its RVM that's maintaining Ruby(forgot that). So what should I mention in .bashrc file? Looks like .bashrc file doesn't include Ruby PATH and that's the reason I see this message. I guess |
Thanks for the update! I have Ruby installed, now having issues with Postgres. Anyone know of an existing issue with |
Just to confirm, I got the latest build this morning. I've managed to build both ruby-2.2.2 and ruby-2.3.0. Thanks for the great work! |
Which build resolves that issue? |
Windows 10 Insider Preview 14352 Although now my only problem is when I run "rails server -b 0.0.0.0" and go to localhost:3000 the browser icon spins but the server does not respond. I will keep looking! |
simply |
Yep, but I've worked it out now. It seems that thin was the problem. I switched to webrick and the app now runs perfectly. I don't exactly no what the problem was with thin but this solution works for now! |
I couldn't get postgres to work. It installed successfully, but when I was trying to connect as the default user, I got the error message "setresuid() [1000,106,1000]->[-1,0-1]: Operation not permitted" |
I also can't get postgres to work. I guess I'm going to try to install the real Windows version, but my "Services for Linux" is giving me a lot of strange errors with this new release.
|
I found a tutorial on gorails.com. We may have to wait a few more builds to get everything work smoothly. |
I would suggest using the Windows Postgres version, it works wonderfully in conjunction. No more VirtualBox for me :D |
Ok, so 14361 just rocks. rvm installs ruby 2.3.1 from a binary without the need to compile. I think we can safely close this one, and maybe make an aggregate issue on Ruby/Rails/gems? |
@dreyks Glad to hear this |
Closing this one and having specific issues on Rails / Gems / Etc... would be useful for us. If the original poster does not close by next week I will do so (planning on doing that with everything tagged as fixed). I do see there is a new issue #451 which discusses issues executing rails. |
I'm trying to install RVM, and when i try to run
Bash return sth like this:
It's look like someone got problem with symlink when install NVM here
nvm-sh/nvm#1054
The text was updated successfully, but these errors were encountered: