MacPorts is a package management tool for OS X, which provides many third party applications the operating system doesn't ship with.

learn more… | top users | synonyms

39
votes
4answers
6k views

How to install software packages on a Mac? (MacPorts, Fink, anything better?)

On my Mac OS X machine, how would you recommend I install command line software and other packages? I've been using MacPorts and it always seems quite slow, presumably because it has to compile the ...
39
votes
4answers
13k views

Is it safe to install both Homebrew and Macports on the same machine?

I have MacPorts installed on my iMac with a fair number of ports installed. I'm interested in trying out Homebrew, though, as I've heard many good things about it, and because I've noticed that it ...
33
votes
3answers
18k views

Homebrew vs Fink vs Macports? [closed]

I am using Fink to install Unix apps on my mac, I just came across Homebrew and saw some good reviews about Homebrew. So, my question is: What package manager do you guys use for Mac? I use Fink ...
22
votes
2answers
14k views

How to uninstall all unused versions of a macports package at once

When maintaining macports packages, I prefer to remove old packages when I replace them with new ones. However, over time as packages are upgraded, you end up with problems like: $ sudo port ...
21
votes
2answers
9k views

How can I clean up my MacPorts installation?

Which command should I run to delete all old port versions delete downloaded files temp files created during build all other stuff which I don't need when I am sure that updated version works fine ...
19
votes
1answer
10k views

Bash completion for commands in Mac OS

How do I get fink and macports to autocomplete program names when typing commands, as in Ubuntu's apt-get? For example when I type sudo port install ca and press tab, I want the terminal to ...
16
votes
2answers
14k views

How do you remove MacPorts and all the packages it has installed?

I have installed MacPorts on my Mac OS X Lion, and I would like to remove it. There should be no more trace of MacPorts? Is there a way to do this?
11
votes
2answers
3k views

macports gcc select error trying to exec i686-apple-darwin11-llvm-gcc-4.2

I am working on OS X 10.7 (Lion). I have installed gcc 4.7 from macports: sudo port install gcc47 It seems to be working properly: $ /opt/local/bin/gcc-mp-4.7 -v (...) gcc version 4.7.0 (GCC) ...
9
votes
2answers
3k views

Linux-like top/netstat/etc. on Mac OS X?

Unix utilities on Mac OS X are quite painful to use. port install coreutils +with_default_names and a few other such replacements fix most of them, but it leaves some in broken Mac OS X defaults - ...
8
votes
5answers
4k views

How do I tell sudo to write files with a umask of 0022?

I recently upgrading to Snow Leopard. I have noticed that some files written by MacPorts are installed with the wrong permission -- they are written with a umask of 0077. I think I have narrowed down ...
8
votes
2answers
2k views

Forcing Homebrew and Macports to coexist?

I have a MacOSX system that I've been using for a number of years, and during this time, I have installed quite a few packages via Macports. I now want to try Homebrew, but it's clear from what I've ...
7
votes
3answers
652 views

`which python` points to the python I want, but `python` runs the wrong version

I want to use python24 provided by ports, so I've installed it, and python_select -s shows that the version I want is indeed selected. Running which python gives /opt/local/bin/python, and running ...
7
votes
3answers
1k views

Macports, post-install and launchd: what were those instructions again?

When you install server software via MacPorts, when the installation is finished it prints some instructions about enabling the server via launchd. I promptly hit ⌘K on the Terminal and forget about ...
7
votes
1answer
2k views

MacPorts selfupdate fails on Mac OS X Lion

I recently upgraded my Mac Book Pro to Lion and faced challenges with MacPorts application that I had with me. I had downloaded and installed XCode 4.2 from the app store (very un - appstore like ...
6
votes
2answers
294 views

Macport upgrade fails with subversion-perlbindings conflict

I'm trying to do a port upgrade outdated, but it stops on a package conflict that I'm not able to fix. Does anyone know how to fix this problem? sudo port upgrade outdated ---> Computing ...
6
votes
3answers
2k views

Install software using a downloaded port file

I want to install some software in Mac using 'port install software-name' but some software come with very big package and I don't have a stable connection. I want to download the port file using a ...
5
votes
3answers
1k views

Where do I install certificates so that wget and other MacPorts programs will find them?

I have to install custom certificates so that they work with wget installed via MacPorts. I can't find the right directory. I've tried installing in /System/Library/OpenSSL/certs but that directory ...
5
votes
3answers
14k views

“sudo: port: command not found” after installing MacPorts on Snow leopard

I have attempted to install MacPorts in order to upgrade my Rails version so that I can work my way through Agile Web Development with Rails, PragProg (4th, 2011). I have followed the directions in ...
5
votes
2answers
1k views

Macports install of ack doesn't create correct executable

I am trying to install p5-app-ack port from Mac Ports, but it seems it doesn't create a /opt/local/bin/ack binary at the end: $ sudo port search *app-ack Password: p5-app-ack @1.960.0 (perl) A ...
5
votes
1answer
5k views

How to remove xcode warning in macports?

I have this warning in macports: Romans-iMac:~ holms$ sudo port -v install nginx +ssl Error: Error: No valid Xcode installation is properly selected. Error: Please use xcode-select to select an ...
5
votes
1answer
2k views

“whereis” and “which” return different paths in Mac OS X

I've got the default OpenSSL 9.8 (Mac OS X 10.6.8) and decided to install the newest version (1.0.1) via MacPorts (sudo port install openssl). These are console output of which and whereis commands: ...
5
votes
1answer
6k views

How do I fix “Library not loaded: libssl.1.0.0.dylib” with PostgreSQL?

After deleting Macports, I've had some strange behaviour. When I try to run PostgreSQL via CLI, I get: pawel:~ pawel$ psql dyld: Library not loaded: /opt/local/lib/libssl.1.0.0.dylib Referenced ...
5
votes
3answers
22k views

How to install Darwin Ports or Mac Ports on Mac OS X 10.6 Snow Leopard?

Update: Don't waste your time with MacPorts. I would recommend using Homebrew instead. It's easy to use and doesn't clutter up your system with a bunch of junk directories. Update: Don't install ...
4
votes
3answers
8k views

How to specify which GCC for MacPorts to use?

I compiled GCC 4.4.3 and installed it in /usr/local/bin, but whenever I install a port via MacPorts 1.8.2 the verbose output says MacPorts is using /usr/bin/gcc-4.2: checking for gcc... ...
4
votes
6answers
6k views

Install multiple PHP environments on OS X Snow Leopard

I just upgraded my MBP to Snow Leopard (OS X 10.6), which took PHP to 5.3 This is great, except I use my MBP as my development machine and I use a lot of PHP libs and frameworks (namely CakePHP 1.2) ...
4
votes
4answers
6k views

Mac Terminal: changed my shell, now can't start it

I installed bash 4.0 via MacPorts, then used sudo chsh -s /opt/local/bin/bash my_user to change my shell. Before that I tried just running plain chsh without sudo, but it wouldn't allow me to change ...
4
votes
1answer
906 views

Where does Macports install GNU sed when I install coreutils port?

Where does Macports install the GNU sed when I install coreutils port? I want to use GNU sed instead of BSD sed on Mac OS X.
4
votes
2answers
2k views

MacPorts: How to clean out source code

So I haven't cleaned up after MacPorts in, um, ever and I'm trying to cut down on the disk space it's using. The source code for several (but not all) of the ports are still on my disk. Since I've ...
4
votes
1answer
3k views

FFmpeg (MacPorts) - libfaac missing, need new audio encoder

I am so confused. I am trying a quite simple FFMpeg command to transcode a movie file to a x264/AAC mp4 file via the command line (for Vimeo upload). (Mountain Lion/Macports) ffmpeg -i INPUT.AVI ...
4
votes
2answers
663 views

Macports, Fink, Hombrew: Background Processes?

If I install a package manager such as Macports, Fink or Homebrew, how does it affect the startup and running of my system? It seems like the answer should be "Not at all when you're not using them" ...
4
votes
1answer
985 views

Yum commands cheat sheet for Macports users

What are the equivalent yum commands of the following MacPorts port commands? search self-update installed (list) outdated (list) Are some things completely different from MacPorts?
4
votes
2answers
2k views

How to remove failed macports software?

I was installing gimp using macport But it takes me 2 hours to build and install the entire dependents. So I stopped it. But no matter I use uninstall or clean command. It took me 2GB disk. I wonder ...
4
votes
1answer
7k views

Mac OS X 10.6.3: how does Apache config work?

Just got a MacBook Pro 15" so I'm unfamiliar with how the filesystem is laid out. I noticed when in my filesystem that I've got a few paths specifying httpd.conf: /etc/apache2/httpd.conf ...
4
votes
2answers
1k views

How do I install php5 via MacPorts with a custom configure option?

So MacPorts is the most painless way of installing stuff on my machine. But I want some custom options on my php5 install. How do I do this? With a downloaded version of php, I would do this: ...
3
votes
3answers
3k views

Using MacPorts to install to another directory other than /opt/local/bin

I'm having a problem of consistency between my machines because I have to explicitly specify the command path for some items like Image Magick. Port installs them to /opt/local/bin, but for ...
3
votes
7answers
5k views

MacPorts Base vs. Snow Leopard 64 bit environment

Since I use 10.5 I'm quite happy that a whole lot of stuff is working currently like it should. However there's this Snow Leopard DVD next to my desk that just seems to say "Install me". If I do: Do ...
3
votes
2answers
3k views

How to install perl5.10 on OS X 10.5.8?

I need to install perl 5.10 on my OS X 10.5.8 box. I have macports installed. And I seem to have port perl5.10 installed as well: $ sudo port install perl5.10 Password: ---> Computing dependencies ...
3
votes
1answer
449 views

meld on OS X 10.7 doesn't work?

I'm installing meld on Mac OS 10.7 using port. It has downloaded all dependencies and told that everything is ok: Staging meld into destroot Installing meld @1.5.3_0 Activating meld @1.5.3_0 ...
3
votes
1answer
110 views

Installing MacPorts as a non-superuser

Is it possible to install MacPorts as a non-superuser? I install applications to ~/Applications/ and they run fine. I'd like to install an instance of MacPorts to ~/opt/local/, and have everything ...
3
votes
1answer
2k views

Problems uninstalling MacPorts

I am new to mac and OSX, and I installed MacPorts, and a few minutes later I realized that I confused it for another program that I intended to install. Now I have no idea how to uninstall it. I have ...
3
votes
2answers
5k views

How to force the rsync to use my proxy settings?

I am installing macports on my Mac OS X and for fetching the binaries from the repository it uses rsync protocol. Unfortunately seems the repository is not accessible by direct connection from my ...
3
votes
2answers
1k views

Ok to pause MacPort installation, hibernate, and continue later?

I've got a MacBook and I started installing a large package (gcc 4.4) using MacPorts about an hour ago. I didn't realize it would take so long and I have to leave in a few minutes and bring my laptop ...
3
votes
1answer
3k views

Install 32-bits ports on Snow Leopard

I recently upgrated to Snow Leopard and (in order to avoid a lot of problems) I'm running it on 32-bits mode. In spite of this, as almost all SL native applications are 64-bits, it seems to run on a ...
3
votes
2answers
137 views

How can I copy into the Mac clipboard from vim?

I can paste from vim in one terminal window to vim in another, but not to anything outside vim. I've read numerous posts on the subject, and nothing I've found has helped. Copy/pasting from MacVim ...
3
votes
1answer
1k views

MacPorts: How do I rebuild of a specific port?

How do I force MacPorts to rebuild a specific port? I manually made a change to a MacPorts makefile to link in a specific library, but the missing symbol still cannot be found. Perhaps I need to ...
3
votes
1answer
438 views

Macports to Homebrew conflicts?

I am currently using MacPorts on Lion but thinking of switching to Homebrew. There is a suggestion that installing to /usr/local causes problems and ~/.homebrew would be an alternative. Can I ...
3
votes
3answers
5k views

Mac OS X - macports - Warning: No index(es) found! Have you synced your source indexes?

I'm trying to setup an Android build environment for Android. I'm following these instructions. However, after the installation of MacPorts I'm not able to install the environment. Following the ...
3
votes
2answers
2k views

pkgsrc or macports on Mac OS X?

I've used macports for a long time. But recently I'm considering switch to pkgsrc. I thought pkgsrc is for NetBSD only so I just ignore it. But recently I've found out that pkgsrc makes a lot of ...
3
votes
0answers
143 views

MacPort and LaunchAgent without sudo

I'm running Snow Leopard and am trying to install Wine. To keep things simple, I'm trying to install Wine using MacPorts. My MacPorts is local to ~/opt/local/. However, one of the required packages ...
2
votes
2answers
977 views

What's the difference between tiny, huge and small in vim on MacPorts?

I'm trying to install vim via MacPorts. I found this port at http://trac.macports.org/browser/trunk/dports/editors/vim/Portfile. There are variants like tiny, small and huge. Is there any way to tell ...