Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[darwin] Elasticsearch 5.4 Missing dependency #512

Closed
nicemaker opened this issue Jun 7, 2017 · 10 comments
Closed

[darwin] Elasticsearch 5.4 Missing dependency #512

nicemaker opened this issue Jun 7, 2017 · 10 comments
Assignees

Comments

@nicemaker
Copy link

Hi,
I've tried:
installing elasticsearch-5.4.0...
pkg_install warnings: 0, errors: 2

Got this:
---Jun 07 20:07:36: installing elasticsearch-5.4.0...
pkg_add: no pkg found for 'oracle-jre8-[0-9]', sorry.
pkg_add: Can't install dependency oracle-jre8-[0-9]

pkg_add: 1 package addition failed

@mamash
Copy link

mamash commented Jun 7, 2017

How... how did you end up with this? What platform?

@mamash
Copy link

mamash commented Jun 7, 2017

My guess is that you're building yourself and using the Oracle JRE package instead of OpenJDK, however, I'm pretty sure that the Oracle one is not redistributable, so can't be made available in a repository and installed via pkgin.

@nicemaker
Copy link
Author

Hmm, did nothing special, I use Mac OSX 10.12 and did this

sudo pkgin update
sudo pkgin install elasticsearch

@nicemaker
Copy link
Author

do you mean whatever Oracle JRE I have installed conflicts and i might resolve it by removing it and using OopenJDK?

@mamash
Copy link

mamash commented Jun 7, 2017

No. I'm looking into this.

@mamash
Copy link

mamash commented Jun 7, 2017

The oracle JRE/JDK package should never be used to build out binary packages, because they cannot be redistributed in a binary form due to licensing restrictions. For some reason, the current osx/trunk packages that we build are, so that needs to be fixed.

@nicemaker
Copy link
Author

thanks mamash for responding so quickly

@mamash mamash changed the title Elasticsearch 5.4 Missing dependency [darwin] Elasticsearch 5.4 Missing dependency Jun 13, 2017
@mamash
Copy link

mamash commented Jun 13, 2017

Just a quick update: this is confirmed as a known bug in all packages depending on Java on the Darwin (OS X) platform. The build cluster used to build out the binary packages is not configured in order to provide a proper native Java implementation that pkgsrc would recognize and use.

As an interrim workaround, it is suggested that you install pkgsrc to your system and build elasticsearch (or any other Java package) yourself locally.

@jperkin
Copy link
Collaborator

jperkin commented Jun 20, 2017

I've committed NetBSD/pkgsrc@7cf77ac and installed the latest Oracle JRE/JDK on the build host. The next build run will use the native Java rather than one from pkgsrc so these dependency issues will disappear, however manually installing native Java will be required on any target host for the packages to actually work.

@mamash
Copy link

mamash commented Oct 30, 2017

This should be fixed by now. I just fixed an unrelated build issue that will make the package resurface shortly.

@mamash mamash closed this as completed Oct 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants