Problem with RODBC installation in Ubuntu with R 3.5.1
The thread here about RODBC is old, about 7 years old, their solution about installing r-cran-odbc
and libiodbc2-dev
do not work. As of R 3.5.1, I am getting the same error as 7 years ago
install.packages("RODBC", keep_outputs = T)
configure: error: "ODBC headers sql.h and sqlext.h not found"
ERROR: configuration failed for package ‘RODBC’
* removing ‘/opt/conda/lib/R/library/RODBC’
despite having the mentioned packages installed. So
How to get the RODBC installed in Ubuntu as of R 3.5.1 (latest versions of R and Ubuntu)?
Minimal reproducible base (Dockerfile)
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
ARG BASE_CONTAINER=jupyter/minimal-notebook
FROM $BASE_CONTAINER
LABEL maintainer="Jupyter Project <jupyter@googlegroups.com>"
USER root
# R pre-requisites
RUN apt-get update &&
apt-get install -y --no-install-recommends
fonts-dejavu
tzdata
libiodbc2-dev
r-cran-rodbc
gfortran
gcc &&
rm -rf /var/lib/apt/lists/*
USER $NB_UID
# R packages
RUN conda install --quiet --yes
'r-base=3.5.1'
'r-irkernel=0.8*'
'r-plyr=1.8*'
'r-devtools=1.13*'
'r-tidyverse=1.2*'
'r-shiny=1.2*'
'r-rmarkdown=1.11*'
'r-forecast=8.2*'
'r-rsqlite=2.1*'
'r-reshape2=1.4*'
'r-nycflights13=1.0*'
'r-caret=6.0*'
'r-rcurl=1.95*'
'r-crayon=1.3*'
'r-randomforest=4.6*'
'r-htmltools=0.3*'
'r-sparklyr=0.9*'
'r-htmlwidgets=1.2*'
'r-hexbin=1.27*' &&
conda clean -tipsy &&
fix-permissions $CONDA_DIR
where the following packages libiodbc2-dev
and r-cran-rodbc
won't resolve the issue.
Specs
$ uname -a
Linux 370485a13e40 4.9.93-linuxkit-aufs #1 SMP Wed Jun 6 16:55:56 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
sql.h is located in the following
$ apt-file sql.h
libdballe-dev: /usr/include/dballe/sql/sql.h
libiodbc2-dev: /usr/include/iodbc/sql.h
libmailutils-dev: /usr/include/mailutils/sql.h
libwine-dev: /usr/include/wine/windows/sql.h
libwine-development-dev: /usr/include/wine-development/wine/windows/sql.h
mingw-w64-common: /usr/share/mingw-w64/include/sql.h
mingw-w64-i686-dev: /usr/i686-w64-mingw32/include/sql.h
mingw-w64-x86-64-dev: /usr/x86_64-w64-mingw32/include/sql.h
pike7.8-core: /usr/lib/pike7.8/include/sql.h
pike8.0-core: /usr/lib/pike8.0/include/sql.h
unixodbc-dev: /usr/include/sql.h
and
# apt-file search /sqlext.h
libiodbc2-dev: /usr/include/iodbc/sqlext.h
libwine-dev: /usr/include/wine/windows/sqlext.h
libwine-development-dev: /usr/include/wine-development/wine/windows/sqlext.h
mingw-w64-common: /usr/share/mingw-w64/include/sqlext.h
mingw-w64-i686-dev: /usr/i686-w64-mingw32/include/sqlext.h
mingw-w64-x86-64-dev: /usr/x86_64-w64-mingw32/include/sqlext.h
unixodbc-dev: /usr/include/sqlext.h
r odbc rodbc
add a comment |
The thread here about RODBC is old, about 7 years old, their solution about installing r-cran-odbc
and libiodbc2-dev
do not work. As of R 3.5.1, I am getting the same error as 7 years ago
install.packages("RODBC", keep_outputs = T)
configure: error: "ODBC headers sql.h and sqlext.h not found"
ERROR: configuration failed for package ‘RODBC’
* removing ‘/opt/conda/lib/R/library/RODBC’
despite having the mentioned packages installed. So
How to get the RODBC installed in Ubuntu as of R 3.5.1 (latest versions of R and Ubuntu)?
Minimal reproducible base (Dockerfile)
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
ARG BASE_CONTAINER=jupyter/minimal-notebook
FROM $BASE_CONTAINER
LABEL maintainer="Jupyter Project <jupyter@googlegroups.com>"
USER root
# R pre-requisites
RUN apt-get update &&
apt-get install -y --no-install-recommends
fonts-dejavu
tzdata
libiodbc2-dev
r-cran-rodbc
gfortran
gcc &&
rm -rf /var/lib/apt/lists/*
USER $NB_UID
# R packages
RUN conda install --quiet --yes
'r-base=3.5.1'
'r-irkernel=0.8*'
'r-plyr=1.8*'
'r-devtools=1.13*'
'r-tidyverse=1.2*'
'r-shiny=1.2*'
'r-rmarkdown=1.11*'
'r-forecast=8.2*'
'r-rsqlite=2.1*'
'r-reshape2=1.4*'
'r-nycflights13=1.0*'
'r-caret=6.0*'
'r-rcurl=1.95*'
'r-crayon=1.3*'
'r-randomforest=4.6*'
'r-htmltools=0.3*'
'r-sparklyr=0.9*'
'r-htmlwidgets=1.2*'
'r-hexbin=1.27*' &&
conda clean -tipsy &&
fix-permissions $CONDA_DIR
where the following packages libiodbc2-dev
and r-cran-rodbc
won't resolve the issue.
Specs
$ uname -a
Linux 370485a13e40 4.9.93-linuxkit-aufs #1 SMP Wed Jun 6 16:55:56 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
sql.h is located in the following
$ apt-file sql.h
libdballe-dev: /usr/include/dballe/sql/sql.h
libiodbc2-dev: /usr/include/iodbc/sql.h
libmailutils-dev: /usr/include/mailutils/sql.h
libwine-dev: /usr/include/wine/windows/sql.h
libwine-development-dev: /usr/include/wine-development/wine/windows/sql.h
mingw-w64-common: /usr/share/mingw-w64/include/sql.h
mingw-w64-i686-dev: /usr/i686-w64-mingw32/include/sql.h
mingw-w64-x86-64-dev: /usr/x86_64-w64-mingw32/include/sql.h
pike7.8-core: /usr/lib/pike7.8/include/sql.h
pike8.0-core: /usr/lib/pike8.0/include/sql.h
unixodbc-dev: /usr/include/sql.h
and
# apt-file search /sqlext.h
libiodbc2-dev: /usr/include/iodbc/sqlext.h
libwine-dev: /usr/include/wine/windows/sqlext.h
libwine-development-dev: /usr/include/wine-development/wine/windows/sqlext.h
mingw-w64-common: /usr/share/mingw-w64/include/sqlext.h
mingw-w64-i686-dev: /usr/i686-w64-mingw32/include/sqlext.h
mingw-w64-x86-64-dev: /usr/x86_64-w64-mingw32/include/sqlext.h
unixodbc-dev: /usr/include/sqlext.h
r odbc rodbc
Consider R'sodbc
package that adheres to R's DBI standard among the other APIs in DBI family:ROracle
,RMySQL
,RSQLite
,RPostgreSQL
evenrjdbc
. This is a robust well-maintained, more updated library thanRODBC
.
– Parfait
Jan 15 at 2:13
add a comment |
The thread here about RODBC is old, about 7 years old, their solution about installing r-cran-odbc
and libiodbc2-dev
do not work. As of R 3.5.1, I am getting the same error as 7 years ago
install.packages("RODBC", keep_outputs = T)
configure: error: "ODBC headers sql.h and sqlext.h not found"
ERROR: configuration failed for package ‘RODBC’
* removing ‘/opt/conda/lib/R/library/RODBC’
despite having the mentioned packages installed. So
How to get the RODBC installed in Ubuntu as of R 3.5.1 (latest versions of R and Ubuntu)?
Minimal reproducible base (Dockerfile)
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
ARG BASE_CONTAINER=jupyter/minimal-notebook
FROM $BASE_CONTAINER
LABEL maintainer="Jupyter Project <jupyter@googlegroups.com>"
USER root
# R pre-requisites
RUN apt-get update &&
apt-get install -y --no-install-recommends
fonts-dejavu
tzdata
libiodbc2-dev
r-cran-rodbc
gfortran
gcc &&
rm -rf /var/lib/apt/lists/*
USER $NB_UID
# R packages
RUN conda install --quiet --yes
'r-base=3.5.1'
'r-irkernel=0.8*'
'r-plyr=1.8*'
'r-devtools=1.13*'
'r-tidyverse=1.2*'
'r-shiny=1.2*'
'r-rmarkdown=1.11*'
'r-forecast=8.2*'
'r-rsqlite=2.1*'
'r-reshape2=1.4*'
'r-nycflights13=1.0*'
'r-caret=6.0*'
'r-rcurl=1.95*'
'r-crayon=1.3*'
'r-randomforest=4.6*'
'r-htmltools=0.3*'
'r-sparklyr=0.9*'
'r-htmlwidgets=1.2*'
'r-hexbin=1.27*' &&
conda clean -tipsy &&
fix-permissions $CONDA_DIR
where the following packages libiodbc2-dev
and r-cran-rodbc
won't resolve the issue.
Specs
$ uname -a
Linux 370485a13e40 4.9.93-linuxkit-aufs #1 SMP Wed Jun 6 16:55:56 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
sql.h is located in the following
$ apt-file sql.h
libdballe-dev: /usr/include/dballe/sql/sql.h
libiodbc2-dev: /usr/include/iodbc/sql.h
libmailutils-dev: /usr/include/mailutils/sql.h
libwine-dev: /usr/include/wine/windows/sql.h
libwine-development-dev: /usr/include/wine-development/wine/windows/sql.h
mingw-w64-common: /usr/share/mingw-w64/include/sql.h
mingw-w64-i686-dev: /usr/i686-w64-mingw32/include/sql.h
mingw-w64-x86-64-dev: /usr/x86_64-w64-mingw32/include/sql.h
pike7.8-core: /usr/lib/pike7.8/include/sql.h
pike8.0-core: /usr/lib/pike8.0/include/sql.h
unixodbc-dev: /usr/include/sql.h
and
# apt-file search /sqlext.h
libiodbc2-dev: /usr/include/iodbc/sqlext.h
libwine-dev: /usr/include/wine/windows/sqlext.h
libwine-development-dev: /usr/include/wine-development/wine/windows/sqlext.h
mingw-w64-common: /usr/share/mingw-w64/include/sqlext.h
mingw-w64-i686-dev: /usr/i686-w64-mingw32/include/sqlext.h
mingw-w64-x86-64-dev: /usr/x86_64-w64-mingw32/include/sqlext.h
unixodbc-dev: /usr/include/sqlext.h
r odbc rodbc
The thread here about RODBC is old, about 7 years old, their solution about installing r-cran-odbc
and libiodbc2-dev
do not work. As of R 3.5.1, I am getting the same error as 7 years ago
install.packages("RODBC", keep_outputs = T)
configure: error: "ODBC headers sql.h and sqlext.h not found"
ERROR: configuration failed for package ‘RODBC’
* removing ‘/opt/conda/lib/R/library/RODBC’
despite having the mentioned packages installed. So
How to get the RODBC installed in Ubuntu as of R 3.5.1 (latest versions of R and Ubuntu)?
Minimal reproducible base (Dockerfile)
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
ARG BASE_CONTAINER=jupyter/minimal-notebook
FROM $BASE_CONTAINER
LABEL maintainer="Jupyter Project <jupyter@googlegroups.com>"
USER root
# R pre-requisites
RUN apt-get update &&
apt-get install -y --no-install-recommends
fonts-dejavu
tzdata
libiodbc2-dev
r-cran-rodbc
gfortran
gcc &&
rm -rf /var/lib/apt/lists/*
USER $NB_UID
# R packages
RUN conda install --quiet --yes
'r-base=3.5.1'
'r-irkernel=0.8*'
'r-plyr=1.8*'
'r-devtools=1.13*'
'r-tidyverse=1.2*'
'r-shiny=1.2*'
'r-rmarkdown=1.11*'
'r-forecast=8.2*'
'r-rsqlite=2.1*'
'r-reshape2=1.4*'
'r-nycflights13=1.0*'
'r-caret=6.0*'
'r-rcurl=1.95*'
'r-crayon=1.3*'
'r-randomforest=4.6*'
'r-htmltools=0.3*'
'r-sparklyr=0.9*'
'r-htmlwidgets=1.2*'
'r-hexbin=1.27*' &&
conda clean -tipsy &&
fix-permissions $CONDA_DIR
where the following packages libiodbc2-dev
and r-cran-rodbc
won't resolve the issue.
Specs
$ uname -a
Linux 370485a13e40 4.9.93-linuxkit-aufs #1 SMP Wed Jun 6 16:55:56 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
sql.h is located in the following
$ apt-file sql.h
libdballe-dev: /usr/include/dballe/sql/sql.h
libiodbc2-dev: /usr/include/iodbc/sql.h
libmailutils-dev: /usr/include/mailutils/sql.h
libwine-dev: /usr/include/wine/windows/sql.h
libwine-development-dev: /usr/include/wine-development/wine/windows/sql.h
mingw-w64-common: /usr/share/mingw-w64/include/sql.h
mingw-w64-i686-dev: /usr/i686-w64-mingw32/include/sql.h
mingw-w64-x86-64-dev: /usr/x86_64-w64-mingw32/include/sql.h
pike7.8-core: /usr/lib/pike7.8/include/sql.h
pike8.0-core: /usr/lib/pike8.0/include/sql.h
unixodbc-dev: /usr/include/sql.h
and
# apt-file search /sqlext.h
libiodbc2-dev: /usr/include/iodbc/sqlext.h
libwine-dev: /usr/include/wine/windows/sqlext.h
libwine-development-dev: /usr/include/wine-development/wine/windows/sqlext.h
mingw-w64-common: /usr/share/mingw-w64/include/sqlext.h
mingw-w64-i686-dev: /usr/i686-w64-mingw32/include/sqlext.h
mingw-w64-x86-64-dev: /usr/x86_64-w64-mingw32/include/sqlext.h
unixodbc-dev: /usr/include/sqlext.h
r odbc rodbc
r odbc rodbc
edited Jan 6 at 16:42
hhh
asked Jan 6 at 16:05
hhhhhh
4832621
4832621
Consider R'sodbc
package that adheres to R's DBI standard among the other APIs in DBI family:ROracle
,RMySQL
,RSQLite
,RPostgreSQL
evenrjdbc
. This is a robust well-maintained, more updated library thanRODBC
.
– Parfait
Jan 15 at 2:13
add a comment |
Consider R'sodbc
package that adheres to R's DBI standard among the other APIs in DBI family:ROracle
,RMySQL
,RSQLite
,RPostgreSQL
evenrjdbc
. This is a robust well-maintained, more updated library thanRODBC
.
– Parfait
Jan 15 at 2:13
Consider R's
odbc
package that adheres to R's DBI standard among the other APIs in DBI family: ROracle
, RMySQL
, RSQLite
, RPostgreSQL
even rjdbc
. This is a robust well-maintained, more updated library than RODBC
.– Parfait
Jan 15 at 2:13
Consider R's
odbc
package that adheres to R's DBI standard among the other APIs in DBI family: ROracle
, RMySQL
, RSQLite
, RPostgreSQL
even rjdbc
. This is a robust well-maintained, more updated library than RODBC
.– Parfait
Jan 15 at 2:13
add a comment |
1 Answer
1
active
oldest
votes
The missing headers problem can be solved by installing the r-rodbc
package from conda such that
RUN conda install --quiet --yes
'r-base=3.5.1'
'r-rodbc=1.3*'
and then after that you will get the following error
hecking for library containing SQLTables... no
configure: error: "no ODBC driver manager found"
ERROR: configuration failed for package ‘RODBC’
* removing ‘/opt/conda/lib/R/library/RODBC’
* restoring previous ‘/opt/conda/lib/R/library/RODBC’
for which you need r-cran-odbc
, unixodbc
and 'unixodbc-dev' (just unixodbc is not enough) from apt so your Dockerfile becomes
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
ARG BASE_CONTAINER=jupyter/minimal-notebook
FROM $BASE_CONTAINER
LABEL maintainer="Jupyter Project <jupyter@googlegroups.com>"
USER root
# R pre-requisites
RUN apt-get update &&
apt-get install -y --no-install-recommends
fonts-dejavu
tzdata
unixodbc
unixodbc-dev
r-cran-rodbc
gfortran
gcc &&
rm -rf /var/lib/apt/lists/*
USER $NB_UID
# R packages
RUN conda install --quiet --yes
'r-base=3.5.1'
'r-rodbc=1.3*'
'unixodbc=2.3.*'
'r-irkernel=0.8*'
'r-plyr=1.8*'
'r-devtools=1.13*'
'r-tidyverse=1.2*'
'r-shiny=1.2*'
'r-rmarkdown=1.11*'
'r-forecast=8.2*'
'r-rsqlite=2.1*'
'r-reshape2=1.4*'
'r-nycflights13=1.0*'
'r-caret=6.0*'
'r-rcurl=1.95*'
'r-crayon=1.3*'
'r-randomforest=4.6*'
'r-htmltools=0.3*'
'r-sparklyr=0.9*'
'r-htmlwidgets=1.2*'
'r-hexbin=1.27*' &&
conda clean -tipsy &&
fix-permissions $CONDA_DIR
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1107461%2fproblem-with-rodbc-installation-in-ubuntu-with-r-3-5-1%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
The missing headers problem can be solved by installing the r-rodbc
package from conda such that
RUN conda install --quiet --yes
'r-base=3.5.1'
'r-rodbc=1.3*'
and then after that you will get the following error
hecking for library containing SQLTables... no
configure: error: "no ODBC driver manager found"
ERROR: configuration failed for package ‘RODBC’
* removing ‘/opt/conda/lib/R/library/RODBC’
* restoring previous ‘/opt/conda/lib/R/library/RODBC’
for which you need r-cran-odbc
, unixodbc
and 'unixodbc-dev' (just unixodbc is not enough) from apt so your Dockerfile becomes
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
ARG BASE_CONTAINER=jupyter/minimal-notebook
FROM $BASE_CONTAINER
LABEL maintainer="Jupyter Project <jupyter@googlegroups.com>"
USER root
# R pre-requisites
RUN apt-get update &&
apt-get install -y --no-install-recommends
fonts-dejavu
tzdata
unixodbc
unixodbc-dev
r-cran-rodbc
gfortran
gcc &&
rm -rf /var/lib/apt/lists/*
USER $NB_UID
# R packages
RUN conda install --quiet --yes
'r-base=3.5.1'
'r-rodbc=1.3*'
'unixodbc=2.3.*'
'r-irkernel=0.8*'
'r-plyr=1.8*'
'r-devtools=1.13*'
'r-tidyverse=1.2*'
'r-shiny=1.2*'
'r-rmarkdown=1.11*'
'r-forecast=8.2*'
'r-rsqlite=2.1*'
'r-reshape2=1.4*'
'r-nycflights13=1.0*'
'r-caret=6.0*'
'r-rcurl=1.95*'
'r-crayon=1.3*'
'r-randomforest=4.6*'
'r-htmltools=0.3*'
'r-sparklyr=0.9*'
'r-htmlwidgets=1.2*'
'r-hexbin=1.27*' &&
conda clean -tipsy &&
fix-permissions $CONDA_DIR
add a comment |
The missing headers problem can be solved by installing the r-rodbc
package from conda such that
RUN conda install --quiet --yes
'r-base=3.5.1'
'r-rodbc=1.3*'
and then after that you will get the following error
hecking for library containing SQLTables... no
configure: error: "no ODBC driver manager found"
ERROR: configuration failed for package ‘RODBC’
* removing ‘/opt/conda/lib/R/library/RODBC’
* restoring previous ‘/opt/conda/lib/R/library/RODBC’
for which you need r-cran-odbc
, unixodbc
and 'unixodbc-dev' (just unixodbc is not enough) from apt so your Dockerfile becomes
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
ARG BASE_CONTAINER=jupyter/minimal-notebook
FROM $BASE_CONTAINER
LABEL maintainer="Jupyter Project <jupyter@googlegroups.com>"
USER root
# R pre-requisites
RUN apt-get update &&
apt-get install -y --no-install-recommends
fonts-dejavu
tzdata
unixodbc
unixodbc-dev
r-cran-rodbc
gfortran
gcc &&
rm -rf /var/lib/apt/lists/*
USER $NB_UID
# R packages
RUN conda install --quiet --yes
'r-base=3.5.1'
'r-rodbc=1.3*'
'unixodbc=2.3.*'
'r-irkernel=0.8*'
'r-plyr=1.8*'
'r-devtools=1.13*'
'r-tidyverse=1.2*'
'r-shiny=1.2*'
'r-rmarkdown=1.11*'
'r-forecast=8.2*'
'r-rsqlite=2.1*'
'r-reshape2=1.4*'
'r-nycflights13=1.0*'
'r-caret=6.0*'
'r-rcurl=1.95*'
'r-crayon=1.3*'
'r-randomforest=4.6*'
'r-htmltools=0.3*'
'r-sparklyr=0.9*'
'r-htmlwidgets=1.2*'
'r-hexbin=1.27*' &&
conda clean -tipsy &&
fix-permissions $CONDA_DIR
add a comment |
The missing headers problem can be solved by installing the r-rodbc
package from conda such that
RUN conda install --quiet --yes
'r-base=3.5.1'
'r-rodbc=1.3*'
and then after that you will get the following error
hecking for library containing SQLTables... no
configure: error: "no ODBC driver manager found"
ERROR: configuration failed for package ‘RODBC’
* removing ‘/opt/conda/lib/R/library/RODBC’
* restoring previous ‘/opt/conda/lib/R/library/RODBC’
for which you need r-cran-odbc
, unixodbc
and 'unixodbc-dev' (just unixodbc is not enough) from apt so your Dockerfile becomes
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
ARG BASE_CONTAINER=jupyter/minimal-notebook
FROM $BASE_CONTAINER
LABEL maintainer="Jupyter Project <jupyter@googlegroups.com>"
USER root
# R pre-requisites
RUN apt-get update &&
apt-get install -y --no-install-recommends
fonts-dejavu
tzdata
unixodbc
unixodbc-dev
r-cran-rodbc
gfortran
gcc &&
rm -rf /var/lib/apt/lists/*
USER $NB_UID
# R packages
RUN conda install --quiet --yes
'r-base=3.5.1'
'r-rodbc=1.3*'
'unixodbc=2.3.*'
'r-irkernel=0.8*'
'r-plyr=1.8*'
'r-devtools=1.13*'
'r-tidyverse=1.2*'
'r-shiny=1.2*'
'r-rmarkdown=1.11*'
'r-forecast=8.2*'
'r-rsqlite=2.1*'
'r-reshape2=1.4*'
'r-nycflights13=1.0*'
'r-caret=6.0*'
'r-rcurl=1.95*'
'r-crayon=1.3*'
'r-randomforest=4.6*'
'r-htmltools=0.3*'
'r-sparklyr=0.9*'
'r-htmlwidgets=1.2*'
'r-hexbin=1.27*' &&
conda clean -tipsy &&
fix-permissions $CONDA_DIR
The missing headers problem can be solved by installing the r-rodbc
package from conda such that
RUN conda install --quiet --yes
'r-base=3.5.1'
'r-rodbc=1.3*'
and then after that you will get the following error
hecking for library containing SQLTables... no
configure: error: "no ODBC driver manager found"
ERROR: configuration failed for package ‘RODBC’
* removing ‘/opt/conda/lib/R/library/RODBC’
* restoring previous ‘/opt/conda/lib/R/library/RODBC’
for which you need r-cran-odbc
, unixodbc
and 'unixodbc-dev' (just unixodbc is not enough) from apt so your Dockerfile becomes
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
ARG BASE_CONTAINER=jupyter/minimal-notebook
FROM $BASE_CONTAINER
LABEL maintainer="Jupyter Project <jupyter@googlegroups.com>"
USER root
# R pre-requisites
RUN apt-get update &&
apt-get install -y --no-install-recommends
fonts-dejavu
tzdata
unixodbc
unixodbc-dev
r-cran-rodbc
gfortran
gcc &&
rm -rf /var/lib/apt/lists/*
USER $NB_UID
# R packages
RUN conda install --quiet --yes
'r-base=3.5.1'
'r-rodbc=1.3*'
'unixodbc=2.3.*'
'r-irkernel=0.8*'
'r-plyr=1.8*'
'r-devtools=1.13*'
'r-tidyverse=1.2*'
'r-shiny=1.2*'
'r-rmarkdown=1.11*'
'r-forecast=8.2*'
'r-rsqlite=2.1*'
'r-reshape2=1.4*'
'r-nycflights13=1.0*'
'r-caret=6.0*'
'r-rcurl=1.95*'
'r-crayon=1.3*'
'r-randomforest=4.6*'
'r-htmltools=0.3*'
'r-sparklyr=0.9*'
'r-htmlwidgets=1.2*'
'r-hexbin=1.27*' &&
conda clean -tipsy &&
fix-permissions $CONDA_DIR
edited Jan 7 at 0:29
answered Jan 7 at 0:12
hhhhhh
4832621
4832621
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1107461%2fproblem-with-rodbc-installation-in-ubuntu-with-r-3-5-1%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Consider R's
odbc
package that adheres to R's DBI standard among the other APIs in DBI family:ROracle
,RMySQL
,RSQLite
,RPostgreSQL
evenrjdbc
. This is a robust well-maintained, more updated library thanRODBC
.– Parfait
Jan 15 at 2:13