-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
conda-forge's ruby attempts to install gens in the global system directory #7
Comments
Prs welcome! |
Did you make a bot for this? 😄 |
hahah now that is a great idea 😉 |
That said, it is probably a matter of figuring out another option at the configure step. I will try to see if I can find it... althougglh I am not a Ruby person. |
Yeah, I am not a ruby person either. I was just trying to fiddle around with it and so I mad the package. |
not a ruby person either...but this SO answer says something like: export GEM_HOME="$PREFIX/<ruby version>/gems"
export GEM_PATH="$GEM_HOME" |
So activate/deactivate scripts would be one option. Is there an RC file solution? |
I wonder if this could be set at build time, so that we don't need environment variable. |
Yeah that would nice if it could be. I think I hunted around for something like that originally and didn't find anything. Maybe I missed it or things have changed |
You can specify the
|
Awesome. Would ruby pick up thay rc file in |
I don't think so. It tries to get it in those locations (https://github.com/rubygems/rubygems/blob/master/lib/rubygems/config_file.rb#L32-L37) or from the |
Well, this recipe could patch |
Sorry, look in |
That should be pretty easy to do. We do something applicable here in |
trying this now. |
I added the following to the bottom of the build.sh script:
and it seems to work. There are two issues though:
Any ideas for the latter? |
OK when I set Maybe we should have an activate script for that? or can we add that to gemrc as well... |
Yeah we should have an activate script for that |
I am having an issue running bundler: I have installed ruby (v3.1.2) using mamba, then installed bundler using gem (note that
so it is basically looking for ruby at I have not changed anything so this is basically vanilla ruby installation from conda-forge, i.e., with
giving me a $PATH of
How can I thus use bundler with conda-forge ruby? Thank you. Best, |
I guess that it should use some directory under the PREFIX path.
The text was updated successfully, but these errors were encountered: