Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Resolving a macports installation 'conflict'

I'm trying to build a 64-bit version of wxpython, to work with my macports version of python2.7 (universal build). I've been pointed to the following port py27-wxpython-devel and done the usual install command. Unfortunately I immediately receive the following error message

Unable to execute port: Can't install wxWidgets-devel because conflicting ports are installed: wxWidgets

I assume this means I need to remove wxwidgets to enable me to install this port. I'm reluctant to do this however because I expect this wxwidgets is something to do with the version of wxpython that I currently have working. Is there an alternative solution?

like image 264
Paul Patterson Avatar asked Dec 19 '11 12:12

Paul Patterson


People also ask

How do I know if MacPorts is installed on my Mac?

Confirm that MacPorts is installed by typing "which port" and verifying that it returns /opt/local/bin/port. If not, see below on adding the MacPorts bin to your shell path.

Does MacPorts build from source?

If no archive is available, MacPorts will fall back to building from source. This can happen for a number of reasons: Each port is only prebuilt with its default set of variants. So if you specify different variants when installing, the port will be built from source.

What are MacPorts?

MacPorts, formerly called DarwinPorts, is a package management system that simplifies the installation of software on the macOS and Darwin operating systems.


1 Answers

In this case, wxwidgets-devel is a newer, experimental version of the wxwidgets port. You need to choose one or the other. Fortunately, MacPorts makes it easy to do so with little risk. First, run

sudo port deactivate wxwidgets

which will remove the installed links to the port but will not remove the built port. Then you can run

sudo port install wxwidgets-devel

If you later want to switch back, just run:

 sudo port deactivate wxwidgets-devel
 sudo port activate wxwidgets

To permanently remove a port, use uninstall:

 sudo port uninstall wxwidgets
like image 148
Ned Deily Avatar answered Sep 29 '22 07:09

Ned Deily