Comments (6)
Either way the README does say this is possible, so I guess I need to figure out if I should remove that or figure out how to make this work with rbenv.
Great, thanks.
Yes, migrating may be painful, but let's don't say that it's possible in the README if we don't have a way to do this simple.
from asdf-ruby.
I want to add to this conversation because I vote for the rubies section being replaced in the README due to it being wrong. I ran the
mkdir ~/.asdf/installs/
mv ~/.rbenv/versions/* ~/.asdf/installs/ruby/
from the README and the output of gem environment
was still using the .rbenv
routes to reference gems despite shims being there to use the .asdf
binaries. I had to run
asdf install ruby 2.4.2
asdf reshim ruby
gem install bundler
I found out that the values from gem environment
were baked into the ruby build that the install performed. I'm not sure there will be a trustworthy way to just shim the versions from these other version managers. It's plausible that gems could be copied over, but it's probably not worth it by going through back channels like this just to be "compatible". I think understanding the legacy .ruby-version
file is invaluable, but just copying over versions caused me, personally, some pain to figure out how to fix everything.
If the goal is to simplify the migration, then there probably is a way that the gems could be cached to have them be installed as part of the install process for a new ruby version, working kind of like the .default-gems
file.
I hope this is helpful.
from asdf-ruby.
I confirm, output like this:
> gem list
/home/alex/.asdf/bin/private/asdf-exec: /home/alex/.asdf/installs/ruby/2.5.1/bin/gem: /home/alex/.rbenv/versions/2.5.1/bin/ruby: bad interpreter: No such file or directory
/home/alex/.asdf/bin/private/asdf-exec: line 52: /home/alex/.asdf/installs/ruby/2.5.1/bin/gem: Success
from asdf-ruby.
I honestly don't think it is wise to try to migrate all your Rubies from other Ruby version managers into asdf-ruby this way. It seems like there too many places for hard coded paths to hide to make it worth while. Ruby was compiled for that specific directory, and moving it is bound to create headaches.
Either way the README does say this is possible, so I guess I need to figure out if I should remove that or figure out how to make this work with rbenv.
from asdf-ruby.
Based on this discussion I've removed section in the readme on migrating rubies from other version managers. It will take longer to reinstall them, but it's easier than having to deal with rubies that contain hardcoded paths and cannot easily be migrated.
from asdf-ruby.
Based on this discussion I've removed section in the readme on migrating rubies from other version managers. It will take longer to reinstall them, but it's easier than having to deal with rubies that contain hardcoded paths and cannot easily be migrated.
OK, thank you.
from asdf-ruby.
Related Issues (20)
- Failed to install Ruby 3.1.4 on Ubuntu 22.04
- Issue installing ruby 3.2.X HOT 1
- Failed to install ruby 3.2.1 on M1 Pro with macOS Ventura 13.3 and macOS 14.0
- Observe ASDF_CONCURRENCY HOT 3
- rbenv install faild with whitespace in `$ASDF_DATA_DIR`
- Getting BUILD FAILED (macOS 13.2.1 on arm64 using ruby-build 20231114) using M2 Macbook on Ventura 13.2.1 HOT 2
- Failed to upgrade Ruby version from 3.2.2 to 3.3.0 using asdf HOT 2
- build fail for ruby 3.3.0 on Apple M2 Max silicone and sonoma 14.2.1 (23C71) HOT 2
- Add Ruby 3.2.3 HOT 2
- asdf does not seem to be picking up on ruby gem executables in the GEM_PATH HOT 7
- "Downloaded files will not be preserved." HOT 1
- Ruby 3.2.3 cannot be installed on Ubuntu 22.04 HOT 2
- Build failed: `psych` Could not be configured. It will not be installed. HOT 3
- Truffle Ruby Latest? HOT 1
- The same OS and asdf version on 2 different machines shows different recent ruby versions to install HOT 4
- asdf in background HOT 4
- Question: can the same version be installed twice with diff name? HOT 3
- Auto-reshim is broken when using the asdf-alias plugin
- Failed to install ruby 3.1.5 on Mac OS 13.6.6 M2 Pro
- Where is ruby 3.3.4?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from asdf-ruby.