步骤如下:

1,安装Xcode;

2,安装homebrew;

3,通过homebrew安装curl

4,到telex官网下载telex-client-0.0.1_src_public.tar(就是Linux那个包)

5,解包并修改prereq.sh文件:内容如下

#!/bin/bash

TELEX_HOME=`pwd`

cd$TELEX_HOME

curl-OLhttp://www.openssl.org/source/openssl-1.0.0d.tar.gz

curl-OLhttp://monkey.org/~provos/libevent-2.0.12-stable.tar.gz

curl-OLhttp://prdownloads.sourceforge.net/argtable/argtable2-13.tar.gz

#Settingup:

mkdir-p$TELEX_HOME/req/local

cd$TELEX_HOME/req

#Buildingrequiredlibraries:

#patchedOpenSSL

cd$TELEX_HOME/req/

tarxf../openssl-1.0.0d.tar.gz

cdopenssl-1.0.0d

patch-p1<../../openssl-1.0.0d-telex.patch

./Configuredarwin64-x86_64-cc--shared--prefix=$TELEX_HOME/req/local/--openssldir=$TELEX_HOME/req/local/

make

makeinstall#noroot(sudo)neededforlocalinstall

#libevent2,linkedagainstpatchedOpenSSL

cd$TELEX_HOME/req/

tarxf../libevent-2.0.12-stable.tar.gz

cdlibevent-2.0.12-stable

LDFLAGS="-L$TELEX_HOME/req/local/lib"&&exportLDFLAGS

CFLAGS="-I$TELEX_HOME/req/local/include"&&exportCFLAGS

./configure--prefix=$TELEX_HOME/req/local

make

makeinstall

#argtable2(libargtable2-dev)

cd$TELEX_HOME/req/

tarxf../argtable2-13.tar.gz

cdargtable2-13

./configure--prefix=$TELEX_HOME/req/local

make

makeinstall

#Buildingtelex-client:

#cd$TELEX_HOMEi/

#make

#Runningtelex-client:

#LD_LIBRARY_PATH=$TELEX_HOME/req/local/lib./telex-clientnotblocked.telex.cc

保存备用

6,打开X11

执行

cd包文件目录

shprereq.sh

makeall

7,打开终端

执行

LD_LIBRARY_PATH=./req/local/lib./telex-clientnotblocked.telex.cc

8,修改网络设置DNS,8.8.8.8

代理设置127.0.0.1:8888

ok,可以 youtube,twitter,G+
Mac OSX Lion 编译 Telex成功
What is Telex? Telex is a new approach to circumventing Internet censorship that is intended to help citizens of repressive governments freely access online services and information. The main idea beh...