WSL: Can't install RVM
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
About this issue
- Original URL
- State: closed
- Created 11 years ago
- Comments: 63 (7 by maintainers)
I’ve validated that rvm is working on our internal development build, the
cat: /dev/fd/63: No such file or directoryerrors are now also gone now that #266 is fixed.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.
During Bundler running, it creates this directory in ~:
As you can see, the sticky bit is set. However apparently whatever method Bundler uses to determine if it is set is broken. When I ran
lsI was also confused to see that most of my files were actually mode 777. This is because somewhere, umask isn’t set (try runningumaskin bash). So if you set it to 007, things become less crazy permissions wise.Workaround:
Works 💯
I got the same error installing Ruby. When the internal build will be released to fast ring?
Installed todays fast ring build and reinstalled bash:
michael@M:/mnt/c/dev$ curl -L https://get.rvm.io | bash -s stable % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 184 100 184 0 0 179 0 0:00:01 0:00:01 --:–:-- 179 100 22865 100 22865 0 0 17383 0 0:00:01 0:00:01 --:–:-- 180k Downloading https://github.com/rvm/rvm/archive/1.27.0.tar.gz Downloading https://github.com/rvm/rvm/releases/download/1.27.0/1.27.0.tar.gz.asc gpg: Signature made Tue 29 Mar 2016 03:49:47 PM DST using RSA key ID BF04FF17 gpg: Good signature from “Michal Papis (RVM signing) mpapis@gmail.com” gpg: WARNING: This key is not certified with a trusted signature! gpg: There is no indication that the signature belongs to the owner. Primary key fingerprint: 409B 6B17 96C2 7546 2A17 0311 3804 BB82 D39D C0E3 Subkey fingerprint: 62C9 E5F4 DA30 0D94 AC36 166B E206 C29F BF04 FF17 GPG verified ‘/home/michael/.rvm/archives/rvm-1.27.0.tgz’
Installing RVM to /home/michael/.rvm/ cat: /dev/fd/63: No such file or directory Adding rvm PATH line to /home/michael/.profile /home/michael/.mkshrc /home/michael/.bashrc /home/michael/.zshrc. Adding rvm loading line to /home/michael/.profile /home/michael/.bash_profile /home/michael/.zlogin. Installation of RVM in /home/michael/.rvm/ is almost complete:
source /home/michael/.rvm/scripts/rvmin all your open shell windows, in rare cases you need to reopen all shell windows.<<welcome message removed>>
In case of problems: https://rvm.io/help and https://twitter.com/rvm_io michael@M:/mnt/c/dev$
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 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.
are you using an internal build? cause i’ve just updated to 14328 and i’m still being hold back by symlink issueoh, wait, it’s actually another error this only happens if I try to install rvm as NON-root
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?
I found a tutorial on gorails.com. https://gorails.com/setup/windows/10 They also mentioned “Postgresql installation currently fails on creating the default cluster. could not create shared memory segment: Function not implemented” We currently don’t have any fixes for this, so we recommend using MySQL for now."
We may have to wait a few more builds to get everything work smoothly.
@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.
Yup. Everything seems ok?