Opened 6 years ago

Closed 5 years ago

#55563 closed defect (invalid)

pspp @1.0.1: configure failed

Reported by: dr15854 Owned by: nerdling (Jeremy Lavergne)
Priority: Normal Milestone:
Component: ports Version: 2.4.2
Keywords: Cc:
Port: pspp

Description (last modified by ryandesign (Ryan Carsten Schmidt))

After installing mac ports and attempting to install PSPP, we get the error below. What needs to be done to continue the installation? Thanks you.

Last login: Thu Dec 21 12:44:12 on console
Davids-MacBook-Pro-2:~ davidralston$ sudo port install pspp
Password:
--->  Computing dependencies for pspp
--->  Configuring pspp
Error: Failed to configure pspp, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_pspp/pspp/work/pspp-1.0.1/config.log
Error: Failed to configure pspp: configure failure: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_pspp/pspp/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port pspp failed
Davids-MacBook-Pro-2:~ davidralston$ sudo port selfupdate
--->  Updating MacPorts base sources using rsync
MacPorts base version 2.4.2 installed,
MacPorts base version 2.4.2 downloaded.
--->  Updating the ports tree
--->  MacPorts base is already the latest version

The ports tree has been updated. To upgrade your installed ports, you should run
  port upgrade outdated
Davids-MacBook-Pro-2:~ davidralston$ sudo port install pspp

--->  Computing dependencies for pspp
--->  Configuring pspp
Error: Failed to configure pspp, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_pspp/pspp/work/pspp-1.0.1/config.log
Error: Failed to configure pspp: configure failure: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_pspp/pspp/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port pspp failed
Davids-MacBook-Pro-2:~ davidralston$ 
Davids-MacBook-Pro-2:~ davidralston$ 

Attachments (7)

main.log (6.3 MB) - added by dr15854 6 years ago.
config.log (1.5 MB) - added by dr15854 6 years ago.
main 2.log (189.8 KB) - added by dr15854 6 years ago.
config 2.log (1.5 MB) - added by dr15854 6 years ago.
Terminal Saved Output 01-10-18 (172.2 KB) - added by dr15854 6 years ago.
main.2.log (207.7 KB) - added by dr15854 6 years ago.
Terminal Saved Output - 01:11:18 (206.4 KB) - added by dr15854 6 years ago.

Change History (27)

comment:1 Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Owner: set to nerdling
Port: pspp added
Status: newassigned
Summary: unable to install mac ports or pspppspp @1.0.1: configure failed

It's impossible for us to know what problem occurred, unless you attach the main.log file mentioned in the error message.

Remember to use WikiFormatting when writing in Trac.

Changed 6 years ago by dr15854

Attachment: main.log added

comment:2 Changed 6 years ago by dr15854

I have attached the log requested.

comment:3 Changed 6 years ago by nerdling (Jeremy Lavergne)

Relevant log message:

:info:configure configure: error: The following required prerequisites are not installed.
:info:configure You must install them before PSPP can be built:
:info:configure 	gtk+ 3.0 version 3.14.5 or later (or use --without-gui)
:info:configure 	gtksourceview 3.0 version 3.4.2 or later (or use --without-gui)
:info:configure 	glib 2.0 version 2.32 or later (or use --without-gui)
:info:configure 	glib-compile-resources (or use --without-gui)

comment:4 Changed 6 years ago by nerdling (Jeremy Lavergne)

MacPorts gtksourceview3 is at 3.24.6, and is an immediate dependency of PSPP.

Not sure how MacPorts is trying to build PSPP without all dependencies installed.

comment:5 Changed 6 years ago by nerdling (Jeremy Lavergne)

Ah, I noticed that the dependencies are there for me because I have +quartz by default.

Last edited 6 years ago by nerdling (Jeremy Lavergne) (previous) (diff)

comment:6 Changed 6 years ago by nerdling (Jeremy Lavergne)

I'd recommend working around the situation by using sudo port install pspp +quartz.

The rest of the problem stems from an unclear path or meaning of +quartz and +x11 in MacPorts itself.

comment:7 Changed 6 years ago by nerdling (Jeremy Lavergne)

Interestingly, we do have a default variant of +x11 set which is a direct dependency on gtk3. So this really doesn't make much sense to me.

gtk3 should be there unless something is disabling x11 and quartz was not picked.

comment:8 Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)

From the log:

:error:configure Failed to configure pspp, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_pspp/pspp/work/pspp-1.0.1/config.log

Please attach that config.log file. It may contain more useful information about why it thinks those ports aren't installed.

Changed 6 years ago by dr15854

Attachment: config.log added

comment:9 Changed 6 years ago by dr15854

Last login: Wed Dec 27 15:20:07 on console Davids-MacBook-Pro-2:~ davidralston$ sudo port install pspp +quartz Password: Error: Requested variants "+gui+quartz" do not match those the build was started with: "+gui+x11". Error: Please use the same variants again, or run 'port clean pspp' first to remove the existing partially completed build. Error: Follow https://guide.macports.org/#project.tickets to report a bug. Error: Processing of port pspp failed Davids-MacBook-Pro-2:~ davidralston$ port clean pspp ---> Cleaning pspp Error: error deleting "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_pspp/pspp": not owner Error: Failed to clean pspp: error deleting "/opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/math/pspp/work": permission denied Error: Follow https://guide.macports.org/#project.tickets to report a bug. Error: Processing of port pspp failed Davids-MacBook-Pro-2:~ davidralston$ sudo port install pspp +quartz Error: Requested variants "+gui+quartz" do not match those the build was started with: "+gui+x11". Error: Please use the same variants again, or run 'port clean pspp' first to remove the existing partially completed build. Error: Follow https://guide.macports.org/#project.tickets to report a bug. Error: Processing of port pspp failed Davids-MacBook-Pro-2:~ davidralston$

comment:10 Changed 6 years ago by kencu (Ken)

that should ask you to sudo port clean pspp

please try that and then your install again.

comment:11 Changed 6 years ago by dr15854

We tried what you suggested and it still failed. The following is the terminal output. I will attach two new logs, as well.

Last login: Thu Dec 28 13:42:37 on console Davids-MacBook-Pro-2:~ davidralston$ sudo port clean pspp Password: ---> Cleaning pspp Davids-MacBook-Pro-2:~ davidralston$ sudo port install pspp ---> Computing dependencies for pspp ---> Fetching archive for pspp ---> Attempting to fetch pspp-1.0.1_0+gui+x11.darwin_17.x86_64.tbz2 from https://packages.macports.org/pspp ---> Attempting to fetch pspp-1.0.1_0+gui+x11.darwin_17.x86_64.tbz2 from http://ywg.ca.packages.macports.org/mirror/macports/packages/pspp ---> Attempting to fetch pspp-1.0.1_0+gui+x11.darwin_17.x86_64.tbz2 from http://sea.us.packages.macports.org/macports/packages/pspp ---> Fetching distfiles for pspp ---> Verifying checksums for pspp ---> Extracting pspp ---> Configuring pspp Error: Failed to configure pspp, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_pspp/pspp/work/pspp-1.0.1/config.log Error: Failed to configure pspp: configure failure: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_pspp/pspp/main.log for details. Error: Follow https://guide.macports.org/#project.tickets to report a bug. Error: Processing of port pspp failed Davids-MacBook-Pro-2:~ davidralston$

Changed 6 years ago by dr15854

Attachment: main 2.log added

Changed 6 years ago by dr15854

Attachment: config 2.log added

comment:12 Changed 6 years ago by dr15854

Do you have any updates?

comment:13 Changed 6 years ago by kencu (Ken)

I just installed it on 10.6.8 without any issues. I suspect there are some missing port prerequisites in the Portfile that we need to sort out.

Please try this first

sudo port -v install gtk3 gtksourceview3 glib2

and once that is done, please try your install again

sudo port clean pspp
sudo port -v install pspp

and if you don't mind, report back on success or failure with that.

comment:14 Changed 6 years ago by kencu (Ken)

once you get that working, I'd suggest this installation set of variants, which I think is really quite excellent:

sudo port uninstall pspp
sudo port -v install pspp +gui +x11 +help +doc

I don't use the +quartz variants too much, as I find too many ports require the +x11 variants instead, and also the +quartz variants tend to have issues on older systems like some of the ones I use.

comment:15 in reply to:  13 Changed 6 years ago by nerdling (Jeremy Lavergne)

Replying to kencu:

I suspect there are some missing port prerequisites in the Portfile that we need to sort out.

Bear in mind PSPP continues to build successfully for me with trace mode on.

comment:16 Changed 6 years ago by dr15854

We were unsuccessful in getting past first point. I have attached logs and terminal output.

Changed 6 years ago by dr15854

Changed 6 years ago by dr15854

Attachment: main.2.log added

comment:17 Changed 6 years ago by kencu (Ken)

Well, I think we've found part of your problem:

Error: Failed to activate glib2: Image error: /opt/local/bin/gdbus already exists and does not belong to a registered port.  Unable to activate port glib2. Use 'port -f activate glib2' to force the activation.

I don't know what this file is doing there, dangling, all by itself, but you'll need to overwrite it to install glib2. That file should not be sitting there like that.

Part 2 of your problem is that once again, the MacPorts instructions don't tell you about sudo. So you follow the suggestion:

port -f activate glib2

and it doesn't work because you need sudo to write into the MacPorts directory.

so do this:

sudo port -f activate glib2

then

sudo port clean pspp
sudo port -v install pspp

And please report back success.

Note: You don't _always_ need sudo to write into a MacPorts directory (if for example you put it in a suitable directory with suitable permissions), so the MacPorts instructions don't mention the need for sudo. But in your case, and in almost every case in fact, you will always need to use sudo to install, uninstall, or otherwise work with the MacPorts installation.

comment:18 Changed 6 years ago by dr15854

Installation was unsuccessful. It gave an error about requiring GTK+ 3.0. we have tried to install from the website using their commands, and we have been unsuccessful. I have attached the entire terminal output, including the results of the suggested steps.

Please provide next steps. Thank you.


From: MacPorts <noreply@…> Reply-To: "macports-dev@…" <macports-dev@…> Date: Wednesday, January 10, 2018 at 1:49 PM To: "dr15854@…" <dr15854@…>, "snc@…" <snc@…> Cc: "macports-tickets@…" <macports-tickets@…> Subject: Re: [MacPorts] #55563: pspp @1.0.1: configure failed

#55563: pspp @1.0.1: configure failed


Reporter: dr15854 | Owner: nerdling

Type: defect | Status: assigned

Priority: Normal | Milestone:

Component: ports | Version: 2.4.2 Resolution: | Keywords:

Port: pspp |


Comment (by kencu):

Well, I think we've found part of your problem:

Error: Failed to activate glib2: Image error: /opt/local/bin/gdbus already
exists and does not belong to a registered port.  Unable to activate port
glib2. Use 'port -f activate glib2' to force the activation.

I don't know what this file is doing there, dangling, all by itself, but you'll need to overwrite it to install glib2. That file should not be sitting there like that.

Part 2 of your problem is that once again, the MacPorts instructions don't tell you about sudo. So you follow the suggestion:

port -f activate glib2

and it doesn't work because you need sudo to write into the MacPorts directory.

so do this:

sudo port -f activate glib2

then

sudo port clean pspp
sudo port -v install pspp

And please report back success.

Note: You don't _always_ need sudo to write into a MacPorts directory (if for example you put it in a suitable directory with suitable permissions), so the MacPorts instructions don't mention the need for sudo. But in your case, and in almost every case in fact, you will always need to use sudo to install, uninstall, or otherwise work with the MacPorts installation.

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

Changed 6 years ago by dr15854

comment:19 Changed 6 years ago by kencu (Ken)

David, after three weeks of trying, you're no further ahead. This issue appears to be with your local installation of MacPorts, rather than MacPorts itself. Your installation of MacPorts appears to be in an inconsistent state.

Although it might possibly be repairable, the skills and time and iterations involved would be not worthwhile IMHO.

At this point, I would personally reset the installation by uninstalling MacPorts <https://guide.macports.org/chunked/installing.macports.uninstalling.html> and then reinstalling MacPorts using all default values and the MacPorts installer. This would take about 20 minutes, and is (virtually) guaranteed to work.

To see what ports you have requested and installed already, usually you can run this:

port list requested > ~/myrequestedports.txt

I'm not certain that command will work correctly for you given your current state of things, but you can try it.

Make sure you don't have a simultaneous installation of homebrew in /usr/local, or any software in /usr/local for that matter, to mess things up during your reinstall of MacPorts.

comment:20 Changed 5 years ago by nerdling (Jeremy Lavergne)

Resolution: invalid
Status: assignedclosed

Marking invalid: haven't heard back since an inconsistent macports installation was determined the cause.

Note: See TracTickets for help on using tickets.