[chef] Re: Java cookbook error on OSX


Chronological Thread 
  • From: Joshua Timberman < >
  • To: Chef users < >
  • Subject: [chef] Re: Java cookbook error on OSX
  • Date: Mon, 10 Nov 2014 11:05:46 -0700

Hello,

As Krzysztof said, the default package provider on OS X when using Chef 11 or earlier is Macports, so the package resource is attempting to determine the state of the "openjdk-6-jdk" package using the "port" command. Since you don't have Macports installed, that fails.

However, it's worth noting that the java cookbook does not support OS X for Java installation at this time. Since Apple makes Java installation available through their own means[0], I don't know that it would be in scope to attempt to support it using the "package" resource.

Also note that in Chef 12, homebrew will be the default package provider for OS X[1].



On Mon, Nov 10, 2014 at 5:06 AM, Mukta A < " target="_blank"> > wrote:
Hi

I am getting this error while trying to run the Java cookbook on OSX (https://supermarket.getchef.com/cookbooks/java ) -

Compiling Cookbooks...

Converging 4 resources

Recipe: java::openjdk

  * package[openjdk-6-jdk] action install

    

    ================================================================================

    Error executing action `install` on resource 'package[openjdk-6-jdk]'

    ================================================================================

    

    Errno::ENOENT

    -------------

    No such file or directory - port

    

    Resource Declaration:

    ---------------------

    # In /var/chef/cache/cookbooks/java/recipes/openjdk.rb

    

     46:   package pkg do

     47:     version node['java']['openjdk_version'] if node['java']['openjdk_version']

     48:   end

     49: end

    

    Compiled Resource:

    ------------------

    # Declared in /var/chef/cache/cookbooks/java/recipes/openjdk.rb:46:in `block in from_file'

    

    package("openjdk-6-jdk") do

      action :install

      retries 0

      retry_delay 2

      guard_interpreter :default

      package_name "openjdk-6-jdk"

      timeout 900

      cookbook_name "java"

      recipe_name "openjdk"

    end

    


Please help.

Thanks,

Mukta.




--
Joshua Timberman, Chef.



Archive powered by MHonArc 2.6.16.

§