Mac OSX Lion 编译 Telex成功

步骤如下:
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 -OL  http://www.openssl.org/source/openssl-1.0.0d.tar.gz
curl -OL  http://monkey.org/~provos/libevent-2.0.12-stable.tar.gz
curl -OL  http://prdownloads.sourceforge.net/argtable/argtable2-13.tar.gz

# Setting up:
mkdir -p $TELEX_HOME/req/local
cd $TELEX_HOME/req

# Building required libraries:

# patched OpenSSL
cd $TELEX_HOME/req/
tar xf ../openssl-1.0.0d.tar.gz
cd openssl-1.0.0d
patch -p1 < ../../openssl-1.0.0d-telex.patch
./Configure darwin64-x86_64-cc --shared --prefix=$TELEX_HOME/req/local/ --openssldir=$TELEX_HOME/req/local/
make
make install # no root (sudo) needed for local install

# libevent2, linked against patched OpenSSL
cd $TELEX_HOME/req/
tar xf ../libevent-2.0.12-stable.tar.gz 
cd libevent-2.0.12-stable
LDFLAGS="-L$TELEX_HOME/req/local/lib" && export LDFLAGS
CFLAGS="-I$TELEX_HOME/req/local/include" && export CFLAGS
./configure --prefix=$TELEX_HOME/req/local
make
make install 

# argtable 2 (libargtable2-dev)
cd $TELEX_HOME/req/
tar xf ../argtable2-13.tar.gz
cd argtable2-13
./configure --prefix=$TELEX_HOME/req/local
make
make install

# Building telex-client:
#cd $TELEX_HOMEi/
#make
# Running telex-client: 
#LD_LIBRARY_PATH=$TELEX_HOME/req/local/lib ./telex-client  notblocked.telex.cc

保存备用

6,打开X11
执行
cd 包文件目录
sh prereq.sh
make all

7,打开终端
执行
LD_LIBRARY_PATH=./req/local/lib ./telex-client  notblocked.telex.cc
8,修改网络设置DNS,8.8.8.8
代理设置127.0.0.1:8888

ok,可以 youtube,twitter,G+
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...

你可能感兴趣的:(mac,OS)