Questions tagged [macports]
A package management system for OS X. It allows for easy installation of free/open source software. Formerly called DarwinPorts.
340
questions
221
votes
7
answers
151k
views
What are pros and cons for MacPorts, Fink and Homebrew?
I'm just migrating from Ubuntu Linux to Mac, and everything is new and I'm re-learning a lot of stuff.
On Linux I had the excellent apt-get to manage software packages. I googled for an alternative ...
106
votes
7
answers
113k
views
How to remove unused MacPorts packages?
Whenever I install a program via MacPorts, it gets and installs lots of dependencies. When I uninstall said program, how do I make MacPorts recursively remove all unused dependencies with it?
101
votes
7
answers
188k
views
Are my permissions for /usr/local/ correct?
I’m using HomeBrew for my port needs (seems a bit “cleaner” than MacPorts).
I can install without sudoing (which is great), but the man linking step seems to require it (/usr/local/share/man/man3 is ...
43
votes
2
answers
26k
views
Listing all files installed by some MacPorts package
How to list all files that was installed by some MacPorts package?
For example in Funtoo (or in Gentoo) I can achieve the same with a command:
equery b [package name]
41
votes
4
answers
27k
views
MacPorts vs. Fink vs. Homebrew [duplicate]
I always used MacPorts to install and maintain my GCC compilers and other programs. Now I've heard about Fink and Homebrew. It seems these two utilities are gaining ground in the Mac community, but I ...
35
votes
5
answers
69k
views
Where does macports install programs
I have installed both moria and ettercap using MacPorts (via pallet) and I can't find out where the things were installed to run them!
Where is the install directory?
EDIT: When I install things JUST ...
28
votes
1
answer
21k
views
How to delete MacPorts user after using the Migration Assistant
My 2012 MacBook Air (11", i7 2GHz 8GB RAM) crashed and I had to erase the SSD and re-install macOS High Sierra with the Internet Recovery Mode tools. Once I had the working OS, I used the Migration ...
27
votes
7
answers
13k
views
missing /usr/bin/gnutar on Mavericks (MacPorts)
MacPorts is complaining about missing /usr/bin/gnutar on Mavericks
:info:extract sh: /usr/bin/gnutar: No such file or directory
gnutar is indeed not there anymore.
As suggested here I tried to ...
24
votes
8
answers
27k
views
What are your "must-have" MacPorts? [closed]
I hate to be all cliché with yet another "best [something]" question, but I am genuinely interested in what you most often install with MacPorts. When you get a new Mac, which ports do you first ...
17
votes
5
answers
39k
views
Xcode appears to be installed but xcodebuild is unusable
I was had to reinstall Xcode 4 and now I'm getting message Xcode appears to be installed but xcodebuild is unusable; and xcodebuild exists but failed to execute all the time when I try to install ...
17
votes
1
answer
13k
views
How to cleanly remove MacPorts
I'd like to cleanly remove all changes made by MacPorts as well as MacPorts itself, to try my luck with homebrew. How can I do that?
16
votes
4
answers
5k
views
MacPorts: Continue installing other updates after error
Say I have the following outdated packages:
foo
bar
baz
I want to update as many as them as possible, so I try to run:
sudo port -n -f upgrade outdated
However this fails with:
Error: org....
16
votes
4
answers
7k
views
Using pip vs. MacPorts for installing Python packages
I could install a python package (for example, numpy) on my Mac either via Macports:
port install py-numpy
or via pip:
pip install numpy
What are the general pros/cons of each approach? When ...
15
votes
3
answers
9k
views
Is there any alternative to MacPorts?
MacPorts became really a pain because it does compile the packages on your machine, like the infamous gentoo and I would like something with a smaller footprint on your machine.
I know that Fink and ...
14
votes
2
answers
3k
views
How to find which ports depends on a given one when using macports?
I want to find which ports depends on a given installed port (texlive in my case). I found port deps texlive, but this is working in the "wrong" direction. How can I do it?
14
votes
2
answers
49k
views
How do I find what packages I've installed via terminal?
I've been learning the shell for a few weeks and have installed several packages. I know/remember what some of them are, like oh-my-zsh and emacs 24 (which was a nightmare to upgrade to), but not sure ...
12
votes
1
answer
7k
views
Set default shell to MacPorts bash in Mac OS X 10.6.8?
As a follow up to my previous question, I reinstalled my MacPorts and want to try its newer version of bash again.
I installed the newest bash via MacPorts on my Mac OS X 10.6.8 system, but when I ...
12
votes
3
answers
6k
views
Wrong volume name for sshfs volume in Finder even with volname option
I am using sshfs @2.5 and osxfuse @2.6.4 installed via MacPorts 2.2.1 on my MacBook Pro Retina Late 2013 which is running OS X Mavericks 10.9.2. When issuing the following command:
sshfs -ovolname=Z ...
12
votes
2
answers
3k
views
Migrating from MacPorts to Homebrew. Is there any specific advice in how to minimize disruption?
I want to stop using macports, and use homebrew instead, I have been reading on their approach and it makes more sense to me.
Now, I don't care much about having to reinstall my packages, even if some ...
11
votes
3
answers
13k
views
Installing wine with homebrew
So, I am running a bit of a different install. Here's the background:
I have installed wine before with MacPorts.
Later, I decided to install homebrew.
Then, wine didn't work so I tried brew install ...
10
votes
3
answers
6k
views
How can I install getent on Snow Leopard?
I have several scripts which require the utility getent. In addition, I've read several handy tips which use getent.
getent is a Networking utility which is widely available on Unix, *BSD and Linux-...
10
votes
1
answer
8k
views
What is Macports?
So, I've read the documentation on Macports. As described:
MacPorts is an easy to use system for compiling, installing, and managing open source software. MacPorts may be conceptually divided into ...
9
votes
5
answers
5k
views
Files wrongly considered as damaged in encfs volume
I am using encfs @1.7.5 and osxfuse @2.6.4 installed via MacPorts 2.2.1 on my MacBook Pro Retina Late 2013 which is running OS X Mavericks 10.9.2. When opening certain files (e.g. xlsx, pdf) in my ...
9
votes
1
answer
8k
views
How do I change back from MacPorts Python to system default version?
I used MacPorts to install a newer version of Python on my system (10.5.8 PPC), and then used the MacPorts select command to change the default invoked version of Python to the MP version. Now I want ...
9
votes
1
answer
3k
views
ImageMagick - Convert multipage pdf to animated gif
I have a two-page PDF file that I would like to convert to an animated GIF file. A post on the TeX StackExchange gives the following ImageMagick one-liner:
convert -verbose -delay 50 -loop 0 -...
8
votes
5
answers
48k
views
Localhost refuses to connect after upgrading to Sierra OS
I have downloaded and installed apache, php, phpmyadmin, mysql via macports. Everything was working fine before upgrading to macOS Sierra.
After the upgrade whenever I try to access localhost I get ...
8
votes
3
answers
5k
views
Can't upgrade macports under Big Sur!
I just upgraded to big Sur and the macports upgrade instructions don't work.
I keep getting this error:
Warning: The macOS 11.0 SDK does not appear to be installed. Ports may not build correctly.
...
8
votes
3
answers
5k
views
MacPorts Software clean-up: /opt/local/var/macports/software
The MacPorts directory /opt/local/var/macports/software is really full of "stuff":
Can all the .tbz2 files be deleted?
I am running out of space on the SSD.
8
votes
2
answers
13k
views
Homebrew gives a warning: "You have MacPorts or Fink installed"
I just got a new Mac Pro with OS X 10.9. When I run:
brew doctor
I get the warning:
Warning: You have MacPorts or Fink installed:
/opt/local/bin/port
This can cause trouble. You don't have to ...
8
votes
2
answers
10k
views
X.Org vs. XQuartz - MacPorts
After installing MacPorts and some software through that way, I noticed that MacPorts installed X.Org.
I've already installed XQuartz years ago and I'm really fine with it.
My 1. question is:
Do I ...
7
votes
1
answer
3k
views
Using python screws up the shell (and/or terminal?)!
The problem
Simply opening and closing the Python sub-shell screws up my shell (or possibly the terminal?). It seems to remove the shell's ability to print any text I enter, including newlines after ...
7
votes
3
answers
9k
views
Install XPDF in Mac/OS
How we can install XPDF via Mac Ports? Or if another methods for the installation of XPDF in the Mac/OS platform exists?
7
votes
2
answers
2k
views
SIP preventing deletion of /opt/local
Ran into the same problem tonight as this question from SO that wasn't fully answered.
I'm trying to uninstall an old installation of MacPorts, and run into SIP:
mybox:~ me$ sudo rm -rf /opt/local
...
7
votes
1
answer
4k
views
Benefit of using MacPorts coreutils instead of stock OS X?
I noticed that MacPorts contains lots of software that are already present as part of a stock Mac OS X installation (I am running 10.6.8 Snow Leopard), such as coreutils, tar, etc.
Is there a benefit ...
7
votes
3
answers
2k
views
What's the best way to install command line utilities such as GIT?
I'm a Windows/Linux guy that just got my Macbook Air. I do web dev, and am currently trying to setup this machine for some on-the-go development.
After some research attempts, I'm wondering: what's ...
6
votes
3
answers
4k
views
How can I uninstall the macports tex packages?
I have installed MacTex 2013 and it seems to be properly installed, except that the binaries used at are from macports.
"sudo port uninstall texlive" will not do anything. No output from the command.
...
6
votes
1
answer
3k
views
Mountain Lion Broke MacPorts - Cannot Update
I am trying to update MacPorts but get the following error.
sudo port selfupdate
Password:
---> Updating MacPorts base sources using rsync
MacPorts base version 2.1.1 installed,
MacPorts base ...
6
votes
3
answers
20k
views
How do I set the static library path in OS X Lion?
Instead of typing :
g++ functions.cpp /opt/local/lib/libhdf5.a /opt/local/lib/libsiloh5.a /opt/local/lib/libz.a
I would prefer to type:
g++ functions.cpp -lhdf5 -lsiloh5 -lz
I think that I need ...
6
votes
4
answers
6k
views
How to download pre-built binaries from MacPorts without installing?
I see as of 2.0 MacPorts is hosting pre-built binaries, which it would install by default if licensing is present and compatible. I'm looking for a more current version of rsync than ships by default ...
6
votes
1
answer
5k
views
Is there a way to get gnome-terminal on Lion?
Is there a port of gnome-terminal, or a way to compile it, or some other program that is typographically comparable, under Lion?
There is a typographic difference, and I can't duplicate it in ...
6
votes
2
answers
12k
views
Does Mac OS X have something like SELinux?
I just spent a looooooong time trying to use Macports' Apache2 to serve documents out of my home directory. She no work!!!11 In the absence of any meaningful log data (that I could find) to go on, I ...
6
votes
2
answers
17k
views
How to upgrade Apache 2.2 to 2.4 in Mac OS X Mavericks
My ISP has upgraded the server to Apache 2.4.9 from 2.2.xx. It has broken a couple things in my setup and I want to bring my local copy of Apache 2.2.26 to 2.4.9 so that I can test locally.
I've been ...
6
votes
4
answers
12k
views
Mac OS X Lion and sshpass
I've upgraded from Mac OS X Snow Leopard to Lion. I used several scripts with sshpass but after I upgraded to Lion the following error appears:
Permission denied, please try again.
debug1: ...
5
votes
3
answers
4k
views
Unable to install Meld via MacPorts 2.0.3 on OSX 10.6.8
I am trying to get Meld onto my OS X 10.6.8 box using MacPorts 2.0.3 and am not having success.
bobk-mbp:opt bobk$ port version
Version: 2.0.3
bobk-mbp:opt bobk$ sudo port install meld
---> ...
5
votes
1
answer
3k
views
Stopping a macports installed mysql daemon
I'm trying to reset my root password on a macports installed MySQL on OS X. But none of the ways to do this that I can find works, for various reasons. One reason common to all is that I can't stop ...
5
votes
2
answers
1k
views
OpenCV library not installing after using cmake
I use Yosemite 10.10, and I need to build and install the OpenCV library using cmake-gui. I was able to configure and generate the binaries readily. But when I try to 'make' the library using the ...
5
votes
1
answer
5k
views
Transferring from Time Machine shows "MacPorts". What is this and should I transfer it?
I am restoring from a Time Machine backup. Along with Applications, my user directory, and a few other expected things, I see an item called "MacPorts", which has a size of Zero KB.
I have no idea ...
5
votes
1
answer
2k
views
How can I install the X11 version of Firefox on Snow Leopard? (Preferably without MacPorts or Fink?)
I’m doing some screen-scraping using Selenium, a framework which lets you programmatically control web browsers on your system. I’m running it as part of a web app on a Linux server, and on my MacBook ...
4
votes
2
answers
1k
views
Is it safe to chown /opt/local?
Is it safe (no security implications) to chown -R user /opt/local/, so that I don't sudo port install with MacPorts?
I don't like the idea of sudoing with MacPorts as it can write things in /Library,...
4
votes
6
answers
1k
views
Installed MacPorts packages sizes
Can I retrieve a list of the sizes of MacPorts installed packages?
Yes, I know they are compiled from sources, but if a list of generated files is known, it should be computable anyway.