Skip to content
This repository has been archived by the owner on Jan 16, 2025. It is now read-only.

Problems encountered when installing javahl #31858

Closed
donhko1986 opened this issue Aug 25, 2014 · 18 comments
Closed

Problems encountered when installing javahl #31858

donhko1986 opened this issue Aug 25, 2014 · 18 comments

Comments

@donhko1986
Copy link

Run the command brew error as follows when prompted install --universal --java subversion

Already downloaded: /Library/Caches/Homebrew/subversion-1.8.10.tar.bz2
==> Patching
patching file subversion/bindings/swig/perl/native/Makefile.PL.in
patching file configure.ac
==> Downloading https://serf.googlecode.com/svn/src_releases/serf-1.3.7.tar.bz2
Already downloaded: /Library/Caches/Homebrew/subversion--serf-1.3.7.tar.bz2
==> /usr/local/opt/scons/bin/scons PREFIX=/usr/local/Cellar/subversion/1.8.10/li

include <apr_pools.h>

     ^

1 error generated.
scons: *** [context.o] Error 1
scons: building terminated because of errors.

READ THIS: https://github.com/Homebrew/homebrew/wiki/troubleshooting

These open issues may also help:
Update subversion.rb (#30310)
subversion (--universal --java) failed to build on 10.9.3 (#30073)

@DomT4
Copy link
Contributor

DomT4 commented Aug 25, 2014

Oh god, not subversion again.

brew gist-logs --config --doctor subversion --universal --java would probably be useful here 😃.

@donhko1986
Copy link
Author

Run the command brew gist-logs --config --doctor subversion --universal --java
Return result https://gist.github.com/96f3e056a2e7eb0690cf, but did not see a solution, please give detailed steps, thank you

@DomT4
Copy link
Contributor

DomT4 commented Aug 25, 2014

Heh, that may well have been the briefest gist output I've ever seen.

From such a brief output, I'm not really sure what could be causing your issue, aside from what it states, but what it states doesn't make a whole lot of sense.

Just to check, can you open up your Finder, under 'Go' in the menubar hit 'Go to Folder' and in the box that pops up type /usr/include/apr-1 and then look inside that folder for the apr_pools.h file. Don't do anything with it, just see if it's there.

I'm going to ask something quite stupid, so please don't take any offence at this, I'm only trying to rule a few very obvious things out, but I presume you have JDK7 or JDK8 installed on your system?

@donhko1986
Copy link
Author

My computer does not exist / usr / include directory
My JDK is 1.7.0

@DomT4
Copy link
Contributor

DomT4 commented Aug 25, 2014

You don't have a /usr/include directory? At all? What does ls -l /usr in the Terminal generate for you?

Whilst you're in the Terminal as well, can you run java -version as well and paste the output. JDK 1.7.0 is JDK7, but to get a specific version number may be useful.

@DomT4
Copy link
Contributor

DomT4 commented Aug 25, 2014

Oh we also bumped the subversion formula today to comply with a security change, so following the Doctor's recommendation to run brew update and brew upgrade might be a good idea as well.

@donhko1986
Copy link
Author

java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)

@DomT4
Copy link
Contributor

DomT4 commented Aug 25, 2014

Hmm. I'm wondering whether you've got a JRE or an older Apple-supplied Java instead of a JDK, perhaps. Can you type into the terminal /usr/libexec/java_home -verbose and see what it coughs out? That should give us an exact reading as to what specifically it is, beyond just the version. Theoretically though, as long as you've installed a Java from Apple's update process or a JDK from Oracle, you should have the file it's saying you don't.

@DomT4
Copy link
Contributor

DomT4 commented Aug 25, 2014

Hey @jacknagel. Can you take a look at this please? It's a weird error and I can't quite fathom what could be causing it. I can't wrap my head around why the system can't be finding the /usr/include/apr-1 folder, unless it's something as obvious as a wrong Java installation.

@jacknagel
Copy link
Contributor

There aren't any headers in /usr/include unless the CLT is installed. For Xcode-only systems, they are only found inside the SDK. For most things this works fine, but when it comes to apr stuff, Apple has done a poor job of making it work transparently on an Xcode-only configuration. For example, apr-1-config returns paths that don't exist unless you install the CLT. We've tried to work around this in places, but it doesn't always help.

@DomT4
Copy link
Contributor

DomT4 commented Aug 25, 2014

Ah! There's no CLT installed. I did not even spot that. Thanks! Would installing the CLT package from Apple solve the problem for @donhko1986?

@jacknagel
Copy link
Contributor

xcode-select --install will probably fix it.

I'd like to make this work with Xcode-only systems, but I don't know how short of reimplementing the entire apr-1-config script.

@MikeMcQuaid
Copy link
Member

Sounds awful but perhaps we could make a apr-1-config wrapper which barfs and tells you to install the CLT.

@jacknagel
Copy link
Contributor

It's probably too late for 10.10 but we really should try to get Apple to fix this in 10.11. Xcode-only is supposed to work transparently but the apr stuff is totally broken. I dunno if we still have any contacts at Apple.

@DomT4
Copy link
Contributor

DomT4 commented Aug 26, 2014

What about something like having the Brew Doctor react to detecting Xcode-only platforms by asking users to symlink the apr-1 folder from the SDK to /usr/include. Would that work?

@donhko1986
Copy link
Author

As / usr / include directory does not exist, so you need to install Command Line Tool Run command xcode-select --install can be, but still there is a problem now, is javahl after the installation is complete or not available, it seems there is no place in the library I do not know how to set up

@jacknagel
Copy link
Contributor

I'm not sure what the question is.

@jacknagel
Copy link
Contributor

Closing due to no response.

@Homebrew Homebrew locked and limited conversation to collaborators Feb 17, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants