WebFaction
Community site: login faq

I would like to install Taskwarrior, but I get compilation errors. How do I install this?

asked 08 May '16, 04:39

ryans ♦♦
5.0k93360
accept rate: 43%


Taskwarrior is written with syntax that requires a new version of GCC in order to compile. This means that you want to install it on a CentOS 7 (or later) machine, which has GCC 4.8. You could also install GCC 4.8 on an older (CentOS 6) server, but this is considerably more involved. I'd suggest migrating to a newer machine instead.

Once you are using GCC 4.8 or later, then here is the full set of installation steps:

mkdir -p $HOME/src $HOME/tmp
[ ! -e $HOME/lib64 ] && ln -s $HOME/lib $HOME/lib64

export TMPDIR=$HOME/tmp
export PATH="$HOME/bin:$PATH"
export C_INCLUDE_PATH="$HOME/include:$C_INCLUDE_PATH"
export LIBRARY_PATH="$HOME/lib:$LIBRARY_PATH"
export LD_LIBRARY_PATH="$HOME/lib:$LD_LIBRARY_PATH"
export PKG_CONFIG_PATH="$HOME/lib/pkgconfig"


###########################################################
# cmake 3.5.2
###########################################################
cd $HOME/src
wget 'https://cmake.org/files/v3.5/cmake-3.5.2.tar.gz'
tar -xf cmake-3.5.2.tar.gz
cd cmake-3.5.2
./configure --prefix=$HOME
make
make install
hash -r


###########################################################
# nettle 3.2
###########################################################
cd $HOME/src
wget 'https://ftp.gnu.org/gnu/nettle/nettle-3.2.tar.gz'
tar -xf nettle-3.2.tar.gz
cd nettle-3.2
./configure --prefix=$HOME
make
make install


###########################################################
# gnutls 3.4.9
###########################################################
cd $HOME/src
wget 'ftp://ftp.gnutls.org/gcrypt/gnutls/v3.4/gnutls-3.4.9.tar.xz'
tar -xf gnutls-3.4.9.tar.xz
cd gnutls-3.4.9
./configure --prefix=$HOME --with-included-libtasn1 --without-p11-kit
make
make install


###########################################################
# task 2.5.1
###########################################################
cd $HOME/src
wget 'https://taskwarrior.org/download/task-2.5.1.tar.gz'
tar -xf task-2.5.1.tar.gz
cd task-2.5.1
cmake -DCMAKE_INSTALL_PREFIX:PATH=$HOME -DCMAKE_BUILD_TYPE=release .
make
make install
hash -r
permanent link
This answer is marked "community wiki".

answered 08 May '16, 04:48

ryans ♦♦
5.0k93360
accept rate: 43%

edited 10 May '16, 04:15

Another way to do this is to simply download the Taskwarrior RPM and extract it:

mkdir ~/tmp
cd ~/tmp
wget http://dl.fedoraproject.org/pub/epel/7/x86_64/t/task-2.5.1-1.el7.x86_64.rpm
rpm2cpio task-2.5.1-1.el7.x86_64.rpm | cpio -idmv
mv usr/bin/* ~/bin/
mv usr/share ~/
cd ~
rm -rf ~/tmp/*
permanent link

answered 18 May '16, 21:31

seanf
12.2k41836
accept rate: 37%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×2

question asked: 08 May '16, 04:39

question was seen: 1,455 times

last updated: 18 May '16, 21:31

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM