bash: fortune: command not found – how to solve it

Posted: June 4, 2008 in Linux
Tags: , ,

Happened when you upgrade bt3 to Slackware 12.1 ^_^

Workaround :

k-elektronik ~ # whereis fortune
fortune: /usr/games/fortune /usr/man/man6/fortune.6.gz /usr/share/man/man6/fortune.6.gz /usr/X11/man/man6/fortune.6.gz

k-elektronik ~ # ln -s /usr/games/fortune /usr/local/bin/fortune


Comments
  1. blub says:

    thanks

  2. kapz says:

    Thanks, still useful for custom .bashrc in slackware 13.1!

  3. SeaJey says:

    Thx, worked in Debian 5.0 -> 6.0 case.

  4. Edwin Ramirez says:

    Thank you so much. I had trouble adding the fortune and cowsay commands to my PATH. This simple solution bypasses all that.

Leave a comment