Skip to content

Commit

Permalink
Merge pull request #38 from gaborcsardi/fix/config-advice-linux
Browse files Browse the repository at this point in the history
Improve installation advice in configure for Linux
  • Loading branch information
meztez authored Dec 11, 2023
2 parents 2dd66b8 + a860454 commit 48ab906
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 33 deletions.
9 changes: 3 additions & 6 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,15 @@ remotes::install_github("meztez/bigrquerystorage")

```sh
# install protoc and grpc
apt-get install -y libprotobuf-dev protobuf-compiler-grpc \
libgrpc++-dev libc-ares-dev libre2-dev \
apt-get install -y libgrpc++-dev libprotobuf-dev protobuf-compiler-grpc \
pkg-config
```

#### Fedora 38

```sh
# install protoc and grpc
dnf install -y protobuf-devel protobuf-compiler \
grpc-devel c-ares-devel \
re2-devel pkgconf
# install grpc, protoc is automatically installed
dnf install -y grpc-devel pkgconf
```

#### macOS
Expand Down
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,15 @@ remotes::install_github("meztez/bigrquerystorage")

``` sh
# install protoc and grpc
apt-get install -y libprotobuf-dev protobuf-compiler-grpc \
libgrpc++-dev libc-ares-dev libre2-dev \
apt-get install -y libgrpc++-dev libprotobuf-dev protobuf-compiler-grpc \
pkg-config
```

#### Fedora 38

``` sh
# install protoc and grpc
dnf install -y protobuf-devel protobuf-compiler \
grpc-devel c-ares-devel \
re2-devel pkgconf
# install grpc, protoc is automatically installed
dnf install -y grpc-devel pkgconf
```

#### macOS
Expand Down
6 changes: 3 additions & 3 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

# Library settings
PKG_CONFIG_NAME="protobuf grpc++"
PKG_DEB_NAME="libgrpc-dev"
PKG_RPM_NAME="grpc-devel"
PKG_BREW_NAME="grpc"
PKG_DEB_NAME="libgrpc++-dev libprotobuf-dev protobuf-compiler-grpc pkg-config"
PKG_RPM_NAME="grpc-devel pkgconf"
PKG_BREW_NAME="grpc pkg-config"
PKG_TEST_HEADER="<grpc/grpc.h>"
PKG_LIBS="-lgrpc++ -lgrpc -lprotobuf"
PKG_CFLAGS=""
Expand Down
11 changes: 5 additions & 6 deletions tools/build/linux/Dockerfile-debian-12
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,6 @@ RUN echo "deb http://rig.r-pkg.org/deb rig main" > \
apt-get install -y r-rig && \
rig add release

# -------------------------------------------------------------------------
# FIXME: We don't need this once grpc is in the system requirements db
RUN apt-get install -y libprotobuf-dev protobuf-compiler-grpc \
libgrpc++-dev libc-ares-dev \
libre2-dev pkg-config

# -------------------------------------------------------------------------
# Only copy DESCRIPTION, so Docker can cache the dependency install
RUN mkdir /root/bigrquerystorage
Expand All @@ -26,6 +20,11 @@ WORKDIR /root/bigrquerystorage
# No upgrade, to always install binary packages, in case P3M is behind
RUN R -q -e 'pak::local_install_deps(upgrade = FALSE)'

# -------------------------------------------------------------------------
# FIXME: We don't need this once grpc is in the system requirements db
RUN apt-get install -y libgrpc++-dev libprotobuf-dev protobuf-compiler-grpc \
pkg-config

# -------------------------------------------------------------------------
# Call R CMD build first, so we get rid of Makevars, .o, .so, etc.
# Change file ownership, otherwise git complains
Expand Down
10 changes: 4 additions & 6 deletions tools/build/linux/Dockerfile-fedora-38
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@ RUN yum install -y \
https://github.com/r-lib/rig/releases/download/latest/r-rig-latest-1.$(arch).rpm && \
rig add devel

# -------------------------------------------------------------------------
# FIXME: We don't need this once grpc is in the system requirements db
RUN dnf install -y protobuf-devel protobuf-compiler \
grpc-devel c-ares-devel \
re2-devel pkgconf

# -------------------------------------------------------------------------
# Only copy DESCRIPTION, so Docker can cache the dependency install
RUN mkdir /root/bigrquerystorage
Expand All @@ -21,6 +15,10 @@ WORKDIR /root/bigrquerystorage
# No upgrade, to always install binary packages, in case P3M is behind
RUN R -q -e 'pak::local_install_deps(upgrade = FALSE)'

# -------------------------------------------------------------------------
# FIXME: We don't need this once grpc is in the system requirements db
RUN dnf install -y grpc-devel pkgconf

# -------------------------------------------------------------------------
# Call R CMD build first, so we get rid of Makevars, .o, .so, etc.
# Change file ownership, otherwise git complains
Expand Down
11 changes: 5 additions & 6 deletions tools/build/linux/Dockerfile-ubuntu-22.04
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,6 @@ RUN echo "deb http://rig.r-pkg.org/deb rig main" > \
apt-get install -y r-rig && \
rig add release

# -------------------------------------------------------------------------
# FIXME: We don't need this once grpc is in the system requirements db
RUN apt-get install -y libprotobuf-dev protobuf-compiler-grpc \
libgrpc++-dev libc-ares-dev libre2-dev \
pkg-config

# -------------------------------------------------------------------------
# Only copy DESCRIPTION first, so Docker can cache the dependency install
RUN mkdir /root/bigrquerystorage
Expand All @@ -26,6 +20,11 @@ WORKDIR /root/bigrquerystorage
# No upgrade, to always install binary packages, in case P3M is behind
RUN R -q -e 'pak::local_install_deps(upgrade = FALSE)'

# -------------------------------------------------------------------------
# FIXME: We don't need this once grpc is in the system requirements db
RUN apt-get install -y libgrpc++-dev libprotobuf-dev protobuf-compiler-grpc \
pkg-config

# -------------------------------------------------------------------------
# Call R CMD build first, so we get rid of Makevars, .o, .so, etc.
# Change file ownership, otherwise git complains
Expand Down

0 comments on commit 48ab906

Please sign in to comment.