gpt4 book ai didi

r - 在 Windows 上安装 odbc R 包时出现问题

转载 作者:行者123 更新时间:2023-12-05 07:06:10 25 4
gpt4 key购买 nike

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

我收到了以下消息:

** package 'odbc' correctement décompressé et sommes MD5 vérifiées** using staged installation** libs(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]: Entering directory '/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.ccC:/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.ccC:/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.ccC:/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.ccC:/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.ccC:/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.ccC:/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.ccC:/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.oa - time_zone_format.oa - time_zone_if.oa - time_zone_impl.oa - time_zone_info.oa - time_zone_libc.oa - time_zone_lookup.oa - time_zone_posix.oC:\Rtools\mingw_64\bin\ar.exe: creating libcctz.amake[1]: Leaving directory '/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.oC:/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.oC:/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.onanodbc/nanodbc.cpp:40:19: fatal error: codecvt: No such file or directory #include <codecvt>                   ^compilation terminated.make: *** [Makevars.win:17: nanodbc.o] Error 1ERROR: compilation failed for package 'odbc'* removing 'D:/R-Portable-3.6.2/App/R-Portable/library/odbc'Warning in install.packages :  installation of package ‘odbc’ had non-zero exit statusThe downloaded source packages are in    ‘C:\Users\sgoix\AppData\Local\Temp\RtmpaYbMeY\downloaded_packages’ ```

最佳答案

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

关于r - 在 Windows 上安装 odbc R 包时出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62593257/

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