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 |
This was a super old version of thrift even when I uploaded this 6 years ago. You might want to start with the latest version. I expect the download link for the tar archive has moved and you’re trying to extract a html 404 error page.
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 package thrift v0.18.0 (/root/thrift/lib/rs)
steps i did:
$ git clone https://github.com/apache/thrift.git
$ ./bootstrap.sh
$ ./configure
$ make
$ make install
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
[root@openeuler-riscv64 thriftbuild]# tar -xvf 0.9.1.tar.gz thrift-0.9.1
tar: This does not look like a tar archive
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
please help me out from this error, am trying to build/compile thrift packge on RISC-V platform