# Irb problem

**URL:** <https://www.ruby-forum.com/t/irb-problem/190170>\
**Category:** Rails\
**Created:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/irb-problem/190170 "2010-06-17T16:22:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![radu\_puspana](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/c2a13f/32.png) [@radu\_puspana](https://www.ruby-forum.com/u/radu_puspana)\
**Post date:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/irb-problem/190170/1 "2010-06-17T16:22:09Z")

</div>

Hi guys, can you spare some time?

i have this irb problem…when i try to enter this line : def show\_text  
text  
the irb gives me this error

No command ‘def’ found, did you mean:  
Command ‘df’ from package ‘coreutils’ (main)  
Command ‘ref’ from package ‘elvis-tools’ (universe)  
Command ‘gdef’ from package ‘firebird2.1-classic’ (universe)  
Command ‘gdef’ from package ‘firebird2.0-super’ (universe)  
Command ‘gdef’ from package ‘firebird2.1-super’ (universe)  
Command ‘gdef’ from package ‘firebird2.0-classic’ (universe)  
def: command not found

any idea what i should do??

a million thx in advance,  
radu

---

<div class="post-metadata">

**Author:** ![radu\_puspana](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/c2a13f/32.png) [@radu\_puspana](https://www.ruby-forum.com/u/radu_puspana)\
**Post date:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/irb-problem/190170/2 "2010-06-17T16:22:35Z")

</div>

> i have this irb problem…when i try to enter this line : def show\_text  
> text  
> the irb gives me this error
> 
> No command ‘def’ found, did you mean:

Are you sure you’re in irb? It looks like you’re just at the  
shell prompt.

You need to type irb first to start it.
