# Problems with rake

**URL:** <https://www.ruby-forum.com/t/problems-with-rake/187017>\
**Category:** Rails\
**Created:** [April 15, 2010, 9:18pm UTC](https://www.ruby-forum.com/t/problems-with-rake/187017 "2010-04-15T21:18:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [April 15, 2010, 9:18pm UTC](https://www.ruby-forum.com/t/problems-with-rake/187017/1 "2010-04-15T21:18:23Z")

</div>

I receive an error when I try to create or setup database using rake  
command. Rake is installed.

Error: bash: /opt/local/bin/rake: /opt/local/bin/ruby: bad  
interpreter: No such file or directory. Is it not in the path but how  
come I can to gem list show the gems?

Please help

gem list

\*\*\* LOCAL GEMS \*\*\*

actionmailer (2.3.5, 2.2.2, 1.3.6)  
actionpack (2.3.5, 2.2.2, 1.13.6)  
actionwebservice (1.2.6)  
activerecord (2.3.5, 2.2.2, 1.15.6)  
activeresource (2.3.5, 2.2.2)  
activesupport (2.3.5, 2.2.2, 1.4.4)  
acts\_as\_ferret (0.4.3)  
capistrano (2.5.2)  
cgi\_multipart\_eof\_fix (2.5.0)  
daemons (1.0.10)  
dnssd (0.6.0)  
fastthread (1.0.1)  
fcgi (0.8.7)  
ferret (0.11.6)  
gem\_plugin (0.2.3)  
highline (1.5.0)  
hpricot (0.6.164)  
libxml-ruby (1.1.2)  
mongrel (1.1.5)  
mysql (2.8.1)  
needle (1.3.0)  
net-scp (1.0.2, 1.0.1)  
net-sftp (2.0.1, 1.1.1)  
net-ssh (2.0.4, 1.1.4)  
net-ssh-gateway (1.0.1, 1.0.0)  
rack (1.0.1)  
rails (2.3.5, 2.2.2, 1.2.6)  
rake (0.8.7, 0.8.3)  
RedCloth (4.1.1)  
ruby-openid (2.1.2)  
ruby-yadis (0.3.4)  
rubygems-update (1.3.6)  
rubynode (0.1.5)  
sqlite3-ruby (1.2.4)  
termios (0.9.4)  
xmpp4r (0.4)

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [April 15, 2010, 9:33pm UTC](https://www.ruby-forum.com/t/problems-with-rake/187017/2 "2010-04-15T21:33:37Z")

</div>

Could you try uninstalling rake and installing it again and see if that  
helps?  
Others have had success doing that 🙂

/Lasse

2010/4/15 removed\_email\_address@domain.invalid [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
