#!/bin/bash | |
libs=( "/usr/local/lib/libmacfuse_i32.2.dylib" \ | |
"/usr/local/lib/libosxfuse_i32.2.dylib" \ | |
"/usr/local/lib/libosxfuse_i64.2.dylib" \ | |
"/usr/local/lib/libmacfuse_i64.2.dylib" \ | |
"/usr/local/lib/libosxfuse_i32.la" \ | |
"/usr/local/lib/libosxfuse_i64.la" \ | |
"/usr/local/lib/pkgconfig/osxfuse.pc" ) | |
truecrypt="/Applications/TrueCrypt.app/Contents/Resources/Library" | |
[ ! -d $truecrypt ] && mkdir -p $truecrypt | |
for lib in "${libs[@]}" | |
do | |
mv $lib "${truecrypt}/" && echo "Moved ${lib} to ${truecrypt}." || echo "Problem moving: ${lib} to ${truecrypt}" | |
rm $lib || echo "Problem removing: ${lib}" | |
ln -s "${truecrypt}/$(basename $lib)" ${lib} && echo "Linked ${lib}." || echo "Problem symlinking ${lib}" | |
done | |
brew prune | |
brew doctor |
This comment has been minimized.
This comment has been minimized.
You might want to add "set -e" (abort on error) to this script. Otherwise, if the "mv" fails, it could still run the "rm". |
This comment has been minimized.
This comment has been minimized.
Ok these run for me in mavericks!! many thanks |
This comment has been minimized.
This comment has been minimized.
Worked for me on Mavericks too. Ready to brew! Thanks. |
This comment has been minimized.
This comment has been minimized.
What to do with it? |
This comment has been minimized.
This comment has been minimized.
Thanks! Ready to brew... |
This comment has been minimized.
This comment has been minimized.
Thank you! Worked great for me running Mavericks |
This comment has been minimized.
This comment has been minimized.
https://gist.github.com/yiufung/7445219 fixes the errors spat out by calling "rm" after "mv" since that command already remove the origin file. |
This comment has been minimized.
This comment has been minimized.
Thanks for sharing! |
This comment has been minimized.
This comment has been minimized.
Thanks for this! Fixed the Truecrypt-caused brew doctor errors perfectly. |
This comment has been minimized.
This comment has been minimized.
This works, but I wanted to Rubify it! Anyone can check that out here: https://gist.github.com/SteveBenner/10938596. It uses Ruby module FileUtils, but falls back to shell commands if you can't include the module for some reason. It also prevents you from running the script if you don't need to. |
This comment has been minimized.
This comment has been minimized.
Thanks a lot! brew doctor nice and clean now! |
This comment has been minimized.
This comment has been minimized.
this works greatly :) thank you! |
This comment has been minimized.
This comment has been minimized.
This little snippet demonstrates nicely the idea, but it lacks important verifications, symlinks aren't copied over and the pkgconfig files aren't moved to the right subdir. |
This comment has been minimized.
Fork of: jimjh/truecrypt_fix.bash