Created
July 26, 2018 11:00
-
-
Save cablespaghetti/f0d7afaf369d21db1460747d9393cab1 to your computer and use it in GitHub Desktop.
Installing thrift 0.9.1 on Fedora 28
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
#!/bin/bash -ex | |
dnf install -y thrift-devel libtool m4 automake byacc flex | |
mkdir thriftbuild | |
cd thriftbuild | |
wget https://github.com/apache/thrift/archive/0.9.1.tar.gz | |
tar xvf 0.9.1.tar.gz thrift-0.9.1/ | |
cd thrift-0.9.1/ | |
curl http://cdn-fastly.deb.debian.org/debian/pool/main/t/thrift-compiler/thrift-compiler_0.9.1-2.1.debian.tar.xz -o thrift-debian-patches.tar.xz | |
tar xvf thrift-debian-patches.tar.xz | |
cd compiler/ | |
patch -p1 < ../debian/patches/thrift-2247-binary-as-string-keys.patch | |
patch -p1 < ../debian/patches/gcc6.patch | |
cd ../ | |
./bootstrap.sh | |
./configure --without-python --without-cpp --without-go | |
make | |
#make install | |
thrift --version | |
cd ../../ | |
rm -rf thriftbuild | |
dnf remove thrift-devel -y | |
# Then copy the thrift binary to /usr/local/bin or similar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thankyou so much sir , but whenever i try to compile thrift lastest version on RISCV platform . am getting this issue
error: failed to get
byteorder
as a dependency of packagethrift v0.18.0 (/root/thrift/lib/rs)
steps i did:
$ git clone https://github.com/apache/thrift.git
$ ./bootstrap.sh
$ ./configure
$ make
$ make install