Failed to update Mac ports

hansarijanto$ port -v MacPorts 2.0.3 hansarijanto$ xcodebuild -version Xcode 4.3.2 Build version 4E2002 

I am running the above version of xcode and macport. on max os x when I try to upgrade my mac port myself, I get the following error.

 hansarijanto$ sudo port selfupdate Password: ---> Updating MacPorts base sources using rsync MacPorts base version 2.0.3 installed, MacPorts base version 2.0.4 downloaded. ---> Updating the ports tree ---> MacPorts base is outdated, installing new version 2.0.4 Installing new MacPorts release in /opt/local as root:admin; permissions 0755; Tcl-Package in /Library/Tcl Error: /opt/local/bin/port: port selfupdate failed: Error installing new MacPorts base: shell command failed (see log for details) 

I am trying to update the mac port to install qt.

 sudo port install qt4-mac-devel(error no SDK found) 

which i need to install webkit-capybara

 sudo gem install capybara-webkit -v '0.7.2'(error in setting up native environment) 
+6
source share
3 answers

You need to use the -d option to get enough information to diagnose it; but look at https://trac.macports.org/wiki/FAQ#selfupdatefails for general problems and solutions.

+9
source

Apple seems to no longer install the Xcode command line tools. See here: http://ericwilson.erics.ws/ericsblog/2012/8/26/macports-port-selfupdate-fail for a solution.

+7
source

Just wanted to add that on Mac OS 10.12 Sierra I was getting a WARNING: GNUSTEP_SYSTEM_ROOT is not defined error WARNING: GNUSTEP_SYSTEM_ROOT is not defined on selfupdate , and I already had Xcode command line tools licensed and working. But my copy of Xcode is out of date, although it did not appear in automatic software updates.

I had version 7, and for Sierra (and macports) you need version 8.

So, I manually downloaded Xcode 8 through the App Store, and it solved the problem for me.

0
source

Source: https://habr.com/ru/post/913267/


All Articles