DPLYR не может скомпилироваться на Mac - PullRequest
0 голосов
/ 31 марта 2020

Я сделал все нормальные шаги. Перезапуск вещей, обновление вещей и т. Д. c ...

У меня последняя версия MacOS с последней версией Xcode и Apple Developer Tools.

Я установил R с помощью homebrew и попытался обновить все там. Я не пытался обновить RStudio, но я установил его в январе, должно быть в порядке. Тем более, что я попробовал его с помощью командной строки, и он не работал.

Теперь у меня закончились вещи для обновления, я не знаю, что делать дальше? Попробуйте переустановить R и Rstudio? Как вы думаете, моя проблема здесь?

Сообщение об ошибке:

> install.packages("dplyr")
trying URL 'https://cran.rstudio.com/src/contrib/dplyr_0.8.5.tar.gz'
Content type 'application/x-gzip' length 1378766 bytes (1.3 MB)
==================================================
downloaded 1.3 MB

* installing *source* package ‘dplyr’ ...
** package ‘dplyr’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
clang++ -std=gnu++11 -I"/usr/local/Cellar/r/3.6.2/lib/R/include" -DNDEBUG -I../inst/include -DRCPP_DEFAULT_INCLUDE_CALL=false -DCOMPILING_DPLYR -DRCPP_USING_UTF8_ERROR_STRING -DRCPP_USE_UNWIND_PROTECT -DBOOST_NO_AUTO_PTR  -I"/usr/local/Cellar/r/3.6.2/lib/R/library/BH/include" -I"/usr/local/Cellar/r/3.6.2/lib/R/library/plogr/include" -I"/usr/local/Cellar/r/3.6.2/lib/R/library/Rcpp/include" -I/usr/local/opt/gettext/include -I/usr/local/opt/readline/include -I/usr/local/include  -fPIC  -g -O2  -c RcppExports.cpp -o RcppExports.o
In file included from RcppExports.cpp:4:
In file included from ./../inst/include/dplyr.h:4:
In file included from ../inst/include/dplyr/main.h:6:
In file included from ../inst/include/dplyr/workarounds/static_assert.h:17:
In file included from /usr/local/Cellar/r/3.6.2/lib/R/library/BH/include/boost/config.hpp:57:
In file included from /usr/local/Cellar/r/3.6.2/lib/R/library/BH/include/boost/config/platform/macos.hpp:28:
In file included from /usr/local/Cellar/r/3.6.2/lib/R/library/BH/include/boost/config/detail/posix_features.hpp:18:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/unistd.h:655:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/gethostuuid.h:39:17: error: C++ requires a type specifier for all declarations
int gethostuuid(uuid_t, const struct timespec *) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_NA);
                ^
In file included from RcppExports.cpp:4:
In file included from ./../inst/include/dplyr.h:4:
In file included from ../inst/include/dplyr/main.h:6:
In file included from ../inst/include/dplyr/workarounds/static_assert.h:17:
In file included from /usr/local/Cellar/r/3.6.2/lib/R/library/BH/include/boost/config.hpp:57:
In file included from /usr/local/Cellar/r/3.6.2/lib/R/library/BH/include/boost/config/platform/macos.hpp:28:
In file included from /usr/local/Cellar/r/3.6.2/lib/R/library/BH/include/boost/config/detail/posix_features.hpp:18:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/unistd.h:662:27: error: unknown type name 'uuid_t'; did you mean 'uid_t'?
int      getsgroups_np(int *, uuid_t);
                              ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_uid_t.h:31:31: note: 'uid_t' declared here
typedef __darwin_uid_t        uid_t;
                              ^
In file included from RcppExports.cpp:4:
In file included from ./../inst/include/dplyr.h:4:
In file included from ../inst/include/dplyr/main.h:6:
In file included from ../inst/include/dplyr/workarounds/static_assert.h:17:
In file included from /usr/local/Cellar/r/3.6.2/lib/R/library/BH/include/boost/config.hpp:57:
In file included from /usr/local/Cellar/r/3.6.2/lib/R/library/BH/include/boost/config/platform/macos.hpp:28:
In file included from /usr/local/Cellar/r/3.6.2/lib/R/library/BH/include/boost/config/detail/posix_features.hpp:18:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/unistd.h:664:27: error: unknown type name 'uuid_t'; did you mean 'uid_t'?
int      getwgroups_np(int *, uuid_t);
                              ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_uid_t.h:31:31: note: 'uid_t' declared here
typedef __darwin_uid_t        uid_t;
                              ^
In file included from RcppExports.cpp:4:
In file included from ./../inst/include/dplyr.h:4:
In file included from ../inst/include/dplyr/main.h:6:
In file included from ../inst/include/dplyr/workarounds/static_assert.h:17:
In file included from /usr/local/Cellar/r/3.6.2/lib/R/library/BH/include/boost/config.hpp:57:
In file included from /usr/local/Cellar/r/3.6.2/lib/R/library/BH/include/boost/config/platform/macos.hpp:28:
In file included from /usr/local/Cellar/r/3.6.2/lib/R/library/BH/include/boost/config/detail/posix_features.hpp:18:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/unistd.h:727:31: error: unknown type name 'uuid_t'; did you mean 'uid_t'?
int      setsgroups_np(int, const uuid_t);
                                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_uid_t.h:31:31: note: 'uid_t' declared here
typedef __darwin_uid_t        uid_t;
                              ^
In file included from RcppExports.cpp:4:
In file included from ./../inst/include/dplyr.h:4:
In file included from ../inst/include/dplyr/main.h:6:
In file included from ../inst/include/dplyr/workarounds/static_assert.h:17:
In file included from /usr/local/Cellar/r/3.6.2/lib/R/library/BH/include/boost/config.hpp:57:
In file included from /usr/local/Cellar/r/3.6.2/lib/R/library/BH/include/boost/config/platform/macos.hpp:28:
In file included from /usr/local/Cellar/r/3.6.2/lib/R/library/BH/include/boost/config/detail/posix_features.hpp:18:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/unistd.h:729:31: error: unknown type name 'uuid_t'; did you mean 'uid_t'?
int      setwgroups_np(int, const uuid_t);
                                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_uid_t.h:31:31: note: 'uid_t' declared here
typedef __darwin_uid_t        uid_t;
                              ^
5 errors generated.
make: *** [RcppExports.o] Error 1
ERROR: compilation failed for package ‘dplyr’
* removing ‘/usr/local/Cellar/r/3.6.2/lib/R/library/dplyr’
Warning in install.packages :
  installation of package ‘dplyr’ had non-zero exit status

The downloaded source packages are in
    ‘/private/var/folders/rt/02lg8g252b7fc8c9klpqdrvh0000gn/T/RtmpMSBgAs/downloaded_packages’
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...