[MacPorts] #58142: cmake: Alert panel appears saying I need to install Java (which I have done), then fails (was: Trying to install youtube-dl raises an alert panel saying I need to install Java (which I have done), then fails)

MacPorts noreply at macports.org
Thu Feb 28 19:03:24 UTC 2019


#58142: cmake: Alert panel appears saying I need to install Java (which I have
done), then fails
------------------------+-----------------------
  Reporter:  nikgervae  |      Owner:  michaelld
      Type:  defect     |     Status:  assigned
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.5.4
Resolution:             |   Keywords:
      Port:  cmake      |
------------------------+-----------------------
Changes (by ryandesign):

 * status:  new => assigned
 * owner:  (none) => michaelld
 * milestone:  MacPorts 2.6.0 =>
 * keywords:  youtube-dl java =>
 * port:   => cmake


Old description:

> Per the transcript below, when I try to install youtube-dl, at the point
> where "Configuring cmake" appears, a panel appears onscreen telling me I
> need to install Java for the java command-line tool. I have done this,
> and the error continues to appear. If I enter the command "which java",
> it replies: "/usr/bin/java", so it appears to be installed.
>
> % sudo port install youtube-dl
> --->  Computing dependencies for youtube-dl
> --->  Cleaning youtube-dl
> --->  Scanning binaries for linking errors
> --->  Found 2 broken files, matching files to ports
> --->  Found 1 broken port, determining rebuild order
> You can always run 'port rev-upgrade' again to fix errors.
> The following ports will be rebuilt: physfs @3.0.1+universal
> Continue? [Y/n]:
> --->  Computing dependencies for cmake
> --->  Configuring cmake
> Error: Failed to configure cmake: configure failure: command execution
> failed
> Error: See
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/main.log
> for details.
> Error: Problem while installing cmake
> Error: rev-upgrade failed: Error rebuilding physfs
> Error: Follow https://guide.macports.org/#project.tickets to report a
> bug.

New description:

 Per the transcript below, when I try to install youtube-dl, at the point
 where "Configuring cmake" appears, a panel appears onscreen telling me I
 need to install Java for the java command-line tool. I have done this, and
 the error continues to appear. If I enter the command "which java", it
 replies: "/usr/bin/java", so it appears to be installed.

 {{{
 % sudo port install youtube-dl
 --->  Computing dependencies for youtube-dl
 --->  Cleaning youtube-dl
 --->  Scanning binaries for linking errors
 --->  Found 2 broken files, matching files to ports
 --->  Found 1 broken port, determining rebuild order
 You can always run 'port rev-upgrade' again to fix errors.
 The following ports will be rebuilt: physfs @3.0.1+universal
 Continue? [Y/n]:
 --->  Computing dependencies for cmake
 --->  Configuring cmake
 Error: Failed to configure cmake: configure failure: command execution
 failed
 Error: See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/main.log
 for details.
 Error: Problem while installing cmake
 Error: rev-upgrade failed: Error rebuilding physfs
 Error: Follow https://guide.macports.org/#project.tickets to report a bug.
 }}}

--

Comment:

 Your transcript shows that youtube-dl had already been successfully
 installed prior to you running `sudo port install youtube-dl` this time.
 It also shows that for some reason physfs is considered broken, and
 rebuilding it required cmake, which was unable to be configured for some
 reason.

 /usr/bin/java is part of macOS and is always there, even if Java is not
 installed. If Java is installed, /usr/bin/java runs it; if not, it
 displays the dialog box you encountered.

 Please attach the main.log file mentioned in the transcript so that we can
 see what the problem was. I don't think cmake requires Java (it didn't
 used to), so it might be something else.

-- 
Ticket URL: <https://trac.macports.org/ticket/58142#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list