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

31
votes
1answer
19k views

Bash completion for commands in Mac OS X

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 ...
9
votes
3answers
34k 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 ...
1
vote
2answers
502 views

Back up MacPorts files

I am planning to migrate from MacPorts to homebrew. Where are all the MacPorts files located (mostly what it installs) so I can back them up? (I do have a regular backup, of course)
3
votes
3answers
6k 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 ...
1
vote
1answer
571 views

ICMP injection failure with nemesis on Mac OS

This started with a simple task, send an ICMP package of type 8 and code 0 to a host in my network. Since I use my Mac for everything I installed nemesis using macports and tried the following command....
1
vote
0answers
652 views

How to install openCV running from Python on OS X

(Step 1) I'm trying to get openCV to run from python on my mac using the MacPorts install, and also trying to follow The Petite Geek's guide: sudo port -v install opencv +python26 It runs for ...
4
votes
2answers
2k 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: ./...
2
votes
1answer
904 views

Installing MacPorts on Snow Leopard

I installed MacPorts from the DMG package at http://www.macports.org/install.php After installing it I tried to use it and get this: dlopen(/opt/local/share/macports/Tcl/macports1.0/MacPorts.dylib, ...
0
votes
1answer
2k views

Library conflict in Mac OS X

I was trying to install the ImageMagick library on Mac OS X Snow Leopard, and first I tried port and, after it failed, homebrew. It updated some dependencies and installed ImageMagick without problems....
1
vote
2answers
3k views

port command of MacPorts not found when trying to install wine

I'm an absolute terminal noob (the wine installation process was my first ever time opening it) so its probably a simple fix. that being said I will need any answer broken down to its simplest ...
0
votes
1answer
371 views

configure architecture?

When trying to install a more recent version of subversion, I get an installation error for 'apr'. When I look at the log file, it says: :debug:main Using compiler 'Mac OS X gcc 4.0' :debug:configure ...
5
votes
3answers
2k 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 ...
1
vote
1answer
870 views

Macports - Tmux status bar config

Anyone know where this is located? I tried the usual directories that macports uses and there's nothing in my home directory.
1
vote
2answers
164 views

Installing MySQL on MacOS

I want to install mysql. Big Internet told me that I should do it via MacPorts. I've downloaded MacPort's dmg and it asks me to install XCode which I can buy via App Store. It is ridiculous to pay ...
1
vote
3answers
323 views

Best way to run MacPorts Install Script (Sudo keeps timing out)

I started a new job that mostly uses Ubuntu, and has an apt-get based boostrap script for bash. I've renamed the packages as appropriate from MacPorts, but some of the programs take long enough to ...
2
votes
1answer
595 views

Size of download in MacPorts

When i try to install a package through apt-get on linux, it shows me the total amount to be downloaded and the space that will be used after install. Is there a way to view this information while ...
0
votes
1answer
437 views

Hard links on AFP

I'm trying to run MacPorts via AFP. Most ports run fine but I'm trying to install mercurial, which requires the MacPorts Python 2.6 file. Building Python 2.6 chokes on the following line in the ...
3
votes
2answers
2k 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 ...
1
vote
1answer
771 views

Is there a way to automatically restart Apache on Mac OS X if it crashes?

I've installed Apache using MacPorts. It crashes every once in a while, and I need to manually restart it. Is there a way to get Apache to automatically restart if it dies for some reason? Perhaps ...
2
votes
1answer
508 views

Installing Wine with MacPorts

I'm using a MacBook Pro Snow leopard and trying to install wine in the terminal. I enter: sudo ports install wine and I get: sudo: ports: command not found.
0
votes
1answer
195 views

Configure macports to build and install to user-specified directory?

I want several machines on my network to be able to use some libraries installed with MacPorts (the libraries are ImageMagick and its dependent image libs). I do not want to build and install for ...
0
votes
2answers
1k views

macports over http

is there an easy way to run mac ports over port 80 (via proxy server)? 873 is blocked. are there any limitations to running this over port 80?
1
vote
2answers
14k views

Getting PATH right for python after MacPorts install

I can't import some python libraries (PIL, psycopg2) that I just installed with MacPorts. I looked through these forums, and tried to adjust my PATH variable in ~/.bash_profile in order to fix this ...
0
votes
1answer
782 views

OSX Terminal reverted using Vim 7.2 after I installed 7.3 from macports

I installed Vim 7.3 via MacPorts, and it worked great. However, after I closed Terminal and came back to it, I found out after a little bit that it had reverted to the old 7.2. How do I remove the old,...
1
vote
1answer
3k views

Why doesn't iPython see readline?

I am trying to compare/contrast various python tools and I would like ipython in the mix, but when I run ipython I get the readline warning even though readline is installed on my mac: WARNING: ...
2
votes
2answers
4k views

How do you know where macports installs python packages to?

I am running macports to install scipy and such on OS X leopard with python 2.7. The install runs successfully, but running python and trying to import the packages I've installed, they're not found. ...
2
votes
1answer
124 views

problems on installing py25-py2app-devel

I'm trying to install py25-py2app-devel on a Mac 10.5.8 Darwin 9.8.0 because it's required to py25-matplotlib. Using porticus I receive this error: Error: Target org.macports.destroot returned: ...
5
votes
2answers
4k 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 ...
0
votes
1answer
367 views

MacPorts is installing an older version of Perl w/Git - why?

This is my first experience with MacPorts. I'm using it to install Git 1.7.3.2. I noticed during install that it's downloading and installing Perl 5.8.9 on my Snow Leopard Mac which comes pre-...
0
votes
1answer
809 views

(Perl) Cannot do `initialize' in Term::ReadLine::Gnu in Mac OSX 10.6

I recently installed MacPorts and I think it might have messed up some of my libraries. Now when I try to run the Perl debugger I get this: >perl -d -e 0 Cannot do `initialize' in Term::ReadLine::...
2
votes
1answer
557 views

Make macports default to installing universal binaries?

I use macports to install C libraries that various Haskell libraries depend on. Unfortunately, the current version of Haskell only works under 32 bit in OS X, but other things using these libraries ...
0
votes
1answer
876 views

Cannot install git-core using macports

Snow Leopard 10.6.4 mac ports 1.9.1 I have just installed macports and I want to install git-core. However, I get the following errors: ---> Computing dependencies for git-core ---> ...
0
votes
1answer
608 views

Change the mysql.sock that the system PHP uses

In the past I had installed MySQL as part of XAMPP in /Applications/XAMPP/ and the PHP that the system used (e.g. from command line) used /Applications/XAMPP/xamppfiles/var/mysql/mysql.sock to connect ...
8
votes
3answers
4k 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 ...
2
votes
2answers
485 views

Creating aliases for version specific macports ports

In Macports, I've just installed 'python27' along with various 'py27-*' ports. I've noticed that ports like 'py27-nose' and 'py27-pip' are available in my path as 'nose-2.7' and 'pip-2.7'. I can use ...
4
votes
1answer
2k views

Can pkgsrc, Homebrew, Fink, and MacPorts peacefully coexist?

I heard that some people like to use both Fink and Macports since some packages exist in one and not the other. Recently I've had trouble building and running packages like GRASS and Digikam w/ ...
2
votes
2answers
1k views

MacPorts infinite loop error

I have recently installed MacPorts. Whenever I try to install anything, however, I get an error of the following format: m2214:~ speyer$ sudo port install xfig Password: ---> Computing ...
55
votes
6answers
25k 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 ...
1
vote
2answers
880 views

Finding out the “tips” of currently installed MacPorts packages or graphing the dependency tree

My Mac accumulated a lot of installed ports that I may not need when reinstalling it soon. I want to only install those packages which I know I'm using, but to filter them out of the huge list of ...
0
votes
5answers
3k views

How do I specify which install of Apache I want my Mac to use?

All my problems stemmed from trying to get mcrypt for PHP installed. Last night I gave in and followed a tutorial of how to do a totally fresh apache2 and php5.3.3 install. I did this using macports ...
1
vote
1answer
1k views

Create alias (desktop shortcut) of an application installed by Macports

I just installed Dia using macports. Now, I need to place the shortcut in the Apps folder and also make the executable available in the Spotlight search. How can I do that?
3
votes
1answer
124 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 ...
1
vote
1answer
2k views

Mac ports installation of gcc46 failing due to architecture problems

When trying to install gcc46 on OS X 10.6.4 using port (MacPorts 1.9.1) i get the following errors: artemis:foo$ sudo port install gcc46 Error: Cannot install gcc46 for the arch(s) 'x86_64' because ...
2
votes
2answers
3k views

Best programs to to install on Mac OS X with Macports [duplicate]

Possible Duplicate: What are some “must have” Mac OS X programs? What are the must-have programs to install on a Mac with Macports? One per answer please... Or, if you prefer not ...
15
votes
2answers
6k 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 - ...
1
vote
0answers
561 views

Problem installing gtk+ 1.2.10 using MacPorts (putty install)

I am trying to install putty, and the process includes installing a bunch of MacPorts packages, including GTK+ The GTK build is failing as follows: :info:build /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -...
40
votes
3answers
28k 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 ...
36
votes
3answers
21k 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 ...
1
vote
1answer
689 views

Can't install lua on Mac 10.6.4

I uccessfully installed MacPorts on Mac 10.6.4 but I can't install lua. I know MacPorts is installed because from my Administrator account I can successfully execute 'port selfupdate' and 'port search ...
1
vote
1answer
614 views

MacPorts: is it possible to move /opt/local on a different disk?

Is there a secure procedure to move the macports directory strucutre on a non-root partition or disk?