代码拉取完成,页面将自动刷新
同步操作将从 Waldeinsamkeit/crnn 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#!/bin/bash -e
#
# Copyright (c) 2014, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
#
# Modified for 14.04 installation.
echo
echo This script will install fblualib and all its dependencies.
echo It has been tested on Ubuntu 13.10 and Ubuntu 14.04, Linux x86_64.
echo
set -e
set -x
if [[ $(arch) != 'x86_64' ]]; then
echo "x86_64 required" >&2
exit 1
fi
issue=$(cat /etc/issue)
extra_packages=
current=0
if [[ $issue =~ ^Ubuntu\ 13\.10 ]]; then
:
elif [[ $issue =~ ^Ubuntu\ 14 ]]; then
extra_packages=libiberty-dev
elif [[ $issue =~ ^Ubuntu\ 15\.04 ]]; then
extra_packages=libiberty-dev
elif [[ $issue =~ ^Ubuntu\ 16\.04 ]]; then
extra_packages=libiberty-dev
current=1
else
echo "Ubuntu 13.10, 14.*, 15.04 or 16.04 required" >&2
exit 1
fi
dir=$(mktemp --tmpdir -d fblualib-build.XXXXXX)
echo Working in $dir
echo
cd $dir
echo Installing required packages
echo
sudo apt-get update && sudo apt-get install -y \
git \
curl \
wget \
g++ \
automake \
autoconf \
autoconf-archive \
libtool \
libboost-all-dev \
libevent-dev \
libdouble-conversion-dev \
libgoogle-glog-dev \
libgflags-dev \
liblz4-dev \
liblzma-dev \
libsnappy-dev \
make \
zlib1g-dev \
binutils-dev \
libjemalloc-dev \
$extra_packages \
flex \
bison \
libkrb5-dev \
libsasl2-dev \
libnuma-dev \
pkg-config \
libssl-dev \
libedit-dev \
libmatio-dev \
libpython-dev \
libpython3-dev \
python-numpy
echo
echo Cloning repositories
echo
if [ $current -eq 1 ]; then
git clone --depth 1 https://github.com/facebook/folly
git clone --depth 1 https://github.com/facebook/fbthrift
git clone https://github.com/facebook/thpp
git clone https://github.com/facebook/fblualib
git clone https://github.com/facebook/wangle
else
git clone -b v0.35.0 --depth 1 https://github.com/facebook/folly
git clone -b v0.24.0 --depth 1 https://github.com/facebook/fbthrift
git clone -b v1.0 https://github.com/facebook/thpp
git clone -b v1.0 https://github.com/facebook/fblualib
fi
echo
echo Building folly
echo
cd $dir/folly/folly
autoreconf -ivf
./configure
make
sudo make install
sudo ldconfig # reload the lib paths after freshly installed folly. fbthrift needs it.
if [ $current -eq 1 ]; then
echo
echo Wangle
echo
cd $dir/wangle/wangle
cmake .
make
sudo make install
fi
echo
echo Building fbthrift
echo
cd $dir/fbthrift/thrift
autoreconf -ivf
./configure
if [ $current -eq 1 ]; then
pushd lib/cpp2/fatal/internal
ln -s folly_dynamic-inl-pre.h folly_dynamic-inl.h
popd
fi
make
sudo make install
echo
echo 'Installing TH++'
echo
cd $dir/thpp/thpp
if [ $current -eq 0 ]; then
mv /root/thpp_build.sh build.sh
chmod +x build.sh
fi
./build.sh
echo
echo 'Installing FBLuaLib'
echo
cd $dir/fblualib/fblualib
./build.sh
echo
echo 'All done!'
echo
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。