Closed TonyAbell closed 10 years ago
I get the following error on the Fsharp recipe
[root@localhost fsharp]# fpm-cook
/usr/lib/ruby/gems/1.8/gems/fpm-cookery-0.16.2/lib/fpm/cookery/book.rb:15:in `load': /root/recipies/fsharp/recipe.rb:13: syntax error, unexpected ':', expecting kEND (SyntaxError)
with: :git,
^
from /usr/lib/ruby/gems/1.8/gems/fpm-cookery-0.16.2/lib/fpm/cookery/book.rb:15:in `load_recipe'
from /usr/lib/ruby/gems/1.8/gems/fpm-cookery-0.16.2/lib/fpm/cookery/cli.rb:64:in `execute'
from /usr/lib/ruby/gems/1.8/gems/clamp-0.6.3/lib/clamp/command.rb:67:in `run'
from /usr/lib/ruby/gems/1.8/gems/clamp-0.6.3/lib/clamp/subcommand/execution.rb:11:in `execute'
from /usr/lib/ruby/gems/1.8/gems/clamp-0.6.3/lib/clamp/command.rb:67:in `run'
from /usr/lib/ruby/gems/1.8/gems/clamp-0.6.3/lib/clamp/command.rb:125:in `run'
from /usr/lib/ruby/gems/1.8/gems/fpm-cookery-0.16.2/bin/fpm-cook:7
from /usr/bin/fpm-cook:19:in `load'
from /usr/bin/fpm-cook:19
it's because you're using ruby 1.8.7, which is slightly old, and I had assumed the build server uses something newer...
Just replace all method 'here', a_key: 'value'
with method 'here', :a_key => 'value'
and it should be fine
Can you send a PR with that?
I made the changes...
now I am getting this error with the mono recipe
/usr/lib/ruby/gems/1.8/gems/fpm-cookery-0.16.2/lib/fpm/cookery/utils.rb:9:in `safesystem': 'system(["./wrapper.sh", "/usr/bin/make"])' failed with error code: 127 (RuntimeError)
from /root/recipies/mono/recipe.rb:50:in `build'
from /usr/lib/ruby/gems/1.8/gems/fpm-cookery-0.16.2/lib/fpm/cookery/packager.rb:113:in `dispense'
from /usr/lib/ruby/gems/1.8/gems/fpm-cookery-0.16.2/lib/fpm/cookery/packager.rb:104:in `chdir'
from /usr/lib/ruby/gems/1.8/gems/fpm-cookery-0.16.2/lib/fpm/cookery/packager.rb:104:in `dispense'
from /usr/lib/ruby/gems/1.8/gems/fpm-cookery-0.16.2/lib/fpm/cookery/packager.rb:101:in `chdir'
from /usr/lib/ruby/gems/1.8/gems/fpm-cookery-0.16.2/lib/fpm/cookery/packager.rb:101:in `dispense'
from /usr/lib/ruby/gems/1.8/gems/fpm-cookery-0.16.2/lib/fpm/cookery/cli.rb:104:in `exec'
from /usr/lib/ruby/gems/1.8/gems/fpm-cookery-0.16.2/lib/fpm/cookery/cli.rb:68:in `execute'
from /usr/lib/ruby/gems/1.8/gems/fpm-cookery-0.16.2/lib/fpm/cookery/book.rb:16:in `call'
from /usr/lib/ruby/gems/1.8/gems/fpm-cookery-0.16.2/lib/fpm/cookery/book.rb:16:in `load_recipe'
from /usr/lib/ruby/gems/1.8/gems/fpm-cookery-0.16.2/lib/fpm/cookery/cli.rb:64:in `execute'
from /usr/lib/ruby/gems/1.8/gems/clamp-0.6.3/lib/clamp/command.rb:67:in `run'
from /usr/lib/ruby/gems/1.8/gems/clamp-0.6.3/lib/clamp/subcommand/execution.rb:11:in `execute'
from /usr/lib/ruby/gems/1.8/gems/clamp-0.6.3/lib/clamp/command.rb:67:in `run'
from /usr/lib/ruby/gems/1.8/gems/clamp-0.6.3/lib/clamp/command.rb:125:in `run'
from /usr/lib/ruby/gems/1.8/gems/fpm-cookery-0.16.2/bin/fpm-cook:7
from /usr/bin/fpm-cook:19:in `load'
from /usr/bin/fpm-cook:19
[root@localhost mono]#
So that is that it's not finding wrapper.sh
. Funny. Is it in the build folder? Are you running this from another folder than the one named mono
?
Hey,
I got working builds going. Look at the history for fsharp and mono for a couple of different versions to choose from. https://tc-oss.intelliplan.net/
I get the following error while running the mono recipe
I am using a centos from Cloudera http://www.cloudera.com/content/support/en/downloads/download-components/download-products.html?productID=F6mO278Rvo
I am able to run a recipe from here.. https://github.com/bernd/fpm-recipes/blob/master/erlang/recipe.rb
I am not fluent enough to figure out what is wrong or how to fix it.
can you help?