RPM deployment for Play Framework 2.2.0 samples (e.g. HelloWorld) doesn't work on Centos OS v6

2,039 views
Skip to first unread message

dr.rom...@gmail.com

unread,
Sep 26, 2013, 6:08:50 PM9/26/13
to play-fr...@googlegroups.com
Hi,

I've installed Play Framework 2.2.0 on CentoOS v6, rpmbuild package and I would like to make RPM deployment for my project.
I've found documentation for that on http://www.playframework.com/documentation/2.2.x/Highlights22 and http://www.scala-sbt.org/sbt-native-packager/redhat.html.

From the last link I understand that I should run "play rpm:package-bin" e.g. for "Hello World" sample. But after this command I get an error:
error: line 4: Empty tag: Summary:....
java.lang.RuntimeException: Unable to run rpmbuild, check output for details.

I suppose build.sbt is responsible for this error, but I could not find any samples or further descriptions on this topic in Internet.

Thank you in advance,

Roman

Christophe Marchal

unread,
Oct 12, 2013, 8:25:54 PM10/12/13
to play-fr...@googlegroups.com
Hi Roman,

Did you manage to get your hello world working? I am also struggling to package a simple play app to RPM. https://github.com/toff63/play2-hello-world-rpm-packaging

I only modified the Build.sbt file

If you have any idea of what I missed.

I get this error while running:

play rpm:packageBin

[error] (rpm:packageBin) java.io.IOException: Cannot run program "rpmbuild" (in directory "C:\Users\Avell G1511\Documents\dev\play2\play2-hello-world-rpm-packaging\target\rpm\SPECS"): CreateProcess error=2,

Thanks

Christophe

Christopher Hunt

unread,
Oct 13, 2013, 6:34:38 PM10/13/13
to play-fr...@googlegroups.com
Hey guys,

Play 2.2 uses the sbt-native-packager - you may get more mileage by consulting its docs and raising issues with the project there.

However if you don't get a good outcome then please feel free to come back here and we'll do what we can to help.

Kind regards,
Christopher

Ron Romero

unread,
Dec 5, 2013, 10:54:24 AM12/5/13
to play-fr...@googlegroups.com
You need to install the RPM build tools.  On Debian/Ubuntu, run

 sudo apt-get install rpm

On Windows, I guess you'd have to go find the package and install it, maybe via Cygwin.

Andy Jackson

unread,
Feb 6, 2014, 9:15:10 AM2/6/14
to play-fr...@googlegroups.com
I added some notes on how to get rolling with the RPM builder here:

https://github.com/playframework/playframework/issues/1765#issuecomment-25429221

e.g. on CentOS, you need additional packages to get rpmbuild installed, etc.

HTH,
Andy Jackson

Andy Jackson

unread,
Feb 6, 2014, 9:16:42 AM2/6/14
to play-fr...@googlegroups.com
Gah, wrong comment URL, I mean: 


Sorry about that.

Andy
Reply all
Reply to author
Forward
0 new messages