分类 MAC OS 下的文章

默认是安装不上的,因为brew 不维护老系统了
链接1:https://github.com/Homebrew/homebrew-core/blob/05fa8165ec18b2fd582598f8006d6bd8df29eebd/Formula/o/[email protected] 源文件
链接2:https://github.com/openssl/openssl/issues/22467 解决办法

Run brew edit openssl@3 or find the file [email protected] and edit it.
Look for the line system "make", "test"
Change it to system "make", "test TESTS='-test-cmp_http'" and save the file
Run brew install --build-from-source --formula /path/to/[email protected]. Make sure you change the path to wherever your file is. In my case it was in /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/o/[email protected].

MAC OS 10.8.3 因为系统是64位,安装后import wx 提示如下错误:

ImportError: /usr/local/lib/wxPython-unicode-2.8.12.1/lib/python2.7/site-packages/wx-2.8-mac-unicode/wx/core.so: no appropriate 64-bit architecture (see "man python" for running in 32-bit mode)

设置如下即可正常:

在当前用户目录 vim ~/.profile

加入

export VERSIONERPYTHONPREFER32BIT=yes

或者临时在当前终端输入:

defaults write com.apple.versioner.python Prefer-32-Bit -bool yes

在Finder 界面标题栏显示全路径

defaults write com.apple.finder _FXShowPosixPathInTitle -bool TRUE;killall Finder 窗口显示全路径

defaults delete com.apple.finder _FXShowPosixPathInTitle;killall Finder 删除以显示默认

终端显示和linux下面类似的前缀:
vim ~/.profile
加入 export PS1="[\u@\h \W]$"
这样在终端里面就不是一坨老长的了