23

I have installed both moria and ettercap using MacPorts (via pallet) and I can't for the life of me find out where the things were installed to run them!

Where is the install directory?

EDIT: When I install things JUST using macports i.e. from the command line it works.

Pallet doesn't actually seem to install things :S

22

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

  • 4
    port contents only works on installed ports, FYI. – chiggsy Apr 5 '12 at 18:37
  • when I use the command i just get Port ettercap-ng does not contain any files or is not active. I clicked the install button inside pallet... – RNs_Ghost Apr 5 '12 at 18:41
16

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    share   var 

As noted in the MacPorts Documentation

2.3. Install MacPorts

If you are using Mac OS X, you should install MacPorts using the Mac OS X package installer unless you do not wish to install it to /opt/local/, the default MacPorts location, or if you wish to install a pre-release version of MacPorts base. However, if you wish to install multiple copies of MacPorts or install MacPorts on another OS platform, you must install MacPorts from the source code.

6

To find where any Unix commandline executable is located, use the which command:

$ which bash
/bin/bash
$ which port
/opt/local/bin/port
  • 1
    This won't work if you are trying to find a MacPorts version of a binary which also has a Mac OS version, e.g. which find will return /usr/bin/find whereas if you've installed findutils that version (on my install) goes in /opt/local/libexec/gnubin/find. – Michael Jan 9 '14 at 16:42
  • 2
    You cannot use which to find packages installed via ports. – Thomio Sep 4 '15 at 0:22
0

Yes, you have to explicitly point to the new app to get it to run:

/opt/local/bin/openssl -- in my case, otherwise you get the Apple version.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .