安装 rethinkdb、GraphicsMagick、zeromq pkg-config、yasm、libsodium、protobuf、libimobiledevice、ideviceinstaller
2.1 安装rethinkdb
git clone https://github.com/rethinkdb/rethinkdb.git
cd rethinkdb
./configure --allow-fetch
make -j4
make install
2.2 安装GraphicsMagick
wget https://iweb.dl.sourceforge.net/project/graphicsmagick/graphicsmagick/1.3.36/GraphicsMagick-1.3.36.tar.gz
tar -zxvf GraphicsMagick-1.3.36.tar.gz
cd GraphicsMagick-1.3.36
./configure --prefix=/usr/local/gm
make
make install
2.3 安装zeromq
wget https://github.com/zeromq/libzmq/releases/download/v4.2.2/zeromq-4.2.2.tar.gz
tar zxvf zeromq-4.2.2.tar.gz
cd zeromq-4.2.2
./configure --prefix=/usr/local/zeromq
make
make install
2.4 安装pkg-config
wget http://pkgconfig.freedesktop.org/releases/pkg-config-0.29.2.tar.gz
tar -zxvf pkg-config-0.29.2.tar.gz
cd pkg-config-0.29.2
./configure --prefix=/usr/local/pkg-config --with-internal-glib
make
make intall
2.5 安装yasm
wget http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz
tar -zxvf yasm-1.3.0.tar.gz
cd yasm-1.3.0
./configure --prefix=/usr/local/yasm
make
make install
2.6 安装libsodium
wget https://download.libsodium.org/libsodium/releases/libsodium-1.0.18.tar.gz
tar -zxvf libsodium-1.0.18.tar.gz
cd libsodium-1.0.18
./autogen.sh
./configure --prefix=/usr/local/libsodium
make
make install
2.7 安装protobuf
wget https://github.com/google/protobuf/releases/download/v3.5.0/protobuf-cpp-3.5.0.tar.gz
tar -zxvf protobuf-cpp-3.5.0.tar.gz
cd protobuf-3.5.0
./configure --prefix=/usr/local/protobuf
make
make intall
2.8 软链接
ln -s /usr/local/gm/bin/* /usr/local/bin/
ln -s /usr/local/yasm/bin/* /usr/local/bin/
ln -s /usr/local/libsodium/bin/* /usr/local/bin/
ln -s /usr/local/protobuf/bin/* /usr/local/bin/
2.9 更新/etc/profile
export PKG_CONFIG_PATH=/usr/local/pkg-config
export PATH=$PKG_CONFIG_PATH:$PATH
2.10安装libimobiledevice、ideviceinstaller
git clone https://github.com/libimobiledevice/libimobiledevice.git
cd libimobiledevice
./autogen.sh --prefix=/opt/local --enable-debug
make
sudo make install
git clone https://github.com/libimobiledevice/ideviceinstaller.git
cd ideviceinstaller
./autogen.sh
make
sudo make install