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

3
votes
4answers
2k 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 ...
27
votes
1answer
14k 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 ...
31
votes
3answers
18k 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 ...
1
vote
1answer
150 views

MacPorts takes huge time and resources

I'm installing clang-3.2 and it's taken more than 1.5 hours already running at 400% (all CPU threads at 100%), and 3 GB of hard drive space... Around 20 GB has been written and deleted according to ...
2
votes
2answers
444 views

How to find out a file belongs to which package in Mac OS X?

Is there a way to find out which Application / package owns or creates a specific file? For example, in Linux these commands will show the package owner apt-file /bin/progname rpm -qf /bin/progname ...
1
vote
1answer
497 views

Installing MySQL with Macports on Yosemite

I am following this tutorial Step 3 (Install MySQL) but it's failing. I am running Mac OS X Yosemite and have freshly installed Macports 2.3.3-10.10. sudo port install mysql51-server failed with "All ...
1
vote
0answers
13 views

Python not finding appropriate modules/ python version problems

I'm trying to install w3af, and getting a myriad of dependency issues; these I'm trying to resolve by attempting to run a python script which imports the required modules - if this runs without ...
3
votes
1answer
850 views

Install GParted on a mac with Homebrew or Macports?

I'd like to install Gparted on my mac, and I thought I could use Homebrew or Macports to help with that, but I can't seem to figure it out. I tried using Homebrew because I haven't really heard good ...
0
votes
2answers
185 views

Macports Apache httpd not starting on Mac OS X Yosemite

So, after 2 days of struggling to figure why Macports Apache httpd suddenly decided to stop working, finally it came down to this: $ sudo bash -x /opt/local/apache2/bin/apachectl -k start ARGV='-k ...
2
votes
3answers
3k views

X11.app (on SnowLeopard) won't start

Today I discovered that X11.app no longer works on my Mac. I'm not sure when this happened. I think it's been several weeks since I last used an X11 application. By "no longer works" I mean it does ...
0
votes
1answer
249 views

Xquartz stopped working on Maverics. Cannot install a valid X11 forwarding

I'm having trouble with XQuartz on Mavericks. After I went to apple genius support to change my battery (in which the genius guy forced power off when I had an X11 connection opened), I am having the ...
0
votes
1answer
122 views

Homebrew Apache Issues Post MacPorts Removal

I removed MacPorts completely following their guideline here. uninstaling all ports and then removing all folders sudo rm -rf \ /opt/local \ /Applications/DarwinPorts \ /Applications/MacPorts \ ...
0
votes
2answers
3k views

Can't log into account on Macbook Pro

I installed MacPorts on my Macbook pro with lion, restarted, and now I cannot log into my account. After the restart it hung at the loading screen (the apple with the loading icon) for a while. I ...
2
votes
3answers
3k views

How do I install the Postgres command-line client (psql) on OS X using MacPorts?

I'm trying to install the Posgtres command-line client (typically psql on Linux). I've got postgres installed through MacPorts (postgresql90 and postgresql90-server) but still don't see the client ...
1
vote
1answer
158 views

How do I use MacPorts' Perl installation with MAMP?

I have MAMP 3.0.6 and MacPorts 2.3.1. There are some Perl modules that I need to use (through some CGI scripts), I installed them on the MacPorts Perl installation (e.g., p5.16-dbd-mysql), but I can't ...
9
votes
2answers
2k views

LSOpenURLsWithRole() failes with error -10810 on Yosemite from within tmux

Trying to open an application from the commandline (terminal.app), inside tmux (installed through macports, version 1.9a), and getting the following result: $ open /Applications/Adobe\ Reader.app/ ...
1
vote
1answer
1k views

Macports gives “sudo: cannot get working directory” error, then fails

Macports doesn't work: sudo: cannot get working directory shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory error getting working ...
46
votes
5answers
19k 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 ...
0
votes
1answer
158 views

Mercurial authorization issue on Yosemite

I have a local HG repo for my client work. I've configured the HG server before on earlier versions of OS X without any issues, but on Yosemite I am stuck. I used MacPorts' mercurial package, ...
5
votes
3answers
3k 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 ...
1
vote
2answers
2k views

Is MacPorts the only thing that uses /opt/local?

The procedure for uninstalling MacPorts involves deleting many directory subtrees, including /opt/local. I was suspicious of this; the directories in /opt/local have the same names as many found in / ...
1
vote
0answers
524 views

Upgrading APC extension in MAMP

I'm trying to upgrade the APC extension in MAMP. I have got installed MacPorts and with the following command I've installed the autoconf: sudo port install autoconf Then I've executed this command: ...
1
vote
0answers
27 views

Can you install Macports to the home directory and still have everything work?

I do not have root access on my computer, and I would like to install Macports. That raises a problem, however, because installing Macports requires sudo. This link shows how you can install Macports ...
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
0answers
183 views

After logging into MySQL 5.6 successfully as root, it says access denied for root, ERROR 1045 (28000)

I recently used MacPorts to upgrade from MySQL 5.5 to 5.6. I can use my database fine on my laptop. I tried to enable remote access to the database so I could edit the database using DB clients on ...
2
votes
2answers
3k 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. ...
0
votes
4answers
2k views

Still unsolved error installing on macports. “Dependency not found”

I am trying to install 'ipe' on Snow Leopard via macports. The command I am running is "sudo port install ipe". This is the output: Chriss-MacBook:macports chris$ sudo port install ipe Warning: No ...
1
vote
1answer
65 views

Is there any way to list all files in a Mac terminal that have a specific owner?

In my case the ownership would belong to Macports, which I removed. However, I found there are still some files here and there that apparently belong to Macports and I would like to remove them as ...
0
votes
1answer
57 views

Mac ports passing argument to install of ImageMagick

I am trying to pass the argument --with-rsvg when installing ImageMagick with MacPorts. I am doing it like this: sudo port install ImageMagick --with-rsvg But after installing, I get this error: ...
0
votes
1answer
206 views

Where does Macports install freerdp

I just installed freerdp with macports but I can't seem to find the binary anywhere. xfreerdp command doesn't run either. This is the command I ran: sudo port clean freerdp && sudo port ...
0
votes
0answers
108 views

Can't build using MacPorts in OS X

I've submitted a ticket here, but I am pretty pessimistic it'll be addressed. As I say, there, I'm running MacPorts 2.3.1 on OS X 10.9.3. In trying to install llvm-3.2, I get the following error: ...
0
votes
1answer
216 views

Problems when installing NumPy on MacOS 10.9.4

I am using MacOS 10.9.4 with Xcode 5.1 (command line tools installed) Today I upgraded macports and installed py27-numpy. Everything looked ok in my terminal window. Then I tried to install PyCogent ...
5
votes
1answer
1k views

Tesseract OCR : Unsupported image type

I converted the PDF to TIF file using the following commands on terminal convert -density 300 -depth 4 lang.font-name.exp0.pdf lang.font-name.exp0.tif convert lang.font-name.exp0.tif -colorspace rgb ...
1
vote
3answers
2k views

Running php scripts via command line mode gives warnings

Whenever I run my php command line script, before the script actually outputs to the screen, php always returns a bunch of error messages as follows: PHP Warning: PHP Startup: Unable to load dynamic ...
2
votes
1answer
459 views

Why doesn't __git_ps1 work in bash anymore on OSX with MacPorts?

After updating Macports today, I get -bash: __git_ps1: command not found. Why is that?
1
vote
1answer
252 views

Python IDLE won't launch - (Using MAC 10.8.5 /Python and UNIX noobie)

Months ago, I installed Python 2.7 on my MacBook Pro (OS 10.8.5) and was using IDLE to run programs for classes I was taking on Udacity. One morning IDLE would no longer start, it would just bounce ...
0
votes
1answer
17 views

MacPorts: time stamp of lastest revision to a given port

The time of latest revision to a port is a pretty reliable criterion for deciding whether a port is dormant/abandoned or not. In the web interface of MacPorts, we can see when the port is last ...
0
votes
1answer
347 views

Fixing borked macports

I tried to install some packages and got following errors: $ sudo port install pkgconfig ---> Computing dependencies for pkgconfig ---> Dependencies to be installed: libiconv ---> ...
8
votes
5answers
5k 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 ...
18
votes
2answers
21k 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?
2
votes
1answer
1k views

How do I remove an old version of iconv on which other software depends? (and other lovely issues) [OS X]

Recently, I unsuccessfully tried to install a series of badly written software in a hacky way (won't bore you with the details) and now it seems my OS X (Lion, 10.7.5) system files are a mess. I'll ...
0
votes
0answers
97 views

vim and macvim are not reading my .vim directory

I have installed vim and macvim using macports, and tried copying over my .vim directory from linux. Neither seems to read anything from that directory: my customizations for folding and indenting ...
8
votes
3answers
22k 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
1answer
536 views

Macports refuses to install python 2.7.6.0

I'm trying to upgrade various programs I have installed with MacPorts. Unfortunately, python refuses to upgrade: ---> Computing dependencies for python27 ---> Configuring python27 Error: ...
0
votes
1answer
217 views

How can we “persuade” fink, port, & brew to coexist in parallel on OSX Mavericks?

We like to use brew, but it doesn't have a lot of gnome toolset formulae, and we can install a gnome-terminal very quickly with FinkCommander. We've built various parts of gnome from scratch, but ...
7
votes
2answers
804 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 ...
0
votes
2answers
492 views

Can I properly change pip-2.7 command to pip?

Basically trouble is that I have pip-2.7 command in terminal but not pip. First thought was sudo port select --list pip will help, but it doesn't even has that group Romans-iMac:~ holms$ sudo port ...
0
votes
1answer
126 views

macports dependency: upgrade all packages not depending on a specific port

I have upgraded to Maverick when I run: sudo port upgrade outdated I get the error: Error: eigen does not build on Mavericks or later. I have plenty of ports that does not depend on eigen, how ...
1
vote
0answers
1k views

How do I properly configure my .xinitrc file to start the openbox session manager

I've installed openbox twice - once with Fink, and once with MacPorts. Both installations yield the same result: startx terminates with an error diagnostic from xinit. I have a working .xinitrc for ...
1
vote
0answers
205 views

How to install Google WEBP on Mac OSX Mavericks via Macports

I run Mac OS 10.9.1 (Mavericks) and I would like to install Google's webp extension: sudo port install webp I also did a selfupdate before and an autoupdate for outdated libraries. However, when it ...