3

我想安装 odbc R 包但安装失败。显然,我想念codecvt,但我不知道它是什么以及如何获得它。有人可以帮助我吗?谢谢

我收到以下消息:

** 包 'odbc' 更正 décompressé et sommes MD5 验证
** 使用分阶段安装
** 库
(cd cctz && \
/Rtools/bin/make libcctz.a PREFIX="../" CC="C:/Rtools/mingw_64/bin/gcc " CXX="C:/Rtools/mingw_64/bin/g++ -std=gnu++11 " AR="C:/Rtools/mingw_64/bin/ar" ARFLAGS=rv)
make[1]: 进入目录'/Users/sgoix/AppData/Local/Temp/RtmpAn9yWH/R.INSTALL17141d281ad0/odbc/src/cctz'
C:/Rtools/mingw_64/bin/g++ -std=gnu++11 -Wall -Iinclude -std=c++11 -pthread -O -MMD -c -o time_zone_format.o src/time_zone_format.cc
C:/Rtools/mingw_64/bin/g++ -std=gnu++11 -Wall -Iinclude -std=c++11 -pthread -O -MMD -c -o time_zone_if.o src/time_zone_if.cc
C:/Rtools/mingw_64/bin/g++ -std=gnu++11 -Wall -Iinclude -std=c++11 -pthread -O -MMD -c -o time_zone_impl.o src/time_zone_impl.cc
C:/Rtools/mingw_64/bin/g++ -std=gnu++11 -Wall -Iinclude -std=c++11 -pthread -O -MMD -c -o time_zone_info.o src/time_zone_info.cc
C:/Rtools/mingw_64/bin/g++ -std=gnu++11 -Wall -Iinclude -std=c++11 -pthread -O -MMD -c -o time_zone_libc.o src/time_zone_libc.cc
C:/Rtools/mingw_64/bin/g++ -std=gnu++11 -Wall -Iinclude -std=c++11 -pthread -O -MMD -c -o time_zone_lookup.o src/time_zone_lookup.cc
C:/Rtools/mingw_64/bin/g++ -std=gnu++11 -Wall -Iinclude -std=c++11 -pthread -O -MMD -c -o time_zone_posix.o src/time_zone_posix.cc
C:/Rtools/mingw_64/bin/ar rv libcctz.a time_zone_format.o time_zone_if.o time_zone_impl.o time_zone_info.o time_zone_libc.o time_zone_lookup.o time_zone_posix.o
a - time_zone_format.o
a - time_zone_if.o
a - time_zone_impl.o
a - time_zone_info.o
a - time_zone_libc.o
a - time_zone_lookup.o
a - time_zone_posix.o
C:\Rtools\mingw_64\bin\ar.exe:创建 libcctz.a
make[1]: 离开目录'/Users/sgoix/AppData/Local/Temp/RtmpAn9yWH/R.INSTALL17141d281ad0/odbc/src/cctz'
C:/Rtools/mingw_64/bin/g++ -std=gnu++11 -I"D:/R-Portable-3.6.2/App/R-Portable/include" -DNDEBUG -I"D:/R-Portable -3.6.2/App/R-Portable/library/Rcpp/include”-I。-Icctz/include -Inanodbc -O2 -Wall -mtune=generic -c odbc_result.cpp -o odbc_result.o
C:/Rtools/mingw_64/bin/g++ -std=gnu++11 -I"D:/R-Portable-3.6.2/App/R-Portable/include" -DNDEBUG -I"D:/R-Portable -3.6.2/App/R-Portable/library/Rcpp/include”-I。-Icctz/include -Inanodbc -O2 -Wall -mtune=generic -c connection.cpp -o connection.o
C:/Rtools/mingw_64/bin/g++ -std=gnu++11 -I"D:/R-Portable-3.6.2/App/R-Portable/include" -DNDEBUG -I"D:/R-Portable -3.6.2/App/R-Portable/library/Rcpp/include”-I。-Icctz/include -Inanodbc -O2 -Wall -mtune=generic -c nanodbc/nanodbc.cpp -o nanodbc.o
nanodbc/nanodbc.cpp:40:19:致命错误:codecvt:没有这样的文件或目录
 #include <codecvt>
                   ^
编译终止。
make: *** [Makevars.win:17: nanodbc.o] 错误 1
错误:包“odbc”的编译失败
* 删除 'D:/R-Portable-3.6.2/App/R-Portable/library/odbc'
install.packages 中的警告:
  安装包“odbc”的退出状态非零

下载的源码包在
    'C:\Users\sgoix\AppData\Local\Temp\RtmpaYbMeY\downloaded_pa​​ckages' ```

4

1 回答 1

0

我终于通过对问题回答“否”找到了解决方案:“有一个可用的二进制文件,但源代码稍后,你想从源代码安装吗?”

于 2020-06-26T13:33:53.687 回答