Groovy on Solaris 10

I tried installing groovy on solaris 10 today. As expected, groovy 1.5.4 installed smoothly but I encountered a problem post installation. When I tried running groovy, I got the following error!

"startGroovy: syntax error at line 219: `i=$' unexpected"

The startGroovy script has a #!/bin/sh at the top and solaris 10 has problems with the lines
i=$(i+1). There were also other lines in the script that were not compatible with the shell - like the case statement which had

case ($i) in
(0) set -- ;;

This has to be changed to

case ($i) in
0) set --;

This patch will fix these issues with solaris. However, the fix has been put back into the code base recently. I will soon be releasing a groovy package for solaris. Do watch out the blog for updates!

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

gkrish

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today