Install the following packages using pacman -S package-name
:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# the following is talk to protobuf server based on netty 4.1.11.Final | |
ONE_BYTE_MASK = 0xffffffff << 7 | |
TWO_BYTES_MASK = 0xffffffff << 14 | |
THREE_BYTES_MASK = 0xffffffff << 21 | |
FOUR_BYTES_MASK = 0xffffffff << 28 | |
def how_many_bytes_this_length_take(package_len): | |
result = package_len & ONE_BYTE_MASK | |
if result == 0: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo ln -sf /usr/share/zoneinfo/UTC /etc/localtime |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yum install libmpc-devel mpfr-devel gmp-devel | |
cd /usr/src/ | |
curl ftp://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-4.9.3/gcc-4.9.3.tar.bz2 -O | |
tar xvfj gcc-4.9.3.tar.bz2 | |
cd gcc-4.9.3 | |
./configure --disable-multilib --enable-languages=c,c++ | |
make -j `grep processor /proc/cpuinfo | wc -l` | |
make install |
1) Go to https://git-scm.com/ and check out the latest version of Git
Currently, the latest version is 2.18.0. Download and extract it and go to the folder of the source code:
wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.18.0.tar.gz
tar xf git-2.18.0.tar.gz
cd git-2.18.0/