Unable to install cachem package for R

StephenBoesch

When attempting to install the esquisse package it has a dependency on cachem.

Error in loadNamespace(name) (esquisse_test.R#61): there is no package called ‘cachem’

Attempting to install the latter has the following result:

Install package 'cachem'

  There is a binary version available but the source version is later:
       binary source needs_compilation
cachem  1.0.3  1.0.4              TRUE

installing the source package ‘cachem’

trying URL 'https://cloud.r-project.org/src/contrib/cachem_1.0.4.tar.gz'
Content type 'application/x-gzip' length 24493 bytes (23 KB)
==================================================
downloaded 23 KB

* installing *source* package ‘cachem’ ...
** package ‘cachem’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
Error in if (nzchar(SHLIB_LIBADD)) SHLIB_LIBADD else character() : 
  argument is of length zero
* removing ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/cachem’
Warning in install.packages("cachem", verbose = FALSE, repos = c("https://cloud.r-project.org/"),  :
  installation of package ‘cachem’ had non-zero exit status

The downloaded source packages are in
    ‘/private/var/folders/d6/m67jyndd7h754m3810cl3bpm0000gp/T/Rtmpg35h3E/downloaded_packages’

I am on R 4.0.2 on macOS.

Update The cachem is also a dependency of RShiny . It seems to be a core library.

StephenBoesch

I shut down R, updated to R 4.0.3, and installed cachem from sources and this combination worked.

> install.packages('shiny')
also installing the dependency ‘cachem’


  There is a binary version available but the source version is later:
       binary source needs_compilation
cachem  1.0.3  1.0.4              TRUE

Do you want to install from sources the package which needs compilation? (Yes/no/cancel) Yes
trying URL 'https://cloud.r-project.org/bin/macosx/contrib/4.0/shiny_1.6.0.tgz'
Content type 'application/x-gzip' length 5411196 bytes (5.2 MB)
==================================================
downloaded 5.2 MB


The downloaded binary packages are in
        /var/folders/d6/m67jyndd7h754m3810cl3bpm0000gp/T//Rtmp5nrBcF/downloaded_packages
installing the source package ‘cachem’

trying URL 'https://cloud.r-project.org/src/contrib/cachem_1.0.4.tar.gz'
Content type 'application/x-gzip' length 24493 bytes (23 KB)
==================================================
downloaded 23 KB

* installing *source* package ‘cachem’ ...
** package ‘cachem’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
/usr/local/opt/llvm/bin/clang   -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG   -I/usr/local/opt/gettext/include -I/usr/local/opt/llvm/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include   -fPIC  -g -O3 -Wall -pedantic -std=gnu99 -mtune=native -pipe -c cache.c -o cache.o
/usr/local/opt/llvm/bin/clang   -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG   -I/usr/local/opt/gettext/include -I/usr/local/opt/llvm/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include   -fPIC  -g -O3 -Wall -pedantic -std=gnu99 -mtune=native -pipe -c init.c -o init.o
/usr/local/opt/llvm/bin/clang -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/Library/Frameworks/R.framework/Resources/lib -L/usr/local/opt/gettext/lib -L/usr/local/opt/llvm/lib -Wl,-rpath,/usr/local/opt/llvm/lib -o cachem.so cache.o init.o -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
installing to /Library/Frameworks/R.framework/Versions/4.0/Resources/library/00LOCK-cachem/00new/cachem/libs
** R
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location
** checking absolute paths in shared objects and dynamic libraries
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (cachem)

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

Unable to install XML package in R on CentOS

来自分类Dev

ACTION_INSTALL_PACKAGE

来自分类Dev

R tm package and cyrillic text

来自分类Dev

I am unable to install Rails on Cloud9 IDE

来自分类Dev

如何使用package.json和npm install安装bower?

来自分类Dev

Install only one package from package.json?

来自分类Dev

package.json与“ npm install%s -g”

来自分类Dev

ImportError when trying to install Package Control in Sublime Text 2

来自分类Dev

VIM Unable to install plugins

来自分类Dev

Unable install webconsole in ServiceMix 4.5.3

来自分类Dev

Eclipse unable to install Genymotion Plugin Issue

来自分类Dev

How to install Boost.Python on Windows 7 in order to install a python package?

来自分类Dev

Trouble installing an R package using R CMD install

来自分类Dev

npm install与编辑package.json和npm更新

来自分类Dev

Install local dist package into virtualenv

来自分类Dev

How to package and install Windows 10 application on other computers

来自分类Dev

Unable to install scala on phusion/baseimage

来自分类Dev

“ npm install [package]”不会更新package.json

来自分类Dev

How can i install twilio package via pip?

来自分类Dev

'pip install <package>'和'python -m pip install <package>'有什么区别?

来自分类Dev

无法安装R的cachem软件包

来自分类Dev

npm install无法读取package.json

来自分类Dev

Install-Package:找不到软件包“ WebActivator”

来自分类Dev

package.json与“ npm install%s -g”

来自分类Dev

广播接收器中PACKAGE_INSTALL的替代方法

来自分类Dev

yum install http://www.example.com/package.rpm与rpm -ivh http://www.example.com/package.rpm

来自分类Dev

Can I force dnf to install an old version of a package?

来自分类Dev

package-install不会加载软件包的文件

来自分类Dev

“ apt-get install <package_name> / testing”和“ apt-get install -t test <package_name>”之间有什么区别?

Related 相关文章

  1. 1

    Unable to install XML package in R on CentOS

  2. 2

    ACTION_INSTALL_PACKAGE

  3. 3

    R tm package and cyrillic text

  4. 4

    I am unable to install Rails on Cloud9 IDE

  5. 5

    如何使用package.json和npm install安装bower?

  6. 6

    Install only one package from package.json?

  7. 7

    package.json与“ npm install%s -g”

  8. 8

    ImportError when trying to install Package Control in Sublime Text 2

  9. 9

    VIM Unable to install plugins

  10. 10

    Unable install webconsole in ServiceMix 4.5.3

  11. 11

    Eclipse unable to install Genymotion Plugin Issue

  12. 12

    How to install Boost.Python on Windows 7 in order to install a python package?

  13. 13

    Trouble installing an R package using R CMD install

  14. 14

    npm install与编辑package.json和npm更新

  15. 15

    Install local dist package into virtualenv

  16. 16

    How to package and install Windows 10 application on other computers

  17. 17

    Unable to install scala on phusion/baseimage

  18. 18

    “ npm install [package]”不会更新package.json

  19. 19

    How can i install twilio package via pip?

  20. 20

    'pip install <package>'和'python -m pip install <package>'有什么区别?

  21. 21

    无法安装R的cachem软件包

  22. 22

    npm install无法读取package.json

  23. 23

    Install-Package:找不到软件包“ WebActivator”

  24. 24

    package.json与“ npm install%s -g”

  25. 25

    广播接收器中PACKAGE_INSTALL的替代方法

  26. 26

    yum install http://www.example.com/package.rpm与rpm -ivh http://www.example.com/package.rpm

  27. 27

    Can I force dnf to install an old version of a package?

  28. 28

    package-install不会加载软件包的文件

  29. 29

    “ apt-get install <package_name> / testing”和“ apt-get install -t test <package_name>”之间有什么区别?

热门标签

归档