【问题标题】:Error with R package biomaRt and This dependency RSQLiteR 包 biomaRt 和此依赖项 RSQLite 出错
【发布时间】:2021-04-27 08:25:59
【问题描述】:

我在使用 bioconductor 安装 biomaRt 时遇到问题。我已经在带有 R 3.6 的 Rstudio 中安装了这个包而没有错误,但是在 conda 特定环境容器中使用 R 4.0,我在使用 RSQLite 时遇到了错误。

这里有这条消息:

x86_64-conda-linux-gnu-c++ -std=gnu++11 -I"/home/legrand-lab/anaconda3/envs/r4-base/lib/R/include" -DNDEBUG -I. -Ivendor -DRSQLITE_USE_BUNDLED_SQLITE -DSQLITE_ENABLE_RTREE -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS5 -DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_STAT4 -DSQLITE_SOUNDEX -DRCPP_DEFAULT_INCLUDE_CALL=false -DRCPP_USING_UTF8_ERROR_STRING -DBOOST_NO_AUTO_PTR -DSQLITE_MAX_LENGTH=2147483647 -DHAVE_USLEEP=1 -I'/home/legrand-lab/anaconda3/envs/r4-base/lib/R/library/plogr/include' -I'/home/legrand-lab/anaconda3/envs/r4-base/lib/R/library/Rcpp/include' -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/legrand-lab/anaconda3/envs/r4-base/include -I/home/legrand-lab/anaconda3/envs/r4-base/include -Wl,-rpath-link,/home/legrand-lab/anaconda3/envs/r4-base/lib  -fvisibility=hidden -fpic  -fvisibility-inlines-hidden  -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/legrand-lab/anaconda3/envs/r4-base/include -fdebug-prefix-map=/home/conda/feedstock_root/build_artifacts/r-base-split_1616773775410/work=/usr/local/src/conda/r-base-4.0.3 -fdebug-prefix-map=/home/legrand-lab/anaconda3/envs/r4-base=/usr/local/src/conda-prefix  -c SqliteColumnDataSource.cpp -o SqliteColumnDataSource.o
In file included from vendor/boost/math/special_functions/sign.hpp:16,
                 from vendor/boost/lexical_cast/detail/inf_nan.hpp:34,
                 from vendor/boost/lexical_cast/detail/converter_lexical_streams.hpp:63,
                 from vendor/boost/lexical_cast/detail/converter_lexical.hpp:54,
                 from vendor/boost/lexical_cast/try_lexical_convert.hpp:44,
                 from vendor/boost/lexical_cast.hpp:32,
                 from vendor/boost/date_time/format_date_parser.hpp:14,
                 from vendor/boost/date_time/date_generator_parser.hpp:20,
                 from vendor/boost/date_time/date_facet.hpp:25,
                 from vendor/boost/date_time/gregorian/gregorian_io.hpp:16,
                 from vendor/boost/date_time/gregorian/gregorian.hpp:31,
                 from SqliteColumnDataSource.cpp:6:
vendor/boost/math/tools/config.hpp:408:13: fatal error: boost/detail/fenv.hpp: No such file or directory
  408 |    #include <boost/detail/fenv.hpp>
      |             ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [/home/legrand-lab/anaconda3/envs/r4-base/lib/R/etc/Makeconf:181 : SqliteColumnDataSource.o] Erreur 1
ERROR: compilation failed for package ‘RSQLite’
* removing ‘/home/legrand-lab/anaconda3/envs/r4-base/lib/R/library/RSQLite’
ERROR: dependency ‘RSQLite’ is not available for package ‘AnnotationDbi’
* removing ‘/home/legrand-lab/anaconda3/envs/r4-base/lib/R/library/AnnotationDbi’
ERROR: dependency ‘RSQLite’ is not available for package ‘BiocFileCache’
* removing ‘/home/legrand-lab/anaconda3/envs/r4-base/lib/R/library/BiocFileCache’
ERROR: dependencies ‘AnnotationDbi’, ‘BiocFileCache’ are not available for package ‘biomaRt’
* removing ‘/home/legrand-lab/anaconda3/envs/r4-base/lib/R/library/biomaRt’

The downloaded source packages are in
    ‘/tmp/RtmpJRLzOp/downloaded_packages’
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done
Warning messages:
1: In install.packages(...) :
  installation of package ‘RSQLite’ had non-zero exit status
2: In install.packages(...) :
  installation of package ‘AnnotationDbi’ had non-zero exit status
3: In install.packages(...) :
  installation of package ‘BiocFileCache’ had non-zero exit status
4: In install.packages(...) :
  installation of package ‘biomaRt’ had non-zero exit status

如果有人有想法或解决方案...

【问题讨论】:

  • 嗨,我在 bioconductor 论坛上看到 RSQLite 包在最后几天遇到了一些问题。也许你可以看看这个:support.bioconductor.org/p/9136329/#9136330
  • 错误显示fatal error: boost/detail/fenv.hpp: No such file or directory。你的 conda 环境是否安装了boost

标签: r boost rsqlite biomart


【解决方案1】:

日志表明错误来自: 致命错误:boost/detail/fenv.hpp:没有这样的文件或目录 408 | #include

conda install -c conda-forge boost-cpp

我试过这个,然后在 R 中安装 RSQLite,它可以工作。

install.packages("RSQLite")

【讨论】:

    【解决方案2】:

    这个问题也会影响 conda 包。 临时修复似乎是回滚,即remotes::install_version("RSQLite", version = "2.2.5")

    在此处查看示例:https://github.com/kstawiski/OmicSelector/blob/master/.github/workflows/r.yml#L26

    【讨论】:

    • 没有变化。但是我得到了一个解决方案:我清除了 RSQLite 和 V8 库。之后,我用 conda 而不是经典的 apt-get 重新安装 lib。现在,它正在工作。非常感谢您的时间和帮助。
    • 优胜者。谢谢你;唯一对我有用的是安装旧版本而不是在出现提示时更新任何软件包。重要的答案就在这里。
    【解决方案3】:
    conda install -c conda-forge boost-cpp
    

    为我解决了问题。

    【讨论】:

      猜你喜欢
      • 2013-01-16
      • 2012-06-04
      • 2018-04-07
      • 1970-01-01
      • 1970-01-01
      • 2015-09-23
      • 2016-04-09
      • 2015-11-22
      相关资源
      最近更新 更多