gpt4 book ai didi

R install.packages polyclip : where is config. 日志?在之前的帖子中没有答案

转载 作者:行者123 更新时间:2023-12-04 01:36:44 27 4
gpt4 key购买 nike

尝试安装 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)

"configure: error: in `/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
$

关于R install.packages polyclip : where is config. 日志?在之前的帖子中没有答案,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59229334/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com