rstudio / httpuv

HTTP and WebSocket server package for R
Other
229 stars 86 forks source link

Failing to install on MacOS Catalina #257

Closed Haffi112 closed 4 years ago

Haffi112 commented 4 years ago

I've been trying to install httpuv on MacOS Catalina without success. I have no clue what I am doing wrong, I have Xcode installed and command line tools yet I still run into a problem. Any help would be appreciated. See the log from the installation below:

> install.packages("httpuv",type="source")
Installing package into ‘/Users/hafsteinneinarsson/Library/R/3.6/library’
(as ‘lib’ is unspecified)
trying URL 'https://cran.hafro.is/src/contrib/httpuv_1.5.2.tar.gz'
Content type 'application/x-gzip' length 1763900 bytes (1.7 MB)
==================================================
downloaded 1.7 MB

* installing *source* package ‘httpuv’ ...
** package ‘httpuv’ 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 -Ilibuv/include -pthread -I"/Users/hafsteinneinarsson/Library/R/3.6/library/Rcpp/include" -I"/Users/hafsteinneinarsson/Library/R/3.6/library/BH/include" -I"/Users/hafsteinneinarsson/Library/R/3.6/library/later/include" -I/usr/local/opt/gettext/include -I/usr/local/opt/readline/include -I/usr/local/include  -DSTRICT_R_HEADERS -fPIC  -g -O2  -c RcppExports-legacy.cpp -o RcppExports-legacy.o
clang++ -std=gnu++11 -I"/usr/local/Cellar/r/3.6.2/lib/R/include" -DNDEBUG -Ilibuv/include -pthread -I"/Users/hafsteinneinarsson/Library/R/3.6/library/Rcpp/include" -I"/Users/hafsteinneinarsson/Library/R/3.6/library/BH/include" -I"/Users/hafsteinneinarsson/Library/R/3.6/library/later/include" -I/usr/local/opt/gettext/include -I/usr/local/opt/readline/include -I/usr/local/include  -DSTRICT_R_HEADERS -fPIC  -g -O2  -c RcppExports.cpp -o RcppExports.o
clang++ -std=gnu++11 -I"/usr/local/Cellar/r/3.6.2/lib/R/include" -DNDEBUG -Ilibuv/include -pthread -I"/Users/hafsteinneinarsson/Library/R/3.6/library/Rcpp/include" -I"/Users/hafsteinneinarsson/Library/R/3.6/library/BH/include" -I"/Users/hafsteinneinarsson/Library/R/3.6/library/later/include" -I/usr/local/opt/gettext/include -I/usr/local/opt/readline/include -I/usr/local/include  -DSTRICT_R_HEADERS -fPIC  -g -O2  -c callback.cpp -o callback.o
clang++ -std=gnu++11 -I"/usr/local/Cellar/r/3.6.2/lib/R/include" -DNDEBUG -Ilibuv/include -pthread -I"/Users/hafsteinneinarsson/Library/R/3.6/library/Rcpp/include" -I"/Users/hafsteinneinarsson/Library/R/3.6/library/BH/include" -I"/Users/hafsteinneinarsson/Library/R/3.6/library/later/include" -I/usr/local/opt/gettext/include -I/usr/local/opt/readline/include -I/usr/local/include  -DSTRICT_R_HEADERS -fPIC  -g -O2  -c callbackqueue.cpp -o callbackqueue.o
clang++ -std=gnu++11 -I"/usr/local/Cellar/r/3.6.2/lib/R/include" -DNDEBUG -Ilibuv/include -pthread -I"/Users/hafsteinneinarsson/Library/R/3.6/library/Rcpp/include" -I"/Users/hafsteinneinarsson/Library/R/3.6/library/BH/include" -I"/Users/hafsteinneinarsson/Library/R/3.6/library/later/include" -I/usr/local/opt/gettext/include -I/usr/local/opt/readline/include -I/usr/local/include  -DSTRICT_R_HEADERS -fPIC  -g -O2  -c filedatasource-unix.cpp -o filedatasource-unix.o
clang++ -std=gnu++11 -I"/usr/local/Cellar/r/3.6.2/lib/R/include" -DNDEBUG -Ilibuv/include -pthread -I"/Users/hafsteinneinarsson/Library/R/3.6/library/Rcpp/include" -I"/Users/hafsteinneinarsson/Library/R/3.6/library/BH/include" -I"/Users/hafsteinneinarsson/Library/R/3.6/library/later/include" -I/usr/local/opt/gettext/include -I/usr/local/opt/readline/include -I/usr/local/include  -DSTRICT_R_HEADERS -fPIC  -g -O2  -c filedatasource-win.cpp -o filedatasource-win.o
clang++ -std=gnu++11 -I"/usr/local/Cellar/r/3.6.2/lib/R/include" -DNDEBUG -Ilibuv/include -pthread -I"/Users/hafsteinneinarsson/Library/R/3.6/library/Rcpp/include" -I"/Users/hafsteinneinarsson/Library/R/3.6/library/BH/include" -I"/Users/hafsteinneinarsson/Library/R/3.6/library/later/include" -I/usr/local/opt/gettext/include -I/usr/local/opt/readline/include -I/usr/local/include  -DSTRICT_R_HEADERS -fPIC  -g -O2  -c fs.cpp -o fs.o
clang++ -std=gnu++11 -I"/usr/local/Cellar/r/3.6.2/lib/R/include" -DNDEBUG -Ilibuv/include -pthread -I"/Users/hafsteinneinarsson/Library/R/3.6/library/Rcpp/include" -I"/Users/hafsteinneinarsson/Library/R/3.6/library/BH/include" -I"/Users/hafsteinneinarsson/Library/R/3.6/library/later/include" -I/usr/local/opt/gettext/include -I/usr/local/opt/readline/include -I/usr/local/include  -DSTRICT_R_HEADERS -fPIC  -g -O2  -c http.cpp -o http.o
clang++ -std=gnu++11 -I"/usr/local/Cellar/r/3.6.2/lib/R/include" -DNDEBUG -Ilibuv/include -pthread -I"/Users/hafsteinneinarsson/Library/R/3.6/library/Rcpp/include" -I"/Users/hafsteinneinarsson/Library/R/3.6/library/BH/include" -I"/Users/hafsteinneinarsson/Library/R/3.6/library/later/include" -I/usr/local/opt/gettext/include -I/usr/local/opt/readline/include -I/usr/local/include  -DSTRICT_R_HEADERS -fPIC  -g -O2  -c httprequest.cpp -o httprequest.o
clang++ -std=gnu++11 -I"/usr/local/Cellar/r/3.6.2/lib/R/include" -DNDEBUG -Ilibuv/include -pthread -I"/Users/hafsteinneinarsson/Library/R/3.6/library/Rcpp/include" -I"/Users/hafsteinneinarsson/Library/R/3.6/library/BH/include" -I"/Users/hafsteinneinarsson/Library/R/3.6/library/later/include" -I/usr/local/opt/gettext/include -I/usr/local/opt/readline/include -I/usr/local/include  -DSTRICT_R_HEADERS -fPIC  -g -O2  -c httpresponse.cpp -o httpresponse.o
clang++ -std=gnu++11 -I"/usr/local/Cellar/r/3.6.2/lib/R/include" -DNDEBUG -Ilibuv/include -pthread -I"/Users/hafsteinneinarsson/Library/R/3.6/library/Rcpp/include" -I"/Users/hafsteinneinarsson/Library/R/3.6/library/BH/include" -I"/Users/hafsteinneinarsson/Library/R/3.6/library/later/include" -I/usr/local/opt/gettext/include -I/usr/local/opt/readline/include -I/usr/local/include  -DSTRICT_R_HEADERS -fPIC  -g -O2  -c httpuv.cpp -o httpuv.o
clang -I"/usr/local/Cellar/r/3.6.2/lib/R/include" -DNDEBUG -Ilibuv/include -pthread -I"/Users/hafsteinneinarsson/Library/R/3.6/library/Rcpp/include" -I"/Users/hafsteinneinarsson/Library/R/3.6/library/BH/include" -I"/Users/hafsteinneinarsson/Library/R/3.6/library/later/include" -I/usr/local/opt/gettext/include -I/usr/local/opt/readline/include -I/usr/local/include  -DSTRICT_R_HEADERS -fPIC  -g -O2  -c md5.c -o md5.o
clang++ -std=gnu++11 -I"/usr/local/Cellar/r/3.6.2/lib/R/include" -DNDEBUG -Ilibuv/include -pthread -I"/Users/hafsteinneinarsson/Library/R/3.6/library/Rcpp/include" -I"/Users/hafsteinneinarsson/Library/R/3.6/library/BH/include" -I"/Users/hafsteinneinarsson/Library/R/3.6/library/later/include" -I/usr/local/opt/gettext/include -I/usr/local/opt/readline/include -I/usr/local/include  -DSTRICT_R_HEADERS -fPIC  -g -O2  -c mime.cpp -o mime.o
clang -I"/usr/local/Cellar/r/3.6.2/lib/R/include" -DNDEBUG -Ilibuv/include -pthread -I"/Users/hafsteinneinarsson/Library/R/3.6/library/Rcpp/include" -I"/Users/hafsteinneinarsson/Library/R/3.6/library/BH/include" -I"/Users/hafsteinneinarsson/Library/R/3.6/library/later/include" -I/usr/local/opt/gettext/include -I/usr/local/opt/readline/include -I/usr/local/include  -DSTRICT_R_HEADERS -fPIC  -g -O2  -c set_invalid_parameter.c -o set_invalid_parameter.o
clang++ -std=gnu++11 -I"/usr/local/Cellar/r/3.6.2/lib/R/include" -DNDEBUG -Ilibuv/include -pthread -I"/Users/hafsteinneinarsson/Library/R/3.6/library/Rcpp/include" -I"/Users/hafsteinneinarsson/Library/R/3.6/library/BH/include" -I"/Users/hafsteinneinarsson/Library/R/3.6/library/later/include" -I/usr/local/opt/gettext/include -I/usr/local/opt/readline/include -I/usr/local/include  -DSTRICT_R_HEADERS -fPIC  -g -O2  -c socket.cpp -o socket.o
clang++ -std=gnu++11 -I"/usr/local/Cellar/r/3.6.2/lib/R/include" -DNDEBUG -Ilibuv/include -pthread -I"/Users/hafsteinneinarsson/Library/R/3.6/library/Rcpp/include" -I"/Users/hafsteinneinarsson/Library/R/3.6/library/BH/include" -I"/Users/hafsteinneinarsson/Library/R/3.6/library/later/include" -I/usr/local/opt/gettext/include -I/usr/local/opt/readline/include -I/usr/local/include  -DSTRICT_R_HEADERS -fPIC  -g -O2  -c staticpath.cpp -o staticpath.o
clang++ -std=gnu++11 -I"/usr/local/Cellar/r/3.6.2/lib/R/include" -DNDEBUG -Ilibuv/include -pthread -I"/Users/hafsteinneinarsson/Library/R/3.6/library/Rcpp/include" -I"/Users/hafsteinneinarsson/Library/R/3.6/library/BH/include" -I"/Users/hafsteinneinarsson/Library/R/3.6/library/later/include" -I/usr/local/opt/gettext/include -I/usr/local/opt/readline/include -I/usr/local/include  -DSTRICT_R_HEADERS -fPIC  -g -O2  -c thread.cpp -o thread.o
clang++ -std=gnu++11 -I"/usr/local/Cellar/r/3.6.2/lib/R/include" -DNDEBUG -Ilibuv/include -pthread -I"/Users/hafsteinneinarsson/Library/R/3.6/library/Rcpp/include" -I"/Users/hafsteinneinarsson/Library/R/3.6/library/BH/include" -I"/Users/hafsteinneinarsson/Library/R/3.6/library/later/include" -I/usr/local/opt/gettext/include -I/usr/local/opt/readline/include -I/usr/local/include  -DSTRICT_R_HEADERS -fPIC  -g -O2  -c utils.cpp -o utils.o
clang++ -std=gnu++11 -I"/usr/local/Cellar/r/3.6.2/lib/R/include" -DNDEBUG -Ilibuv/include -pthread -I"/Users/hafsteinneinarsson/Library/R/3.6/library/Rcpp/include" -I"/Users/hafsteinneinarsson/Library/R/3.6/library/BH/include" -I"/Users/hafsteinneinarsson/Library/R/3.6/library/later/include" -I/usr/local/opt/gettext/include -I/usr/local/opt/readline/include -I/usr/local/include  -DSTRICT_R_HEADERS -fPIC  -g -O2  -c uvutil.cpp -o uvutil.o
clang++ -std=gnu++11 -I"/usr/local/Cellar/r/3.6.2/lib/R/include" -DNDEBUG -Ilibuv/include -pthread -I"/Users/hafsteinneinarsson/Library/R/3.6/library/Rcpp/include" -I"/Users/hafsteinneinarsson/Library/R/3.6/library/BH/include" -I"/Users/hafsteinneinarsson/Library/R/3.6/library/later/include" -I/usr/local/opt/gettext/include -I/usr/local/opt/readline/include -I/usr/local/include  -DSTRICT_R_HEADERS -fPIC  -g -O2  -c webapplication.cpp -o webapplication.o
clang++ -std=gnu++11 -I"/usr/local/Cellar/r/3.6.2/lib/R/include" -DNDEBUG -Ilibuv/include -pthread -I"/Users/hafsteinneinarsson/Library/R/3.6/library/Rcpp/include" -I"/Users/hafsteinneinarsson/Library/R/3.6/library/BH/include" -I"/Users/hafsteinneinarsson/Library/R/3.6/library/later/include" -I/usr/local/opt/gettext/include -I/usr/local/opt/readline/include -I/usr/local/include  -DSTRICT_R_HEADERS -fPIC  -g -O2  -c websockets-base.cpp -o websockets-base.o
clang++ -std=gnu++11 -I"/usr/local/Cellar/r/3.6.2/lib/R/include" -DNDEBUG -Ilibuv/include -pthread -I"/Users/hafsteinneinarsson/Library/R/3.6/library/Rcpp/include" -I"/Users/hafsteinneinarsson/Library/R/3.6/library/BH/include" -I"/Users/hafsteinneinarsson/Library/R/3.6/library/later/include" -I/usr/local/opt/gettext/include -I/usr/local/opt/readline/include -I/usr/local/include  -DSTRICT_R_HEADERS -fPIC  -g -O2  -c websockets-hixie76.cpp -o websockets-hixie76.o
clang++ -std=gnu++11 -I"/usr/local/Cellar/r/3.6.2/lib/R/include" -DNDEBUG -Ilibuv/include -pthread -I"/Users/hafsteinneinarsson/Library/R/3.6/library/Rcpp/include" -I"/Users/hafsteinneinarsson/Library/R/3.6/library/BH/include" -I"/Users/hafsteinneinarsson/Library/R/3.6/library/later/include" -I/usr/local/opt/gettext/include -I/usr/local/opt/readline/include -I/usr/local/include  -DSTRICT_R_HEADERS -fPIC  -g -O2  -c websockets-hybi03.cpp -o websockets-hybi03.o
clang++ -std=gnu++11 -I"/usr/local/Cellar/r/3.6.2/lib/R/include" -DNDEBUG -Ilibuv/include -pthread -I"/Users/hafsteinneinarsson/Library/R/3.6/library/Rcpp/include" -I"/Users/hafsteinneinarsson/Library/R/3.6/library/BH/include" -I"/Users/hafsteinneinarsson/Library/R/3.6/library/later/include" -I/usr/local/opt/gettext/include -I/usr/local/opt/readline/include -I/usr/local/include  -DSTRICT_R_HEADERS -fPIC  -g -O2  -c websockets-ietf.cpp -o websockets-ietf.o
clang++ -std=gnu++11 -I"/usr/local/Cellar/r/3.6.2/lib/R/include" -DNDEBUG -Ilibuv/include -pthread -I"/Users/hafsteinneinarsson/Library/R/3.6/library/Rcpp/include" -I"/Users/hafsteinneinarsson/Library/R/3.6/library/BH/include" -I"/Users/hafsteinneinarsson/Library/R/3.6/library/later/include" -I/usr/local/opt/gettext/include -I/usr/local/opt/readline/include -I/usr/local/include  -DSTRICT_R_HEADERS -fPIC  -g -O2  -c websockets.cpp -o websockets.o
clang++ -std=gnu++11 -I"/usr/local/Cellar/r/3.6.2/lib/R/include" -DNDEBUG -Ilibuv/include -pthread -I"/Users/hafsteinneinarsson/Library/R/3.6/library/Rcpp/include" -I"/Users/hafsteinneinarsson/Library/R/3.6/library/BH/include" -I"/Users/hafsteinneinarsson/Library/R/3.6/library/later/include" -I/usr/local/opt/gettext/include -I/usr/local/opt/readline/include -I/usr/local/include  -DSTRICT_R_HEADERS -fPIC  -g -O2  -c winutils.cpp -o winutils.o
cp -p -f libuv/m4/lt_obsolete.m4 libuv/m4/lt~obsolete.m4
(cd libuv \
        && touch aclocal.m4 \
        && touch -r aclocal.m4 configure Makefile.in \
        && chmod +x configure \
        && CC="clang" CFLAGS="-g -O2  -fPIC " AR="ar" RANLIB="ranlib" LDFLAGS="-L/usr/local/opt/gettext/lib -L/usr/local/opt/readline/lib -L/usr/local/lib" ./configure "--quiet")
rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
make --directory=libuv \
        HAVE_DTRACE=0
  CC       src/libuv_la-fs-poll.lo
  CC       src/libuv_la-idna.lo
  CC       src/libuv_la-inet.lo
  CC       src/libuv_la-strscpy.lo
  CC       src/libuv_la-threadpool.lo
  CC       src/libuv_la-timer.lo
  CC       src/libuv_la-uv-data-getter-setters.lo
  CC       src/libuv_la-uv-common.lo
  CC       src/libuv_la-version.lo
  CC       src/unix/libuv_la-async.lo
  CC       src/unix/libuv_la-core.lo
  CC       src/unix/libuv_la-dl.lo
  CC       src/unix/libuv_la-fs.lo
  CC       src/unix/libuv_la-getaddrinfo.lo
  CC       src/unix/libuv_la-getnameinfo.lo
  CC       src/unix/libuv_la-loop-watcher.lo
  CC       src/unix/libuv_la-loop.lo
  CC       src/unix/libuv_la-pipe.lo
  CC       src/unix/libuv_la-poll.lo
  CC       src/unix/libuv_la-process.lo
  CC       src/unix/libuv_la-signal.lo
  CC       src/unix/libuv_la-stream.lo
  CC       src/unix/libuv_la-tcp.lo
  CC       src/unix/libuv_la-thread.lo
  CC       src/unix/libuv_la-tty.lo
  CC       src/unix/libuv_la-udp.lo
  CC       src/unix/libuv_la-bsd-ifaddrs.lo
  CC       src/unix/libuv_la-darwin.lo
  CC       src/unix/libuv_la-darwin-proctitle.lo
src/unix/darwin-proctitle.c:32:11: fatal error: 'CoreFoundation/CoreFoundation.h' file not found
# include <CoreFoundation/CoreFoundation.h>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[1]: *** [src/unix/libuv_la-darwin-proctitle.lo] Error 1
make: *** [libuv/.libs/libuv.a] Error 2
ERROR: compilation failed for package ‘httpuv’
* removing ‘/Users/hafsteinneinarsson/Library/R/3.6/library/httpuv’

The downloaded source packages are in
    ‘/private/var/folders/cz/kzt0fsyx55sd23p4p84l0wsw0000gn/T/Rtmpv13sZF/downloaded_packages’
Warning message:
In install.packages("httpuv", type = "source") :
  installation of package ‘httpuv’ had non-zero exit status
jcheng5 commented 4 years ago

Please see https://github.com/rstudio/httpuv/issues/186