2

Dealing with a weird problem on CentOS trying to add the Play! framework to my path. Just earlier I successfully did a chmod +x play on Play! and I could run commands.

Then I rebooted and it completely fails. All attempts to retry chmod fail. I'm doing this from root user, it has 777 permissions, and belongs to the root group.

bash: play: command not found

What am I not considering?

crockpotveggies
  • 336
  • 2
  • 12

1 Answers1

4

It isn't enough to just add the directory to $PATH; you must make a change to your configuration to add it to $PATH on reboot or shell start. Try editing ~/.bashrc.

Ignacio Vazquez-Abrams
  • 45,939
  • 6
  • 79
  • 84
  • Perfect, thanks! Switched from Solaris and just not yet familiar with RHEL/CentOS yet ;) This did it `alias play="/home/usrName/javaApi/play-1.1/play"` – crockpotveggies Feb 02 '12 at 08:07
  • Aliases is a bad work around if you just wanted it in your $PATH, and Solaris works the same way by the way. See this link for more info on .bashrc and .bash_profile: http://www.joshstaiger.org/archives/2005/07/bash_profile_vs.html – Yanick Girouard Feb 22 '12 at 05:02