From 5ddc0f20fe6ce549e5b65aefe76f182e158669c8 Mon Sep 17 00:00:00 2001 From: tastytea Date: Mon, 22 Apr 2019 04:01:18 +0200 Subject: [PATCH] Added dependency-install examples for Debian Stretch and CentOS 7. --- CMakeLists.txt | 2 +- README.md | 27 ++++++++++++++++++++++++++- 2 files changed, 27 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 63181fc..55dabc6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required (VERSION 3.6) project (mastodon-cpp - VERSION 0.105.0 + VERSION 0.105.1 LANGUAGES CXX ) diff --git a/README.md b/README.md index ee9b44b..36faccd 100644 --- a/README.md +++ b/README.md @@ -149,7 +149,7 @@ Prebuilt DEB and RPM packages for x86_64(amd64) are provided with each release. `.deb` packages are built on Debian stretch and `.rpm` packages are built on CentOS 7. These packages are automatically built and not tested. -To use the DEB`.deb` package on Debian stretch, you will need +To use the `.deb` package on Debian stretch, you will need [libcurlpp0](https://packages.debian.org/libcurlpp0) from sid. To use the `.rpm` package on CentOS 7, you will need @@ -173,6 +173,31 @@ from EPEL 6. * RPM package: [rpm-build](http://www.rpm.org) (tested: 4.11) * Tests: [catch](https://github.com/catchorg/Catch2) (tested: 2.5 / 1.2) +#### Debian stretch + +``` shellsession +echo "APT::Default-Release \"stretch\";" >> /etc/apt/apt.conf.d/00default_release +echo "deb http://deb.debian.org/debian sid main" >> /etc/apt/sources.list.d/sid.list +apt-get update +apt-get install build-essential cmake pkg-config libcurl4-openssl-dev libjsoncpp-dev doxygen file +apt-get install -t sid libcurlpp-dev +``` + +#### Centos 7 + +``` shellsession +wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm +rpm -i epel-release-latest-7.noarch.rpm +yum install centos-release-scl +yum install devtoolset-6 +scl enable devtoolset-6 bash +yum install libcurl-devel doxygen rpm-build +yum --enablerepo=epel install cmake3 jsoncpp-devel +wget https://download.fedoraproject.org/pub/epel/6/x86_64/Packages/c/curlpp-devel-0.7.3-5.el6.x86_64.rpm +wget https://download.fedoraproject.org/pub/epel/6/x86_64/Packages/c/curlpp-0.7.3-5.el6.x86_64.rpm +yum localinstall curlpp-devel-0.7.3-5.el6.x86_64.rpm curlpp-0.7.3-5.el6.x86_64.rpm +``` + ### Get sourcecode #### Release