-
-
Notifications
You must be signed in to change notification settings - Fork 255
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
Feature request / advice (architecture based installation location) #413
Comments
Just to be more concrete, I was thinking of having something like |
We could easily add |
I was thinking, since there's a way to teach
Adding something like ^^^ to my shell init doesn't seem like a big deal since I have to do it for Homebrew anyway. Maybe I have to change the target install base directory away from
This would work for me!
A config file seems like overkill to me, but it's up to you 😄 |
I would probably change that to |
Finally got around to adding support for the |
I'm trying out @tenderlove's setup and it's working great for installing rubies in different folders based on the arch. However, I haven't found an easy way to get gems to work in both architectures at the same time for the same Ruby version. Here's an example:
Which makes sense because So, the question is, is it possible to specify different My current workaround is to delete the |
@monfresh this problem is due to the fact that chruby originally tried to share gems between ruby minor version families (e.g. upgrading from |
FYI one way to avoid all these issues is to use this branch of my fork: https://github.com/eregon/chruby/tree/do-no-set-gem-home |
@postmodern Thanks for the details! @eregon Thanks, I'll try your branch. |
I'm not dealing with it well. I just rm the I think @eregon's solution would work fine, and I should probably do that |
So I'm curious, and maybe it's been mentioned before in other issue threads, but why doesn't rubygems simply allow you to run |
@postmodern That's great news - any idea when 0.9 might be available? Thanks! |
@lougreenwood maybe next week? I also wanted to add additional environment variables like |
Closing this as I prepare for a 0.9.0 release. The |
I upgraded to an M1, but I need to work with Rosetta sometimes. In order to accomplish that I've installed two versions of Homebrew, one that targets arm64e and one that targets x86_64. Then I taught Fish to fix the path depending on the architecture.
I'd like to do something similar with ruby-install, namely automatically change the install directory based on the target architecture. I was hoping to do that with an environment variable because I don't want to have to remember to check the architecture and then pass the right thing to
--install-dir
. However, it doesn't look like I can control the installation directory via ENV var.First, does the "separate path per architecture" approach make sense? If so, does adding an ENV var seem like an acceptable solution?
If not, I was thinking of building universal binaries, but I think that will be its own can of worms especially if I (for example) link against OpenSSL in one Homebrew installation, but then switch to a different architecture and try to use the same Ruby.
Thanks for your time!
The text was updated successfully, but these errors were encountered: