Wednesday, 7 August 2013

How do I pass a configure option to macports?

How do I pass a configure option to macports?

I am following directions to install JavaHL bindings for Subversion from:
http://subclipse.tigris.org/wiki/JavaHL
It says to run sudo port install subversion-javahlbindings +no_bdb
+universal when I do that I get an error
:info:configure configure: error: Cannot compile JavaHL without a suitable
JDK.
:info:configure Please specify a suitable JDK using the
--with-jdk option.
:info:configure Command failed: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_subversion-javahlbindings/subversion-javahlbindings/work/subversion-1.8.1"
&& ./configure --prefix=/opt/local --disable-dependency-tracking
--with-apr=/opt/local/bin/apr-1-config
--with-apr-util=/opt/local/bin/apu-1-config --without-apxs
--mandir=\${prefix}/share/man --with-serf=/opt/local
--with-sasl=/opt/local --with-libmagic=/opt/local --without-gnome-keyring
--enable-javahl --without-jikes
--with-junit=/opt/local/share/java/junit.jar --without-berkeley-db
:info:configure Exit code: 1
:error:configure Failed to configure subversion-javahlbindings, consult
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_subversion-javahlbindings/subversion-javahlbindings/work/subversion-1.8.1/config.log
How do I specify a JDK for this operation to use?

No comments:

Post a Comment