Masalah dengan ruby script/console

Tadi aku coba ngejalanin > ruby script/console

Tapi, malahan dapet error:

Loading development environment.
/usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/console.rb:25:in `exec’: No such file or directory – irb -r irb/completion -r script/../config/../config/environment -r console_app -r console_with_helpers –simple-prompt (Errno::ENOENT)
from /usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/console.rb:25
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require’
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require’
from script/console:3

Akhirnya gw dapet juga penyelesaiannya dari sini. Lalu dengan senang hati aku cobain di console.
Dengan ketik: > sudo apt-get install irb
Masalah yang kemudian timbul adalah:

E: Could not get lock /var/lib/dpkg/lock – open (11 Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

OOppss! Ternyata penyebabnya adalah: Synaptic Package Manager gue masih kebuka. Akhirnya tutup aplikasi Synaptic Package Manager, kemudian run lagi > sudo apt-get install irb di terminal bus.

Hoopp laaa

Semua masalah teratasi!

5 responses to “Masalah dengan ruby script/console

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s