60

MacPorts It is more independent of Mac OS X, this means MacPorts will just ignore many of the system libraries and softwares that already available in Mac OS X and pull its own one instead, which could be slower when the utility you install requires some set of large libraries and softwares. But this kind of choice is safer because the packages you ...


51

port contents installed_port_name


43

Just to add some of my own thoughts that seem true-ish circa late 2014 at least. Homebrew, as of a couple of years ago, definitely has the upper hand in terms of mindshare. You'll find a lot of blogs with people talking about how much happier they are with Homebrew - usually because of the whole "MacPorts pulls in the whole world" vs "Homebrew makes use of ...


32

Fink has been around since at least 2001. Fink and MacPorts are package managers that want to be "orthogonal" to the system, that is, they install their own version of python, perl, libraries, compilers, etc. in own trees (/sw for Fink, /opt/local for MacPorts). The reason for this is that they have no control what Apple does with its software, and it ...


25

The problem is that your version of MacPorts was not built on Mavericks and assumes the tools that were there when it was installed are still available. Since this is no longer the case, you should re-install MacPorts, which will automatically fix this issue. Since there is no binary installer for Mavericks at the moment, you will have to build from source ...


23

Did you run sudo xcode-select -switch /Applications/Xcode.app? This message: error: can't exec '/Developer/usr/bin/xcodebuild' is telling you that your system is looking for xcodebuild in `/Developer/usr/bin/' but as of Xcode 4.3 (the one that's installed from the App Store) it's located in the Xcode.app bundle which is in /Applications. Edit In a comment ...


23

If you use contents, it will tell you where they are.


21

The MacPort documentation advises to use your Terminal and type: sudo port -fp uninstall installed and with this command, all remaining items will be deleted: sudo rm -rf /opt/local sudo rm -rf /Applications/DarwinPorts sudo rm -rf /Applications/MacPorts sudo rm -rf /Library/LaunchDaemons/org.macports.* sudo rm -rf /Library/Receipts/DarwinPorts*.pkg sudo ...


20

$ dscl . list /Users | grep -v '^_' daemon Guest macports <--------------------------------------------- remove? mixelpix nobody root $ /usr/bin/dscl . -search /Users name macports macports dsAttrTypeNative:name = ( macports <----------------------------------------- confirm... ) $ sudo /usr/bin/dscl . -delete "/Users/macports" <---- ...


18

Unless you performed a custom installation of MacPorts everything installed by MacPorts is located conveniently at /opt/local if you perform a directory listing at that location you should see the structure for port installed programs which should be installed in bin or sbin directories. user$ ls bin etc include lib libexec man sbin ...


18

sh --version is probably the same as /bin/sh --version. If the current shell is bash, you can see its version with echo $BASH_VERSION. If you change the default login shell with chsh, you can keep Terminal's default shell as the login shell. sudo port install bash Add /opt/local/bin/bash to /etc/shells chsh -s /opt/local/bin/bash Open a new tab and check ...


12

Since OS X has no package manager, anything you install would have been manual, through MacPorts or through Installer. If you want a list of the binaries your terminal has access to, you can run the following commands to check the most common spots, and output the result as a text file: touch ~/Binaries.txt ls /usr/bin > ~/Binaries.txt ls /usr/sbin >&...


11

Use port dependents <portname>. From man port: dependents Lists the installed ports that depend on the port portname. There is no way to search for all ports (including those not installed) depending on a certain port.


10

Macports is a tool for installing applications and command line tools on your Mac, with a huge library of “ports” (the Macports term for something that can be installed). You use it in Terminal.app like this: $ sudo port install nmap To break this command down: The $ at the beginning generally means that you have to enter the rest of the line into ...


10

There appears to be an issue with recent Macports builds of python see this bug A workaround is to install pyXX-readline (py35-readline has been produced just for this bug) Another is to install python addding the +readline variant


10

After updating to macOS Sierra, Apache httpd moves the old httpd.conf to httpd.conf.pre-update and place the new one. In order to work the localhost work please try the below procedure: cd /etc/apache2/ sudo mv httpd.conf httpd.conf-afterupdate sudo mv httpd.conf.pre-update httpd.conf sudo apachectl configtest sudo apachectl restart Then test: ...


9

dscacheutil is probably the best way to do this. It doesn't emulate the usual search process, it uses it, so you'll actually get the same results as a standard lookup (including caching, /etc/hosts, computer records in directory services, DNS, mDNS for .local names, etc). $ dscacheutil -q host -a name www.apple.com name: e3191.c.akamaiedge.net alias: www....


9

If you're using Homebrew, you should give the write permission to specific group (either admin or staff), so the files can be shared between users who are in that group. For example: sudo chgrp -R admin /usr/local /Library/Caches/Homebrew sudo chmod -R g+w /usr/local /Library/Caches/Homebrew Then assign the users who should have access to brew command to ...


9

As stated here https://trac.macports.org/wiki/ProblemHotlist, you need to run: sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer


9

I'd say the main differences are: Providence, outcome, and the method of distribution. The most important detail will be for you to check if the system you choose contains package(s) for the software you want. Package counts are approximately: 19k Macports, 22k Fink, 3k Homebrew, 10k pkgsrc. Macports, formerly Darwin ports seems to be a BSD style ports ...


8

The -p seems to work for me. From the manpage: -p Despite any errors encountered, proceed to process multiple ports and commands.


8

The options go at the end of the command, so in your case: sshfs user@host:/somewhere/on/the/Y /Z -o volname=Z I just had a similar problem and this fixes it for me!


8

When you call /bin/bash with only one argument, you can only run scripts. Not binaries. This has nothing to do with the tools you installed, it's just the behavior described in the man page. /bin/bash -c ls should do what you want.


7

To find where any Unix commandline executable is located, use the which command: $ which bash /bin/bash $ which port /opt/local/bin/port


7

Try to do something like pkgutil --file-info /usr/include/eigen3/your.file That will return where the file comes from... For instance (I do not have eigen3 in /usr/include): $ pkgutil --file-info /usr/include/cups/ppd.h volume: / path: /usr/include/cups/ppd.h pkgid: com.apple.pkg.DevSDKLeo Let me add, Macports would not install anything in /usr/include (...


7

Yes all the files in that folder located with in ${prefix}/var/macports/software/ can be deleted. Those are the installer packages for programs that you installed using MacPorts. MacPorts will re-download those as necessary when running the install or presumably the upgrade command too for a given program ,etc. The descripton of the purpose of the directory ...


7

Fink and MacPorts are direct competitors in that they install an orthogonal system. Fink lost considerable ground to MacPorts several years ago. I'm not completely sure why now, but MacPorts handled almost everything better. We've less reason for an orthogonal installation now that Mac OS X has grown less crazy pants. Brew was otoh created to integrate ...


7

Looks like they've already got a workaround: brew rm libpng brew install libpng --universal Then brew install wine. Worked for me a few moments ago. See the linked github issue for more details.


7

If you want to use a non-root MacPorts installation you will have to configure your installation to do that by installing from source and specifying --with-no-root-privileges as argument to ./configure. Note that you might have to set --prefix, too, if you want to do that. I would encourage you not to do that, for a couple of reasons, though: Directories ...


7

My dirty hack was a symlink to system tar command. sudo ln -s /usr/bin/tar /usr/bin/gnutar


Only top voted, non community-wiki answers of a minimum length are eligible