[LRUG] Deleted the contents of ~/.zshrc and ~/.bashrc, system can't find rubygems.

Lorenzo Barasti lorenzo.barasti at gmail.com
Fri Mar 10 01:22:31 PST 2017


Hey Jesse, the thing you need to focus on now is "which ruby binary was I
using?" By which I mean "where is it located in my system". For instance if
you were using a ruby from some rvm folder, then that particular Ruby will
know where to find your gems. I hope I didn't make it more confusing...

Lorenzo

On Fri, 10 Mar 2017 at 08:43 Jesse Waites <jesse.waites at gmail.com> wrote:

> Yesterday, because I'm an idiot, I deleted the content of my ~/.zshrc and
> ~/.bashrc files. Now, I can't start my rails server, console, anything - it
> says it cant find my gems. Can someone PLEASE answer a few questions. I
> have been struggling with this for over 12 hours and unable to do the work
> at my job since my system is down. I have tried putting the paths from 'gem
> environment' into bashrc
>
> "export GEM_PATH=/Library/Ruby/Gems/1.8/:${GEM_PATH}"
>
> but it doesn't work.
>
>
> 1) Why do I even have both ZSH and Bash? Did homebrew install one?
>
>
> 2) Why did my terminal (iTerm) seem to switch between zsh and bash
> depending on what program I'm running?
>
>
> 3) Should I delete bash or zsh and focus on fixing the path to my gems?
>
>
> 4) How do I FIND the path to my gems? I have tried 'gem environment' and
> pasting the output from there (4 lines? 4 environments?) but it doesnt seem
> to work. I just want my system to work how it did 2 days ago :(
>
>
> 5) How could this have happened to me? Are most devs not stupid enough to
> delete these files? Im shocked this simple thing has had such devastating
> consequences. This must be why devs back up their dotfiles on github?
>
>
> 6) Should I focus on installing rails, gems, etc where it IS looking? I
> keep getting 'cant build for this or that reason' so thats a nonstarter as
> well.
>
>
> 7) Can someone email me a gist of their ~/.zshrc and ~/.bashrc or
> ~/.bash_profile?
>
>
> 8) Is there a "stock" one I can use? I can't find an unmodified one on
> github.
>
>
> This whole situation is like, every thread I pull on, something else falls
> apart. I cannot believe it. Complete disaster. Please help me or kill me
> and put me out of my misery. I am pulling my hair out here.
>
> --
> Jesse Waites
> Web Developer
> JesseWaites.com
> _______________________________________________
> Chat mailing list
> Chat at lists.lrug.org
> Archives: http://lists.lrug.org/pipermail/chat-lrug.org
> Manage your subscription: http://lists.lrug.org/options.cgi/chat-lrug.org
> List info: http://lists.lrug.org/listinfo.cgi/chat-lrug.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20170310/7e4c6284/attachment.html>


More information about the Chat mailing list