Tag Archives: macOS

更新 Homebrew 时出现 Error: Failed while executing git pull origin refs/heads/master:refs/remotes/origin/master 的解决方案

病情:

error@cox:/Users/mom$ brew update
remote: Counting objects: 2482, done.
remote: Compressing objects: 100% (750/750), done.
remote: Total 2105 (delta 1543), reused 1822 (delta 1349)
Receiving objects: 100% (2105/2105), 329.33 KiB | 122 KiB/s, done.
Resolving deltas: 100% (1543/1543), completed with 295 local objects.
From https://github.com/mxcl/homebrew
   f884112..28f7e01  master     -> origin/master
error: The following untracked working tree files would be overwritten by merge:
	Library/Formula/autojump.rb
Please move or remove them before you can merge.
Updating f884112..28f7e01
Aborting
Error: Failed while executing git pull  origin refs/heads/master:refs/remotes/origin/master

解决方法:

cd `brew --prefix`

git clean -n # Does a dry run---shows what will get nuked without touching anything
git clean -f # This will destroy files

gettext 在 OS X 安装备忘

[15:01:44]root@vortex:/Users/vortex$ brew install gettext
==> Downloading http://ftpmirror.gnu.org/gettext/gettext-0.18.1.1.tar.gz
######################################################################## 100.0%
==> Downloading patches
######################################################################## 100.0%
######################################################################## 100.0%
==> Patching
patching file gettext-tools/configure
patching file gettext-tools/Makefile.in
==> ./configure --disable-debug --prefix=/usr/local/Cellar/gettext/0.18.1.1 --without-included-gettext --without-included
==> make
==> make install
==> Caveats
This formula is keg-only, so it was not symlinked into /usr/local.

OS X provides the BSD gettext library and some software gets confused if both are in the library path.

Generally there are no consequences of this for you.
If you build your own software and it requires this formula, you'll need
to add its lib & include paths to your build variables:

    LDFLAGS  -L/usr/local/Cellar/gettext/0.18.1.1/lib
    CPPFLAGS -I/usr/local/Cellar/gettext/0.18.1.1/include
==> Summary
/usr/local/Cellar/gettext/0.18.1.1: 365 files, 13M, built in 3.1 minutes
[15:08:58]root@vortex:/Users/vortex$ brew link gettext
Linking /usr/local/Cellar/gettext/0.18.1.1... 145 symlinks created

iChat 聊天泡泡替换

/Applications/iChat.app/Contents/PlugIns/Balloons.transcriptstyle/Contents/Resources/
sudo chown root:wheel BigBubbleGloss.png;sudo chown root:wheel BigBubbleMask.png
sudo chmod 644 BigBubbleGloss.png;sudo chmod 644 BigBubbleMask.png