簡體   English   中英

R install.packages polyclip:config.log 在哪里? 在之前的帖子中沒有答案

[英]R install.packages polyclip: where is config.log? No answer in prior posts

嘗試安裝 R 包ggforce遇到以下錯誤安裝依賴 polyclip 將我提到 config.log。 但是,在 ~/、/tmp 或 /var/log 下找不到 config.log我通過

find . | grep config[.]log 

嘗試install.packages("ggforce",keep_outputs = TRUE)沒有提供任何附加信息;

 install.packages("ggforce",keep_outputs = TRUE,verbose = TRUE)

“配置:錯誤:在`/tmp/RtmpAkq4Vm/R.INSTALL6c31457f19ba/polyclip'”

但是/tmp/RtmpAkq4Vm安裝后不存在。

有人能告訴我它在哪里嗎?

錯誤詳情:

 install.packages("ggforce")
Installing package into ‘/home/dutky/R/x86_64-pc-linux-gnu-library/3.6’
(as ‘lib’ is unspecified)
also installing the dependency ‘polyclip’

trying URL 'https://cloud.r-project.org/src/contrib/polyclip_1.10-0.tar.gz'
Content type 'application/x-gzip' length 79619 bytes (77 KB)
==================================================
downloaded 77 KB

trying URL 'https://cloud.r-project.org/src/contrib/ggforce_0.3.1.tar.gz'
Content type 'application/x-gzip' length 857814 bytes (837 KB)
==================================================
downloaded 837 KB

[1] "sourcing Rprofile.site"
* installing *source* package ‘polyclip’ ...
** package ‘polyclip’ successfully unpacked and MD5 sums checked
** using staged installation
compiling under C++11
checking whether the C++ compiler works... no
configure: error: in `/tmp/RtmpCWyOfl/R.INSTALL3a4b31b841d7/polyclip':
configure: error: C++ compiler cannot create executables
See `config.log' for more details
ERROR: configuration failed for package ‘polyclip’
* removing ‘/home/dutky/R/x86_64-pc-linux-gnu-library/3.6/polyclip’
Warning in install.packages :
  installation of package ‘polyclip’ had non-zero exit status
[1] "sourcing Rprofile.site"
ERROR: dependency ‘polyclip’ is not available for package ‘ggforce’
* removing ‘/home/dutky/R/x86_64-pc-linux-gnu-library/3.6/ggforce’
Warning in install.packages :
  installation of package ‘ggforce’ had non-zero exit status

The downloaded source packages are in
    ‘/tmp/RtmpTKDy0n/downloaded_packages’

運行 ubuntu 16.04.12,64 位,gcc/g++:

dutky@stillbill:/var/log$ g++ --version
g++ (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

dutky@stillbill:/var/log$ gcc --version
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

安裝包 polyclip 被我的 .Rprofile 中的某些東西阻塞了。 我把它移開了,ggforce 安裝成功完成。

我在安裝過程中得到了一個指向 config.log 文件的鏈接,然后它可能通過在另一個 bash shell 中獲取以下內容而被刪除:

while true ; do
    if [  -e config.log ]
        then return
    fi
    save=`find /tmp -name config.log -exec ln {} config.log \;` 
done 2>/dev/null

發生錯誤后,config.log 包含以下內容:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by polyclip configure 1.9-1, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ ./configure 

## --------- ##
## Platform. ##
## --------- ##

hostname = stillbill
uname -m = x86_64
uname -r = 4.15.0-72-generic
uname -s = Linux
uname -v = #81~16.04.1-Ubuntu SMP Tue Nov 26 16:34:21 UTC 2019

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /home/dutky/bin
PATH: /home/dutky/.local/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games
PATH: /usr/local/games
PATH: /snap/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2065: checking for C++ compiler version
configure:2074: ERROR: no information for variable '[1] "sourcing Rprofile.site"
CXX11' ERROR: no information for variable '[1] "sourcing Rprofile.site"
CXX11STD' --version >&5
./configure: line 2076: ERROR:: command not found
configure:2085: $? = 127
configure:2074: ERROR: no information for variable '[1] "sourcing Rprofile.site"
CXX11' ERROR: no information for variable '[1] "sourcing Rprofile.site"
CXX11STD' -v >&5
./configure: line 2076: ERROR:: command not found
configure:2085: $? = 127
configure:2074: ERROR: no information for variable '[1] "sourcing Rprofile.site"
CXX11' ERROR: no information for variable '[1] "sourcing Rprofile.site"
CXX11STD' -V >&5
./configure: line 2076: ERROR:: command not found
configure:2085: $? = 127
configure:2074: ERROR: no information for variable '[1] "sourcing Rprofile.site"
CXX11' ERROR: no information for variable '[1] "sourcing Rprofile.site"
CXX11STD' -qversion >&5
./configure: line 2076: ERROR:: command not found
configure:2085: $? = 127
configure:2105: checking whether the C++ compiler works
configure:2127: ERROR: no information for variable '[1] "sourcing Rprofile.site"
CXX11' ERROR: no information for variable '[1] "sourcing Rprofile.site"
CXX11STD' ERROR: no information for variable '[1] "sourcing Rprofile.site"
CXX11FLAGS'   conftest.cpp  >&5
./configure: line 2129: ERROR:: command not found
configure:2131: $? = 127
configure:2169: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "polyclip"
| #define PACKAGE_TARNAME "polyclip"
| #define PACKAGE_VERSION "1.9-1"
| #define PACKAGE_STRING "polyclip 1.9-1"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:2174: error: in `/tmp/RtmpQ1YEV6/R.INSTALL6897499f5a39/polyclip':
configure:2176: error: C++ compiler cannot create executables
See `config.log' for more details

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=

## ----------------- ##
## Output variables. ##
## ----------------- ##

CPPFLAGS=''
CXX11'\'' ERROR: no information for variable '\''[1] "sourcing Rprofile.site"
CXX11FLAGS'\'''
CXX11STD'\'''
CXX='ERROR: no information for variable '\''[1] "sourcing Rprofile.site"
CXXCPP=''
CXXFLAGS='ERROR: no information for variable '\''[1] "sourcing Rprofile.site"
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
GREP=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
OBJEXT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME='polyclip'
PACKAGE_STRING='polyclip 1.9-1'
PACKAGE_TARNAME='polyclip'
PACKAGE_URL=''
PACKAGE_VERSION='1.9-1'
PATH_SEPARATOR=':'
POLYCLIP_CPPFLAGS=''
POLYCLIP_CXXFLAGS=''
POLYCLIP_CXX_DECLAR='CXX_STD = CXX11'
POLYCLIP_LIBS=''
POLYCLIP_OBJECTS=''
SHELL='/bin/bash'
ac_ct_CXX=''
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host_alias=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "polyclip"
#define PACKAGE_TARNAME "polyclip"
#define PACKAGE_VERSION "1.9-1"
#define PACKAGE_STRING "polyclip 1.9-1"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""

configure: exit 77
$

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM