Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question
add comment

1 Answer

up vote 4 down vote accepted

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.

share|improve this answer
    
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 2 '12 at 8: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: joshstaiger.org/archives/2005/07/bash_profile_vs.html –  Yanick Girouard Feb 22 '12 at 5:02
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.