<jidar>
is it a fools errand to try and use the system ruby but have all gem installs go to a user defined directory? I keep finding myself dealing with "Ignoring eventmachine-1.2.7 because its extensions are not built. Try: gem pristine eventmachine --version 1.2.7" style of errors
<weaksauce>
jidar probably
<weaksauce>
i guess the better question is why are you doing it this way
<jidar>
because I don't want user installs to conflict with system installs?
TomyWork has quit [Remote host closed the connection]
<adam12>
jidar: It’s strange that you’d keep seeing this error. What platform are we talking about?
<jidar>
fedora
<adam12>
jidar: And ruby installed via dnf/yum?
<jidar>
I'll note it does not set gem_home or gem_path
<jidar>
yea
<adam12>
They package their own patches too.
<adam12>
Do you mind doing `gem env` and pasting it somewhere?
<adam12>
And are you using `gem —user-install` or setting you rown GEM_*?
<adam12>
I wish —user-install was more common, but unfortunately in this case, it’s generally been easier to just use a ruby version manager which has a writable gem home. Ruby packaging has _always_ been rather horrible, for one reason or another.
<jidar>
well, I have a .gemrc that's how I thought I was issuing a --user-install, but I don't think it works that way
<adam12>
There’s talks about making —user-install the default, and adopting Fedora’s patches as default, but I’m not sure where thats gone.
<jidar>
honestly if user install was the default I think lots of my problems would go away
<adam12>
Have you noticed these errors after updating Ruby?
<jidar>
I almost always find myself fighting between figuring out what option needs to be set in my shell or just sudo gem install
<jidar>
ruby has never been updated on this system
<jidar>
that's the only line besides the first line yaml "--- "
crankharder has quit [Quit: leaving]
<adam12>
jidar: Is it broken right now?
<adam12>
jidar: Hard to say without running into it locally, but my suggestions would be to maybe get a `tree` for the broken gem path in `~/.local/share/gem/…`, and possibly even chmod -w everything in that path to see if you can see what might be affecting the existing builds.
<jidar>
I mean I can't run bundle install on any of my projects so feels pretty broken to me :P
<adam12>
There’s an extensions folder, so I’d be curious to know if it’s changing over time.
<adam12>
What’s the bundle install error?
<adam12>
If you’re not adverse to the extra disk space, you can use bundle with a custom path.
<jidar>
I dunno, I messed with a bunch of stuff last time this happened - currently it looks like I'm missing ruby-dev but I know how to fix that, I might just clean all paths out and start over with this
<jidar>
any handy scripts to do that?
<jidar>
or would it just be the stuff I find in `gem env`
<adam12>
Like `gem uninstall —all` ?
<jidar>
oh! let me try that
<adam12>
Maybe that + rm -rf ~/.local/share/gem
<adam12>
Not something I normally do frequently, so I’m not sure of anything better.
ua_ has quit [Ping timeout: 244 seconds]
<jidar>
no worries, I'll fool around with it a bit and get back to something that resembles baseline
kinduff0 has joined #ruby
explorier has joined #ruby
<jidar>
alright so this is weird, but before installing anything I thought I'd try and get things right, playing around with gem_home and gem_path I can sorta see how to maybe configure this
<jidar>
I see the rb file they mention in the rpms tree for F34
<jidar>
so I'd imagine it's there, but for some reason wasn't used
<jidar>
perhaps because of my .gemrc
<jidar>
ah now I get it, ok, so gem install first says, hey I can't write to /usr/share/gems, produces a warning that ~/bin isn't in my path and then creates ~/bin and installs it there WHEN .gemrc is missing
<jidar>
this is honestly so goofy lol
<jidar>
why does everybody think you want stuff in ~/bin, such a bothersome place to put things, it doesn't support having a base PATH for installs, ie: make install=PATH=/usr, so it will never know where to use for share, etc, opt etc
unyu has quit [Remote host closed the connection]
<adam12>
¯\_(ツ)_/¯
<adam12>
The new Ruby debugger is shaping up so nice. I can’t wait.