Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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

share|improve this question
add comment

3 Answers

up vote 6 down vote accepted

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

share|improve this answer
1  
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... –  RRs_Ghost Apr 5 '12 at 18:41
add comment

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

$ which bash
/bin/bash
$ which port
/opt/local/bin/port
share|improve this answer
    
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 at 16:42
add comment

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.