/usr/bin/env: ‘ruby’: No such file or directory | Cannot use bundler, nor rails
<p>Just a disclaimer as I am pretty new to programming in general and decided to take upon ruby to make things happen, however...</p>

<p>I am following this tutorial/book I found online by Michael Hartl, but something happened a few days ago and I have been trying to fix it to no avail, and it is becoming incredibly disheartening.</p>

<p>The current issue is the title itself</p>

<pre><code>/usr/bin/env: ‘ruby’: No such file or directory
</code></pre>

<p>I cannot get past this, by now I have tried uninstalling RVM, Ruby and Rails (The last one is causing me trouble). 
I have even update ubuntu to 16LTS in my desperation; I have changed the first line of every file in /usr/local/bin to make it say</p>

<pre><code>#!/usr/bin/env ruby
</code></pre>

<p>When I run </p>

<p>bundle install</p>

<p>I get:</p>

<pre><code>/usr/bin/env: ‘ruby’: No such file or directory
</code></pre>

<p>which rails returns:</p>

<pre><code>/usr/bin/env: ‘ruby’: No such file or directory
</code></pre>

<p>but when I run rails -v I get:</p>

<pre><code>/usr/bin/env: ‘ruby’: No such file or directory
</code></pre>

<p>Again!!!
 I have zsh (if that makes any difference)</p>

<pre><code>gem uninstall rails
</code></pre>

<p>gives me:</p>

<pre><code>/usr/bin/gem: bad interpreter: /usr/bin/ruby2.3: no such file or directory
</code></pre>

<p>I have really tried multiple solution and none of them has worked, it probably has a very simple solution, but as said before I am a beginner, and although the constant troubleshooting must be educating, it is becoming incredibly frustrating and aversive.</p>

<p>Thanks for any help! </p>