简体   繁体   中英

Vagrant to run play framework

I am using vagrant to run my playframework based java project in ubuntu enviornment

I have set my play setup directory path to PATH enviornment varible, But when I am running play command it is showing me error

vagrant@precise64:/$ play
play: SoX v14.3.2

play FAIL sox: Not enough input filenames specified

Usage summary: [gopts] [[fopts] infile]... [fopts] [effect [effopt]]...

But when I am running ./play command in my setup directory it working fine

That happens because you have installed one package named sox that brings a play command.

So when you run play something you are executing that program and not the play framework one.

So you should:

  • Remove that package: it is not installed by default in Ubuntu so unless you really need it for other purposes you should remove it

     apt-get remove sox 
  • Add play framework to your PATH. Supposing your play installation is in /opt/play , just do something like

     export PATH=/opt/play/bin:$PATH 

You should add those commands in the required file (ex: bootstrap.sh).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM