Help with conjoined apaches

Bradley Giesbrecht pixilla at macports.org
Sat Apr 28 19:05:42 PDT 2012


On Apr 28, 2012, at 6:36 PM, Jeremy Lavergne wrote:

>> This gets stranger and stranger. Ports says apache2 isn't installed. And I have no mysql command anymore. This was all working 2 weeks ago. It appears that somehow it got trashed. Should I start again with 'ports install' apache2 and mysql5? 
> 
> That's pretty bizarre: but yes you can definitely reinstall. When installing again, it might say there are files that already exist. If that happens (and I'm pretty sure it will) you'll have to add the -f flag to ports, to move those files out of the way.
> 
> sudo port -f install apache2
> 
> When these files are moved, they're all given a suffix. You can use the find command to locate all files sharing this name and remove them.
> 
> find /opt/local -type f -name "*.mp_XXXXXXXXXX" -print -delete
> 
> Now, keep in mind the pattern MacPorts reports is what you need to put in the command, or you can be more cavalier and just use "*.mp_*", which is obviously risky.
> 
> 
> 
> You might also want to review `port installed`, just in case something else is amiss.

Yes, please post the following commands:

echo $PATH
which port
grep -v -E "^#|^$" /opt/local/etc/macports/macports.conf
port installed


Regards,
Bradley Giesbrecht (pixilla)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2763 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20120428/ccd45105/attachment.bin>


More information about the macports-users mailing list