Q & A

読者からのお問い合わせの内、正誤表だけでは対応が難しい問題について、解決策などを提示します。

  1. インストールするバージョンについて
  2. パッケージがインストールできない
  3. エラーが出ます

インストールするバージョンについて

Q. 最新バージョンのRをインストールしてもいいですか?

R 4.0.0がリリースされましたが使えますか?

A. 現時点では検証が済んでいないので、R 3.6.3の利用を推奨しています

執筆時に想定していたRのバージョンはR 3.6.2及びR 3.6.3でした。このバージョンでの確認は済んでいますが、刊行後(2020年3月)にリリースしたR 4.0系列(2020年4月25日リリース)について、検証が十分に済んでいません。

旧バージョンのRのインストールを推奨しています。

参照: R 3.6系列のインストールについて

パッケージがインストールできない

tableoneパッケージのインストールができません

Q. 次の環境でRをインストールしたのですが、tableoneパッケージをインストールしようとするとエラーがたくさん出てきてインストールできませんでした。

  • R 3.6.3 (CUIだけ):RのインストールにはHomebrewを使いました。
  • RStudio Version 1.2.5033:本家のインストーラを使いました
  • macOS 10.15.3

エラーメッセージは以下のとおりです。どうしたらよいでしょうか?

									
									
R version 3.6.3 (2020-02-29) -- "Holding the Windsock"
Copyright (C) 2020 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin19.3.0 (64-bit)

R は、自由なソフトウェアであり、「完全に無保証」です。 
一定の条件に従えば、自由にこれを再配布することができます。 
配布条件の詳細に関しては、'license()' あるいは 'licence()' と入力してください。 

R は多くの貢献者による共同プロジェクトです。 
詳しくは 'contributors()' と入力してください。 
また、R や R のパッケージを出版物で引用する際の形式については 
'citation()' と入力してください。 

'demo()' と入力すればデモをみることができます。 
'help()' とすればオンラインヘルプが出ます。 
'help.start()' で HTML ブラウザによるヘルプがみられます。 
'q()' と入力すれば R を終了します。 

[Workspace loaded from ~/Dropbox/RStudio Projects/team_charts_R/.RData]

> install.packages("tableone")
Installing package into ‘/Users/kinpodo/Library/R/3.6/library’
(as ‘lib’ is unspecified)
also installing the dependencies ‘nloptr’, ‘lme4’, ‘lmerTest’

 URL 'https://cran.ism.ac.jp/src/contrib/nloptr_1.2.2.tar.gz' を試しています 
Content type 'application/x-gzip' length 2450959 bytes (2.3 MB)
==================================================
downloaded 2.3 MB

 URL 'https://cran.ism.ac.jp/src/contrib/lme4_1.1-21.tar.gz' を試しています 
Content type 'application/x-gzip' length 4124154 bytes (3.9 MB)
==================================================
downloaded 3.9 MB

 URL 'https://cran.ism.ac.jp/src/contrib/lmerTest_3.1-1.tar.gz' を試しています 
Content type 'application/x-gzip' length 194447 bytes (189 KB)
==================================================
downloaded 189 KB

 URL 'https://cran.ism.ac.jp/src/contrib/tableone_0.11.0.tar.gz' を試しています 
Content type 'application/x-gzip' length 125368 bytes (122 KB)
==================================================
downloaded 122 KB

* installing *source* package ‘nloptr’ ...
**  パッケージ ‘nloptr’ の解凍および MD5 サムの検証に成功しました 
** using staged installation
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether clang++ -std=gnu++11 accepts -g... yes
checking how to run the C++ preprocessor... clang++ -std=gnu++11 -E
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether clang++ -std=gnu++11 accepts -g... (cached) yes
checking for pkg-config... yes
configure: Now testing for NLopt header file.
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking nlopt.h usability... no
checking nlopt.h presence... no
checking for nlopt.h... no
configure: Need to configure and build NLopt
configure: Starting to install library to /private/var/folders/3m/9xqby58x18n0twprskg685yr0000gn/T/Rtmpnl3P07/R.INSTALLd30c563462aa/nloptr/src/nlopt_src
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether clang accepts -g... yes
checking for clang option to accept ISO C89... none needed
checking whether clang understands -c and -o together... rm: conftest.dSYM: is a directory
yes
checking for style of include used by make... GNU
checking dependency style of clang... gcc3
checking for clang option to accept ISO C99... none needed
checking for clang option to accept ISO Standard C... (cached) none needed
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking build system type... x86_64-apple-darwin19.3.0
checking host system type... x86_64-apple-darwin19.3.0
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by clang... /Library/Developer/CommandLineTools/usr/bin/ld
checking if the linker (/Library/Developer/CommandLineTools/usr/bin/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... rm: conftest.dSYM: is a directory
BSD nm
checking the maximum length of command line arguments... 196608
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-apple-darwin19.3.0 file names to x86_64-apple-darwin19.3.0 format... func_convert_file_noop
checking how to convert x86_64-apple-darwin19.3.0 file names to toolchain format... func_convert_file_noop
checking for /Library/Developer/CommandLineTools/usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... dlltool
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... rm: conftest.dSYM: is a directory
no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from clang object... rm: conftest.dSYM: is a directory
ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking for -force_load linker flag... yes
checking how to run the C preprocessor... clang -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if clang supports -fno-rtti -fno-exceptions... yes
checking for clang option to produce PIC... -fno-common -DPIC
checking if clang PIC flag -fno-common -DPIC works... yes
checking if clang static flag -static works... no
checking if clang supports -c -o file.o... yes
checking if clang supports -c -o file.o... (cached) yes
checking whether the clang linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin19.3.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether we are using the GNU C++ compiler... yes
checking whether clang++ -std=gnu++11 accepts -g... yes
checking dependency style of clang++ -std=gnu++11... gcc3
checking how to run the C++ preprocessor... clang++ -std=gnu++11 -E
checking for ld used by clang++ -std=gnu++11... /Library/Developer/CommandLineTools/usr/bin/ld
checking if the linker (/Library/Developer/CommandLineTools/usr/bin/ld) is GNU ld... no
checking whether the clang++ -std=gnu++11 linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes
checking for clang++ -std=gnu++11 option to produce PIC... -fno-common -DPIC
checking if clang++ -std=gnu++11 PIC flag -fno-common -DPIC works... yes
checking if clang++ -std=gnu++11 static flag -static works... no
checking if clang++ -std=gnu++11 supports -c -o file.o... yes
checking if clang++ -std=gnu++11 supports -c -o file.o... (cached) yes
checking whether the clang++ -std=gnu++11 linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin19.3.0 dyld
checking how to hardcode library paths into programs... immediate
checking for ANSI C header files... (cached) yes
checking whether time.h and sys/time.h may both be included... yes
checking for unistd.h... (cached) yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking for stdint.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for C thread-local keyword... __thread
checking size of unsigned int... 4
checking size of unsigned long... 8
checking for uint32_t... yes
checking for sin in -lm... yes
checking for BSDgettimeofday... no
checking for gettimeofday... yes
checking for time... yes
checking for qsort_r... yes
checking for getpid... yes
checking for gettid syscall... yes
checking for isnan... yes
checking for isinf... yes
checking for copysign... yes
checking for mkoctfile... no
checking for mex... mex
checking for working HUGE_VAL... ok
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating nlopt.pc
config.status: creating api/Makefile
config.status: creating util/Makefile
config.status: creating octave/Makefile
config.status: creating direct/Makefile
config.status: creating cdirect/Makefile
config.status: creating stogo/Makefile
config.status: creating praxis/Makefile
config.status: creating luksan/Makefile
config.status: creating crs/Makefile
config.status: creating mlsl/Makefile
config.status: creating mma/Makefile
config.status: creating cobyla/Makefile
config.status: creating newuoa/Makefile
config.status: creating neldermead/Makefile
config.status: creating auglag/Makefile
config.status: creating bobyqa/Makefile
config.status: creating isres/Makefile
config.status: creating slsqp/Makefile
config.status: creating esch/Makefile
config.status: creating test/Makefile
config.status: creating swig/Makefile
config.status: creating swig/nlopt.scm
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
make  all-recursive
Making all in util
/bin/sh ../libtool  --tag=CC   --mode=compile clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I..  -I../api   -g -O2 -MT mt19937ar.lo -MD -MP -MF .deps/mt19937ar.Tpo -c -o mt19937ar.lo mt19937ar.c
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../api -g -O2 -MT mt19937ar.lo -MD -MP -MF .deps/mt19937ar.Tpo -c mt19937ar.c  -fno-common -DPIC -o .libs/mt19937ar.o
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../api -g -O2 -MT mt19937ar.lo -MD -MP -MF .deps/mt19937ar.Tpo -c mt19937ar.c -o mt19937ar.o >/dev/null 2>&1
mv -f .deps/mt19937ar.Tpo .deps/mt19937ar.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I..  -I../api   -g -O2 -MT sobolseq.lo -MD -MP -MF .deps/sobolseq.Tpo -c -o sobolseq.lo sobolseq.c
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../api -g -O2 -MT sobolseq.lo -MD -MP -MF .deps/sobolseq.Tpo -c sobolseq.c  -fno-common -DPIC -o .libs/sobolseq.o
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../api -g -O2 -MT sobolseq.lo -MD -MP -MF .deps/sobolseq.Tpo -c sobolseq.c -o sobolseq.o >/dev/null 2>&1
mv -f .deps/sobolseq.Tpo .deps/sobolseq.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I..  -I../api   -g -O2 -MT timer.lo -MD -MP -MF .deps/timer.Tpo -c -o timer.lo timer.c
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../api -g -O2 -MT timer.lo -MD -MP -MF .deps/timer.Tpo -c timer.c  -fno-common -DPIC -o .libs/timer.o
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../api -g -O2 -MT timer.lo -MD -MP -MF .deps/timer.Tpo -c timer.c -o timer.o >/dev/null 2>&1
mv -f .deps/timer.Tpo .deps/timer.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I..  -I../api   -g -O2 -MT stop.lo -MD -MP -MF .deps/stop.Tpo -c -o stop.lo stop.c
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../api -g -O2 -MT stop.lo -MD -MP -MF .deps/stop.Tpo -c stop.c  -fno-common -DPIC -o .libs/stop.o
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../api -g -O2 -MT stop.lo -MD -MP -MF .deps/stop.Tpo -c stop.c -o stop.o >/dev/null 2>&1
mv -f .deps/stop.Tpo .deps/stop.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I..  -I../api   -g -O2 -MT redblack.lo -MD -MP -MF .deps/redblack.Tpo -c -o redblack.lo redblack.c
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../api -g -O2 -MT redblack.lo -MD -MP -MF .deps/redblack.Tpo -c redblack.c  -fno-common -DPIC -o .libs/redblack.o
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../api -g -O2 -MT redblack.lo -MD -MP -MF .deps/redblack.Tpo -c redblack.c -o redblack.o >/dev/null 2>&1
mv -f .deps/redblack.Tpo .deps/redblack.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I..  -I../api   -g -O2 -MT qsort_r.lo -MD -MP -MF .deps/qsort_r.Tpo -c -o qsort_r.lo qsort_r.c
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../api -g -O2 -MT qsort_r.lo -MD -MP -MF .deps/qsort_r.Tpo -c qsort_r.c  -fno-common -DPIC -o .libs/qsort_r.o
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../api -g -O2 -MT qsort_r.lo -MD -MP -MF .deps/qsort_r.Tpo -c qsort_r.c -o qsort_r.o >/dev/null 2>&1
mv -f .deps/qsort_r.Tpo .deps/qsort_r.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I..  -I../api   -g -O2 -MT rescale.lo -MD -MP -MF .deps/rescale.Tpo -c -o rescale.lo rescale.c
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../api -g -O2 -MT rescale.lo -MD -MP -MF .deps/rescale.Tpo -c rescale.c  -fno-common -DPIC -o .libs/rescale.o
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../api -g -O2 -MT rescale.lo -MD -MP -MF .deps/rescale.Tpo -c rescale.c -o rescale.o >/dev/null 2>&1
mv -f .deps/rescale.Tpo .deps/rescale.Plo
/bin/sh ../libtool  --tag=CC   --mode=link clang++ -std=gnu++11  -g -O2   -o libutil.la  mt19937ar.lo sobolseq.lo timer.lo stop.lo redblack.lo qsort_r.lo rescale.lo  -lm 
libtool: link: ar cru .libs/libutil.a .libs/mt19937ar.o .libs/sobolseq.o .libs/timer.o .libs/stop.o .libs/redblack.o .libs/qsort_r.o .libs/rescale.o 
libtool: link: ranlib .libs/libutil.a
libtool: link: ( cd ".libs" && rm -f "libutil.la" && ln -s "../libutil.la" "libutil.la" )
clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I..  -I../api   -g -O2 -MT redblack_test.o -MD -MP -MF .deps/redblack_test.Tpo -c -o redblack_test.o redblack_test.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
mv -f .deps/redblack_test.Tpo .deps/redblack_test.Po
/bin/sh ../libtool  --tag=CC   --mode=link clang++ -std=gnu++11  -g -O2   -o redblack_test redblack_test.o libutil.la -lm 
libtool: link: clang++ -std=gnu++11 -g -O2 -o redblack_test redblack_test.o  ./.libs/libutil.a -lm
Making all in direct
/bin/sh ../libtool  --tag=CC   --mode=compile clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I..  -I../util -I../api   -g -O2 -MT DIRect.lo -MD -MP -MF .deps/DIRect.Tpo -c -o DIRect.lo DIRect.c
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../util -I../api -g -O2 -MT DIRect.lo -MD -MP -MF .deps/DIRect.Tpo -c DIRect.c  -fno-common -DPIC -o .libs/DIRect.o
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../util -I../api -g -O2 -MT DIRect.lo -MD -MP -MF .deps/DIRect.Tpo -c DIRect.c -o DIRect.o >/dev/null 2>&1
mv -f .deps/DIRect.Tpo .deps/DIRect.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I..  -I../util -I../api   -g -O2 -MT direct_wrap.lo -MD -MP -MF .deps/direct_wrap.Tpo -c -o direct_wrap.lo direct_wrap.c
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../util -I../api -g -O2 -MT direct_wrap.lo -MD -MP -MF .deps/direct_wrap.Tpo -c direct_wrap.c  -fno-common -DPIC -o .libs/direct_wrap.o
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../util -I../api -g -O2 -MT direct_wrap.lo -MD -MP -MF .deps/direct_wrap.Tpo -c direct_wrap.c -o direct_wrap.o >/dev/null 2>&1
mv -f .deps/direct_wrap.Tpo .deps/direct_wrap.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I..  -I../util -I../api   -g -O2 -MT DIRserial.lo -MD -MP -MF .deps/DIRserial.Tpo -c -o DIRserial.lo DIRserial.c
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../util -I../api -g -O2 -MT DIRserial.lo -MD -MP -MF .deps/DIRserial.Tpo -c DIRserial.c  -fno-common -DPIC -o .libs/DIRserial.o
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../util -I../api -g -O2 -MT DIRserial.lo -MD -MP -MF .deps/DIRserial.Tpo -c DIRserial.c -o DIRserial.o >/dev/null 2>&1
mv -f .deps/DIRserial.Tpo .deps/DIRserial.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I..  -I../util -I../api   -g -O2 -MT DIRsubrout.lo -MD -MP -MF .deps/DIRsubrout.Tpo -c -o DIRsubrout.lo DIRsubrout.c
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../util -I../api -g -O2 -MT DIRsubrout.lo -MD -MP -MF .deps/DIRsubrout.Tpo -c DIRsubrout.c  -fno-common -DPIC -o .libs/DIRsubrout.o
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../util -I../api -g -O2 -MT DIRsubrout.lo -MD -MP -MF .deps/DIRsubrout.Tpo -c DIRsubrout.c -o DIRsubrout.o >/dev/null 2>&1
mv -f .deps/DIRsubrout.Tpo .deps/DIRsubrout.Plo
/bin/sh ../libtool  --tag=CC   --mode=link clang++ -std=gnu++11  -g -O2   -o libdirect.la  DIRect.lo direct_wrap.lo DIRserial.lo DIRsubrout.lo  -lm 
libtool: link: ar cru .libs/libdirect.a .libs/DIRect.o .libs/direct_wrap.o .libs/DIRserial.o .libs/DIRsubrout.o 
libtool: link: ranlib .libs/libdirect.a
libtool: link: ( cd ".libs" && rm -f "libdirect.la" && ln -s "../libdirect.la" "libdirect.la" )
Making all in cdirect
/bin/sh ../libtool  --tag=CC   --mode=compile clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I..  -I../util -I../api   -g -O2 -MT cdirect.lo -MD -MP -MF .deps/cdirect.Tpo -c -o cdirect.lo cdirect.c
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../util -I../api -g -O2 -MT cdirect.lo -MD -MP -MF .deps/cdirect.Tpo -c cdirect.c  -fno-common -DPIC -o .libs/cdirect.o
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../util -I../api -g -O2 -MT cdirect.lo -MD -MP -MF .deps/cdirect.Tpo -c cdirect.c -o cdirect.o >/dev/null 2>&1
mv -f .deps/cdirect.Tpo .deps/cdirect.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I..  -I../util -I../api   -g -O2 -MT hybrid.lo -MD -MP -MF .deps/hybrid.Tpo -c -o hybrid.lo hybrid.c
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../util -I../api -g -O2 -MT hybrid.lo -MD -MP -MF .deps/hybrid.Tpo -c hybrid.c  -fno-common -DPIC -o .libs/hybrid.o
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
hybrid.c:91:12: warning: 'nlopt_minimize' is deprecated [-Wdeprecated-declarations]
     ret = nlopt_minimize(p->local_alg, n, fcount, p, 
           ^
../api/nlopt.h:337:35: note: 'nlopt_minimize' has been explicitly marked deprecated here
     int maxeval, double maxtime) NLOPT_DEPRECATED;
                                  ^
../api/nlopt.h:320:43: note: expanded from macro 'NLOPT_DEPRECATED'
#  define NLOPT_DEPRECATED __attribute__((deprecated))
                                          ^
1 warning generated.
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../util -I../api -g -O2 -MT hybrid.lo -MD -MP -MF .deps/hybrid.Tpo -c hybrid.c -o hybrid.o >/dev/null 2>&1
mv -f .deps/hybrid.Tpo .deps/hybrid.Plo
/bin/sh ../libtool  --tag=CC   --mode=link clang++ -std=gnu++11  -g -O2   -o libcdirect.la  cdirect.lo hybrid.lo  -lm 
libtool: link: ar cru .libs/libcdirect.a .libs/cdirect.o .libs/hybrid.o 
libtool: link: ranlib .libs/libcdirect.a
libtool: link: ( cd ".libs" && rm -f "libcdirect.la" && ln -s "../libcdirect.la" "libcdirect.la" )
Making all in stogo
/bin/sh ../libtool  --tag=CXX   --mode=compile clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I..  -I../util -I../api   -g -O2 -MT global.lo -MD -MP -MF .deps/global.Tpo -c -o global.lo global.cc
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../util -I../api -g -O2 -MT global.lo -MD -MP -MF .deps/global.Tpo -c global.cc  -fno-common -DPIC -o .libs/global.o
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../util -I../api -g -O2 -MT global.lo -MD -MP -MF .deps/global.Tpo -c global.cc -o global.o >/dev/null 2>&1
mv -f .deps/global.Tpo .deps/global.Plo
/bin/sh ../libtool  --tag=CXX   --mode=compile clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I..  -I../util -I../api   -g -O2 -MT linalg.lo -MD -MP -MF .deps/linalg.Tpo -c -o linalg.lo linalg.cc
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../util -I../api -g -O2 -MT linalg.lo -MD -MP -MF .deps/linalg.Tpo -c linalg.cc  -fno-common -DPIC -o .libs/linalg.o
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../util -I../api -g -O2 -MT linalg.lo -MD -MP -MF .deps/linalg.Tpo -c linalg.cc -o linalg.o >/dev/null 2>&1
mv -f .deps/linalg.Tpo .deps/linalg.Plo
/bin/sh ../libtool  --tag=CXX   --mode=compile clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I..  -I../util -I../api   -g -O2 -MT local.lo -MD -MP -MF .deps/local.Tpo -c -o local.lo local.cc
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../util -I../api -g -O2 -MT local.lo -MD -MP -MF .deps/local.Tpo -c local.cc  -fno-common -DPIC -o .libs/local.o
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../util -I../api -g -O2 -MT local.lo -MD -MP -MF .deps/local.Tpo -c local.cc -o local.o >/dev/null 2>&1
mv -f .deps/local.Tpo .deps/local.Plo
/bin/sh ../libtool  --tag=CXX   --mode=compile clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I..  -I../util -I../api   -g -O2 -MT stogo.lo -MD -MP -MF .deps/stogo.Tpo -c -o stogo.lo stogo.cc
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../util -I../api -g -O2 -MT stogo.lo -MD -MP -MF .deps/stogo.Tpo -c stogo.cc  -fno-common -DPIC -o .libs/stogo.o
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../util -I../api -g -O2 -MT stogo.lo -MD -MP -MF .deps/stogo.Tpo -c stogo.cc -o stogo.o >/dev/null 2>&1
mv -f .deps/stogo.Tpo .deps/stogo.Plo
/bin/sh ../libtool  --tag=CXX   --mode=compile clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I..  -I../util -I../api   -g -O2 -MT tools.lo -MD -MP -MF .deps/tools.Tpo -c -o tools.lo tools.cc
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../util -I../api -g -O2 -MT tools.lo -MD -MP -MF .deps/tools.Tpo -c tools.cc  -fno-common -DPIC -o .libs/tools.o
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../util -I../api -g -O2 -MT tools.lo -MD -MP -MF .deps/tools.Tpo -c tools.cc -o tools.o >/dev/null 2>&1
mv -f .deps/tools.Tpo .deps/tools.Plo
/bin/sh ../libtool  --tag=CXX   --mode=link clang++ -std=gnu++11  -g -O2   -o libstogo.la  global.lo linalg.lo local.lo stogo.lo tools.lo  -lm 
libtool: link: ar cru .libs/libstogo.a .libs/global.o .libs/linalg.o .libs/local.o .libs/stogo.o .libs/tools.o 
libtool: link: ranlib .libs/libstogo.a
libtool: link: ( cd ".libs" && rm -f "libstogo.la" && ln -s "../libstogo.la" "libstogo.la" )
Making all in praxis
/bin/sh ../libtool  --tag=CC   --mode=compile clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I..  -I../util -I../api   -g -O2 -MT praxis.lo -MD -MP -MF .deps/praxis.Tpo -c -o praxis.lo praxis.c
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../util -I../api -g -O2 -MT praxis.lo -MD -MP -MF .deps/praxis.Tpo -c praxis.c  -fno-common -DPIC -o .libs/praxis.o
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../util -I../api -g -O2 -MT praxis.lo -MD -MP -MF .deps/praxis.Tpo -c praxis.c -o praxis.o >/dev/null 2>&1
mv -f .deps/praxis.Tpo .deps/praxis.Plo
/bin/sh ../libtool  --tag=CC   --mode=link clang++ -std=gnu++11  -g -O2   -o libpraxis.la  praxis.lo  -lm 
libtool: link: ar cru .libs/libpraxis.a .libs/praxis.o 
libtool: link: ranlib .libs/libpraxis.a
libtool: link: ( cd ".libs" && rm -f "libpraxis.la" && ln -s "../libpraxis.la" "libpraxis.la" )
Making all in luksan
/bin/sh ../libtool  --tag=CC   --mode=compile clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I..  -I../util -I../api   -g -O2 -MT plis.lo -MD -MP -MF .deps/plis.Tpo -c -o plis.lo plis.c
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../util -I../api -g -O2 -MT plis.lo -MD -MP -MF .deps/plis.Tpo -c plis.c  -fno-common -DPIC -o .libs/plis.o
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../util -I../api -g -O2 -MT plis.lo -MD -MP -MF .deps/plis.Tpo -c plis.c -o plis.o >/dev/null 2>&1
mv -f .deps/plis.Tpo .deps/plis.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I..  -I../util -I../api   -g -O2 -MT plip.lo -MD -MP -MF .deps/plip.Tpo -c -o plip.lo plip.c
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../util -I../api -g -O2 -MT plip.lo -MD -MP -MF .deps/plip.Tpo -c plip.c  -fno-common -DPIC -o .libs/plip.o
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../util -I../api -g -O2 -MT plip.lo -MD -MP -MF .deps/plip.Tpo -c plip.c -o plip.o >/dev/null 2>&1
mv -f .deps/plip.Tpo .deps/plip.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I..  -I../util -I../api   -g -O2 -MT pnet.lo -MD -MP -MF .deps/pnet.Tpo -c -o pnet.lo pnet.c
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../util -I../api -g -O2 -MT pnet.lo -MD -MP -MF .deps/pnet.Tpo -c pnet.c  -fno-common -DPIC -o .libs/pnet.o
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../util -I../api -g -O2 -MT pnet.lo -MD -MP -MF .deps/pnet.Tpo -c pnet.c -o pnet.o >/dev/null 2>&1
mv -f .deps/pnet.Tpo .deps/pnet.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I..  -I../util -I../api   -g -O2 -MT mssubs.lo -MD -MP -MF .deps/mssubs.Tpo -c -o mssubs.lo mssubs.c
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../util -I../api -g -O2 -MT mssubs.lo -MD -MP -MF .deps/mssubs.Tpo -c mssubs.c  -fno-common -DPIC -o .libs/mssubs.o
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../util -I../api -g -O2 -MT mssubs.lo -MD -MP -MF .deps/mssubs.Tpo -c mssubs.c -o mssubs.o >/dev/null 2>&1
mv -f .deps/mssubs.Tpo .deps/mssubs.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I..  -I../util -I../api   -g -O2 -MT pssubs.lo -MD -MP -MF .deps/pssubs.Tpo -c -o pssubs.lo pssubs.c
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../util -I../api -g -O2 -MT pssubs.lo -MD -MP -MF .deps/pssubs.Tpo -c pssubs.c  -fno-common -DPIC -o .libs/pssubs.o
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../util -I../api -g -O2 -MT pssubs.lo -MD -MP -MF .deps/pssubs.Tpo -c pssubs.c -o pssubs.o >/dev/null 2>&1
mv -f .deps/pssubs.Tpo .deps/pssubs.Plo
/bin/sh ../libtool  --tag=CC   --mode=link clang++ -std=gnu++11  -g -O2   -o libluksan.la  plis.lo plip.lo pnet.lo mssubs.lo pssubs.lo  -lm 
libtool: link: ar cru .libs/libluksan.a .libs/plis.o .libs/plip.o .libs/pnet.o .libs/mssubs.o .libs/pssubs.o 
libtool: link: ranlib .libs/libluksan.a
libtool: link: ( cd ".libs" && rm -f "libluksan.la" && ln -s "../libluksan.la" "libluksan.la" )
Making all in crs
/bin/sh ../libtool  --tag=CC   --mode=compile clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I..  -I../util -I../api   -g -O2 -MT crs.lo -MD -MP -MF .deps/crs.Tpo -c -o crs.lo crs.c
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../util -I../api -g -O2 -MT crs.lo -MD -MP -MF .deps/crs.Tpo -c crs.c  -fno-common -DPIC -o .libs/crs.o
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../util -I../api -g -O2 -MT crs.lo -MD -MP -MF .deps/crs.Tpo -c crs.c -o crs.o >/dev/null 2>&1
mv -f .deps/crs.Tpo .deps/crs.Plo
/bin/sh ../libtool  --tag=CC   --mode=link clang++ -std=gnu++11  -g -O2   -o libcrs.la  crs.lo  -lm 
libtool: link: ar cru .libs/libcrs.a .libs/crs.o 
libtool: link: ranlib .libs/libcrs.a
libtool: link: ( cd ".libs" && rm -f "libcrs.la" && ln -s "../libcrs.la" "libcrs.la" )
Making all in mlsl
/bin/sh ../libtool  --tag=CC   --mode=compile clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I..  -I../util -I../api   -g -O2 -MT mlsl.lo -MD -MP -MF .deps/mlsl.Tpo -c -o mlsl.lo mlsl.c
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../util -I../api -g -O2 -MT mlsl.lo -MD -MP -MF .deps/mlsl.Tpo -c mlsl.c  -fno-common -DPIC -o .libs/mlsl.o
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../util -I../api -g -O2 -MT mlsl.lo -MD -MP -MF .deps/mlsl.Tpo -c mlsl.c -o mlsl.o >/dev/null 2>&1
mv -f .deps/mlsl.Tpo .deps/mlsl.Plo
/bin/sh ../libtool  --tag=CC   --mode=link clang++ -std=gnu++11  -g -O2   -o libmlsl.la  mlsl.lo  -lm 
libtool: link: ar cru .libs/libmlsl.a .libs/mlsl.o 
libtool: link: ranlib .libs/libmlsl.a
libtool: link: ( cd ".libs" && rm -f "libmlsl.la" && ln -s "../libmlsl.la" "libmlsl.la" )
Making all in mma
/bin/sh ../libtool  --tag=CC   --mode=compile clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I..  -I../util -I../api   -g -O2 -MT mma.lo -MD -MP -MF .deps/mma.Tpo -c -o mma.lo mma.c
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../util -I../api -g -O2 -MT mma.lo -MD -MP -MF .deps/mma.Tpo -c mma.c  -fno-common -DPIC -o .libs/mma.o
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../util -I../api -g -O2 -MT mma.lo -MD -MP -MF .deps/mma.Tpo -c mma.c -o mma.o >/dev/null 2>&1
mv -f .deps/mma.Tpo .deps/mma.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I..  -I../util -I../api   -g -O2 -MT ccsa_quadratic.lo -MD -MP -MF .deps/ccsa_quadratic.Tpo -c -o ccsa_quadratic.lo ccsa_quadratic.c
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../util -I../api -g -O2 -MT ccsa_quadratic.lo -MD -MP -MF .deps/ccsa_quadratic.Tpo -c ccsa_quadratic.c  -fno-common -DPIC -o .libs/ccsa_quadratic.o
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../util -I../api -g -O2 -MT ccsa_quadratic.lo -MD -MP -MF .deps/ccsa_quadratic.Tpo -c ccsa_quadratic.c -o ccsa_quadratic.o >/dev/null 2>&1
mv -f .deps/ccsa_quadratic.Tpo .deps/ccsa_quadratic.Plo
/bin/sh ../libtool  --tag=CC   --mode=link clang++ -std=gnu++11  -g -O2   -o libmma.la  mma.lo ccsa_quadratic.lo  -lm 
libtool: link: ar cru .libs/libmma.a .libs/mma.o .libs/ccsa_quadratic.o 
libtool: link: ranlib .libs/libmma.a
libtool: link: ( cd ".libs" && rm -f "libmma.la" && ln -s "../libmma.la" "libmma.la" )
Making all in cobyla
/bin/sh ../libtool  --tag=CC   --mode=compile clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I..  -I../util -I../api   -g -O2 -MT cobyla.lo -MD -MP -MF .deps/cobyla.Tpo -c -o cobyla.lo cobyla.c
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../util -I../api -g -O2 -MT cobyla.lo -MD -MP -MF .deps/cobyla.Tpo -c cobyla.c  -fno-common -DPIC -o .libs/cobyla.o
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../util -I../api -g -O2 -MT cobyla.lo -MD -MP -MF .deps/cobyla.Tpo -c cobyla.c -o cobyla.o >/dev/null 2>&1
mv -f .deps/cobyla.Tpo .deps/cobyla.Plo
/bin/sh ../libtool  --tag=CC   --mode=link clang++ -std=gnu++11  -g -O2   -o libcobyla.la  cobyla.lo  -lm 
libtool: link: ar cru .libs/libcobyla.a .libs/cobyla.o 
libtool: link: ranlib .libs/libcobyla.a
libtool: link: ( cd ".libs" && rm -f "libcobyla.la" && ln -s "../libcobyla.la" "libcobyla.la" )
Making all in newuoa
/bin/sh ../libtool  --tag=CC   --mode=compile clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I..  -I../util -I../api   -g -O2 -MT newuoa.lo -MD -MP -MF .deps/newuoa.Tpo -c -o newuoa.lo newuoa.c
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../util -I../api -g -O2 -MT newuoa.lo -MD -MP -MF .deps/newuoa.Tpo -c newuoa.c  -fno-common -DPIC -o .libs/newuoa.o
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
newuoa.c:184:9: warning: 'nlopt_minimize_constrained' is deprecated [-Wdeprecated-declarations]
         ret = nlopt_minimize_constrained(NLOPT_LD_MMA, *n, quad_model, &qmd,
               ^
../api/nlopt.h:348:35: note: 'nlopt_minimize_constrained' has been explicitly marked deprecated here
     int maxeval, double maxtime) NLOPT_DEPRECATED;
                                  ^
../api/nlopt.h:320:43: note: expanded from macro 'NLOPT_DEPRECATED'
#  define NLOPT_DEPRECATED __attribute__((deprecated))
                                          ^
newuoa.c:1241:10: warning: 'nlopt_minimize_constrained' is deprecated [-Wdeprecated-declarations]
         return nlopt_minimize_constrained(NLOPT_LD_MMA, *n, lag, &ld,
                ^
../api/nlopt.h:348:35: note: 'nlopt_minimize_constrained' has been explicitly marked deprecated here
     int maxeval, double maxtime) NLOPT_DEPRECATED;
                                  ^
../api/nlopt.h:320:43: note: expanded from macro 'NLOPT_DEPRECATED'
#  define NLOPT_DEPRECATED __attribute__((deprecated))
                                          ^
2 warnings generated.
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../util -I../api -g -O2 -MT newuoa.lo -MD -MP -MF .deps/newuoa.Tpo -c newuoa.c -o newuoa.o >/dev/null 2>&1
mv -f .deps/newuoa.Tpo .deps/newuoa.Plo
/bin/sh ../libtool  --tag=CC   --mode=link clang++ -std=gnu++11  -g -O2   -o libnewuoa.la  newuoa.lo  -lm 
libtool: link: ar cru .libs/libnewuoa.a .libs/newuoa.o 
libtool: link: ranlib .libs/libnewuoa.a
libtool: link: ( cd ".libs" && rm -f "libnewuoa.la" && ln -s "../libnewuoa.la" "libnewuoa.la" )
Making all in neldermead
/bin/sh ../libtool  --tag=CC   --mode=compile clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I..  -I../util -I../api   -g -O2 -MT nldrmd.lo -MD -MP -MF .deps/nldrmd.Tpo -c -o nldrmd.lo nldrmd.c
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../util -I../api -g -O2 -MT nldrmd.lo -MD -MP -MF .deps/nldrmd.Tpo -c nldrmd.c  -fno-common -DPIC -o .libs/nldrmd.o
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../util -I../api -g -O2 -MT nldrmd.lo -MD -MP -MF .deps/nldrmd.Tpo -c nldrmd.c -o nldrmd.o >/dev/null 2>&1
mv -f .deps/nldrmd.Tpo .deps/nldrmd.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I..  -I../util -I../api   -g -O2 -MT sbplx.lo -MD -MP -MF .deps/sbplx.Tpo -c -o sbplx.lo sbplx.c
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../util -I../api -g -O2 -MT sbplx.lo -MD -MP -MF .deps/sbplx.Tpo -c sbplx.c  -fno-common -DPIC -o .libs/sbplx.o
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../util -I../api -g -O2 -MT sbplx.lo -MD -MP -MF .deps/sbplx.Tpo -c sbplx.c -o sbplx.o >/dev/null 2>&1
mv -f .deps/sbplx.Tpo .deps/sbplx.Plo
/bin/sh ../libtool  --tag=CC   --mode=link clang++ -std=gnu++11  -g -O2   -o libneldermead.la  nldrmd.lo sbplx.lo  -lm 
libtool: link: ar cru .libs/libneldermead.a .libs/nldrmd.o .libs/sbplx.o 
libtool: link: ranlib .libs/libneldermead.a
libtool: link: ( cd ".libs" && rm -f "libneldermead.la" && ln -s "../libneldermead.la" "libneldermead.la" )
Making all in auglag
/bin/sh ../libtool  --tag=CC   --mode=compile clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I..  -I../util -I../api   -g -O2 -MT auglag.lo -MD -MP -MF .deps/auglag.Tpo -c -o auglag.lo auglag.c
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../util -I../api -g -O2 -MT auglag.lo -MD -MP -MF .deps/auglag.Tpo -c auglag.c  -fno-common -DPIC -o .libs/auglag.o
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../util -I../api -g -O2 -MT auglag.lo -MD -MP -MF .deps/auglag.Tpo -c auglag.c -o auglag.o >/dev/null 2>&1
mv -f .deps/auglag.Tpo .deps/auglag.Plo
/bin/sh ../libtool  --tag=CC   --mode=link clang++ -std=gnu++11  -g -O2   -o libauglag.la  auglag.lo  -lm 
libtool: link: ar cru .libs/libauglag.a .libs/auglag.o 
libtool: link: ranlib .libs/libauglag.a
libtool: link: ( cd ".libs" && rm -f "libauglag.la" && ln -s "../libauglag.la" "libauglag.la" )
Making all in bobyqa
/bin/sh ../libtool  --tag=CC   --mode=compile clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I..  -I../util -I../api   -g -O2 -MT bobyqa.lo -MD -MP -MF .deps/bobyqa.Tpo -c -o bobyqa.lo bobyqa.c
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../util -I../api -g -O2 -MT bobyqa.lo -MD -MP -MF .deps/bobyqa.Tpo -c bobyqa.c  -fno-common -DPIC -o .libs/bobyqa.o
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../util -I../api -g -O2 -MT bobyqa.lo -MD -MP -MF .deps/bobyqa.Tpo -c bobyqa.c -o bobyqa.o >/dev/null 2>&1
mv -f .deps/bobyqa.Tpo .deps/bobyqa.Plo
/bin/sh ../libtool  --tag=CC   --mode=link clang++ -std=gnu++11  -g -O2   -o libbobyqa.la  bobyqa.lo  -lm 
libtool: link: ar cru .libs/libbobyqa.a .libs/bobyqa.o 
libtool: link: ranlib .libs/libbobyqa.a
libtool: link: ( cd ".libs" && rm -f "libbobyqa.la" && ln -s "../libbobyqa.la" "libbobyqa.la" )
Making all in isres
/bin/sh ../libtool  --tag=CC   --mode=compile clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I..  -I../util -I../api   -g -O2 -MT isres.lo -MD -MP -MF .deps/isres.Tpo -c -o isres.lo isres.c
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../util -I../api -g -O2 -MT isres.lo -MD -MP -MF .deps/isres.Tpo -c isres.c  -fno-common -DPIC -o .libs/isres.o
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../util -I../api -g -O2 -MT isres.lo -MD -MP -MF .deps/isres.Tpo -c isres.c -o isres.o >/dev/null 2>&1
mv -f .deps/isres.Tpo .deps/isres.Plo
/bin/sh ../libtool  --tag=CC   --mode=link clang++ -std=gnu++11  -g -O2   -o libisres.la  isres.lo  -lm 
libtool: link: ar cru .libs/libisres.a .libs/isres.o 
libtool: link: ranlib .libs/libisres.a
libtool: link: ( cd ".libs" && rm -f "libisres.la" && ln -s "../libisres.la" "libisres.la" )
Making all in slsqp
/bin/sh ../libtool  --tag=CC   --mode=compile clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I..  -I../util -I../api   -g -O2 -MT slsqp.lo -MD -MP -MF .deps/slsqp.Tpo -c -o slsqp.lo slsqp.c
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../util -I../api -g -O2 -MT slsqp.lo -MD -MP -MF .deps/slsqp.Tpo -c slsqp.c  -fno-common -DPIC -o .libs/slsqp.o
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../util -I../api -g -O2 -MT slsqp.lo -MD -MP -MF .deps/slsqp.Tpo -c slsqp.c -o slsqp.o >/dev/null 2>&1
mv -f .deps/slsqp.Tpo .deps/slsqp.Plo
/bin/sh ../libtool  --tag=CC   --mode=link clang++ -std=gnu++11  -g -O2   -o libslsqp.la  slsqp.lo  -lm 
libtool: link: ar cru .libs/libslsqp.a .libs/slsqp.o 
libtool: link: ranlib .libs/libslsqp.a
libtool: link: ( cd ".libs" && rm -f "libslsqp.la" && ln -s "../libslsqp.la" "libslsqp.la" )
Making all in esch
/bin/sh ../libtool  --tag=CC   --mode=compile clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I..  -I../util -I../api   -g -O2 -MT esch.lo -MD -MP -MF .deps/esch.Tpo -c -o esch.lo esch.c
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../util -I../api -g -O2 -MT esch.lo -MD -MP -MF .deps/esch.Tpo -c esch.c  -fno-common -DPIC -o .libs/esch.o
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../util -I../api -g -O2 -MT esch.lo -MD -MP -MF .deps/esch.Tpo -c esch.c -o esch.o >/dev/null 2>&1
mv -f .deps/esch.Tpo .deps/esch.Plo
/bin/sh ../libtool  --tag=CC   --mode=link clang++ -std=gnu++11  -g -O2   -o libesch.la  esch.lo  -lm 
libtool: link: ar cru .libs/libesch.a .libs/esch.o 
libtool: link: ranlib .libs/libesch.a
libtool: link: ( cd ".libs" && rm -f "libesch.la" && ln -s "../libesch.la" "libesch.la" )
Making all in api
make  all-am
/bin/sh ../libtool  --tag=CC   --mode=compile clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I..  -I../cdirect -I../direct -I../stogo -I../praxis -I../lbfgs -I../luksan -I../crs -I../mlsl -I../mma -I../cobyla -I../newuoa -I../neldermead -I../auglag -I../bobyqa -I../isres -I../slsqp -I../esch -I../util   -g -O2 -MT general.lo -MD -MP -MF .deps/general.Tpo -c -o general.lo general.c
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../cdirect -I../direct -I../stogo -I../praxis -I../lbfgs -I../luksan -I../crs -I../mlsl -I../mma -I../cobyla -I../newuoa -I../neldermead -I../auglag -I../bobyqa -I../isres -I../slsqp -I../esch -I../util -g -O2 -MT general.lo -MD -MP -MF .deps/general.Tpo -c general.c  -fno-common -DPIC -o .libs/general.o
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
general.c:134:38: warning: 'syscall' is deprecated: first deprecated in macOS 10.12 - syscall(2) is unsupported; please switch to a supported interface. For SYS_kdebug_trace use kdebug_signpost(). [-Wdeprecated-declarations]
     nlopt_srand(nlopt_time_seed() + my_gettid() * 314159);
                                     ^
general.c:116:23: note: expanded from macro 'my_gettid'
#  define my_gettid() syscall(SYS_gettid)
                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/unistd.h:742:6: note: 'syscall' has been explicitly marked deprecated here
int      syscall(int, ...);
         ^
1 warning generated.
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../cdirect -I../direct -I../stogo -I../praxis -I../lbfgs -I../luksan -I../crs -I../mlsl -I../mma -I../cobyla -I../newuoa -I../neldermead -I../auglag -I../bobyqa -I../isres -I../slsqp -I../esch -I../util -g -O2 -MT general.lo -MD -MP -MF .deps/general.Tpo -c general.c -o general.o >/dev/null 2>&1
mv -f .deps/general.Tpo .deps/general.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I..  -I../cdirect -I../direct -I../stogo -I../praxis -I../lbfgs -I../luksan -I../crs -I../mlsl -I../mma -I../cobyla -I../newuoa -I../neldermead -I../auglag -I../bobyqa -I../isres -I../slsqp -I../esch -I../util   -g -O2 -MT options.lo -MD -MP -MF .deps/options.Tpo -c -o options.lo options.c
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../cdirect -I../direct -I../stogo -I../praxis -I../lbfgs -I../luksan -I../crs -I../mlsl -I../mma -I../cobyla -I../newuoa -I../neldermead -I../auglag -I../bobyqa -I../isres -I../slsqp -I../esch -I../util -g -O2 -MT options.lo -MD -MP -MF .deps/options.Tpo -c options.c  -fno-common -DPIC -o .libs/options.o
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../cdirect -I../direct -I../stogo -I../praxis -I../lbfgs -I../luksan -I../crs -I../mlsl -I../mma -I../cobyla -I../newuoa -I../neldermead -I../auglag -I../bobyqa -I../isres -I../slsqp -I../esch -I../util -g -O2 -MT options.lo -MD -MP -MF .deps/options.Tpo -c options.c -o options.o >/dev/null 2>&1
mv -f .deps/options.Tpo .deps/options.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I..  -I../cdirect -I../direct -I../stogo -I../praxis -I../lbfgs -I../luksan -I../crs -I../mlsl -I../mma -I../cobyla -I../newuoa -I../neldermead -I../auglag -I../bobyqa -I../isres -I../slsqp -I../esch -I../util   -g -O2 -MT optimize.lo -MD -MP -MF .deps/optimize.Tpo -c -o optimize.lo optimize.c
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../cdirect -I../direct -I../stogo -I../praxis -I../lbfgs -I../luksan -I../crs -I../mlsl -I../mma -I../cobyla -I../newuoa -I../neldermead -I../auglag -I../bobyqa -I../isres -I../slsqp -I../esch -I../util -g -O2 -MT optimize.lo -MD -MP -MF .deps/optimize.Tpo -c optimize.c  -fno-common -DPIC -o .libs/optimize.o
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../cdirect -I../direct -I../stogo -I../praxis -I../lbfgs -I../luksan -I../crs -I../mlsl -I../mma -I../cobyla -I../newuoa -I../neldermead -I../auglag -I../bobyqa -I../isres -I../slsqp -I../esch -I../util -g -O2 -MT optimize.lo -MD -MP -MF .deps/optimize.Tpo -c optimize.c -o optimize.o >/dev/null 2>&1
mv -f .deps/optimize.Tpo .deps/optimize.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I..  -I../cdirect -I../direct -I../stogo -I../praxis -I../lbfgs -I../luksan -I../crs -I../mlsl -I../mma -I../cobyla -I../newuoa -I../neldermead -I../auglag -I../bobyqa -I../isres -I../slsqp -I../esch -I../util   -g -O2 -MT deprecated.lo -MD -MP -MF .deps/deprecated.Tpo -c -o deprecated.lo deprecated.c
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../cdirect -I../direct -I../stogo -I../praxis -I../lbfgs -I../luksan -I../crs -I../mlsl -I../mma -I../cobyla -I../newuoa -I../neldermead -I../auglag -I../bobyqa -I../isres -I../slsqp -I../esch -I../util -g -O2 -MT deprecated.lo -MD -MP -MF .deps/deprecated.Tpo -c deprecated.c  -fno-common -DPIC -o .libs/deprecated.o
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../cdirect -I../direct -I../stogo -I../praxis -I../lbfgs -I../luksan -I../crs -I../mlsl -I../mma -I../cobyla -I../newuoa -I../neldermead -I../auglag -I../bobyqa -I../isres -I../slsqp -I../esch -I../util -g -O2 -MT deprecated.lo -MD -MP -MF .deps/deprecated.Tpo -c deprecated.c -o deprecated.o >/dev/null 2>&1
mv -f .deps/deprecated.Tpo .deps/deprecated.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I..  -I../cdirect -I../direct -I../stogo -I../praxis -I../lbfgs -I../luksan -I../crs -I../mlsl -I../mma -I../cobyla -I../newuoa -I../neldermead -I../auglag -I../bobyqa -I../isres -I../slsqp -I../esch -I../util   -g -O2 -MT f77api.lo -MD -MP -MF .deps/f77api.Tpo -c -o f77api.lo f77api.c
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../cdirect -I../direct -I../stogo -I../praxis -I../lbfgs -I../luksan -I../crs -I../mlsl -I../mma -I../cobyla -I../newuoa -I../neldermead -I../auglag -I../bobyqa -I../isres -I../slsqp -I../esch -I../util -g -O2 -MT f77api.lo -MD -MP -MF .deps/f77api.Tpo -c f77api.c  -fno-common -DPIC -o .libs/f77api.o
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
In file included from f77api.c:103:
./f77funcs.h:57:14: warning: 'nlopt_minimize_constrained' is deprecated [-Wdeprecated-declarations]
     *info = nlopt_minimize_constrained((nlopt_algorithm) *algorithm, 
             ^
./nlopt.h:348:35: note: 'nlopt_minimize_constrained' has been explicitly marked deprecated here
     int maxeval, double maxtime) NLOPT_DEPRECATED;
                                  ^
./nlopt.h:320:43: note: expanded from macro 'NLOPT_DEPRECATED'
#  define NLOPT_DEPRECATED __attribute__((deprecated))
                                          ^
In file included from f77api.c:103:
./f77funcs.h:96:6: warning: 'nlopt_get_local_search_algorithm' is deprecated [-Wdeprecated-declarations]
     nlopt_get_local_search_algorithm(&deriv, &nonderiv, maxeval);
     ^
./nlopt.h:365:25: note: 'nlopt_get_local_search_algorithm' has been explicitly marked deprecated here
                                             int *maxeval) NLOPT_DEPRECATED;
                                                           ^
./nlopt.h:320:43: note: expanded from macro 'NLOPT_DEPRECATED'
#  define NLOPT_DEPRECATED __attribute__((deprecated))
                                          ^
In file included from f77api.c:103:
./f77funcs.h:104:6: warning: 'nlopt_set_local_search_algorithm' is deprecated [-Wdeprecated-declarations]
     nlopt_set_local_search_algorithm(deriv, nonderiv, *maxeval);
     ^
./nlopt.h:368:24: note: 'nlopt_set_local_search_algorithm' has been explicitly marked deprecated here
                                             int maxeval) NLOPT_DEPRECATED;
                                                          ^
./nlopt.h:320:43: note: expanded from macro 'NLOPT_DEPRECATED'
#  define NLOPT_DEPRECATED __attribute__((deprecated))
                                          ^
In file included from f77api.c:103:
./f77funcs.h:109:13: warning: 'nlopt_get_stochastic_population' is deprecated [-Wdeprecated-declarations]
     *pop = nlopt_get_stochastic_population();
            ^
./nlopt.h:370:57: note: 'nlopt_get_stochastic_population' has been explicitly marked deprecated here
NLOPT_EXTERN(int) nlopt_get_stochastic_population(void) NLOPT_DEPRECATED;
                                                        ^
./nlopt.h:320:43: note: expanded from macro 'NLOPT_DEPRECATED'
#  define NLOPT_DEPRECATED __attribute__((deprecated))
                                          ^
In file included from f77api.c:103:
./f77funcs.h:113:6: warning: 'nlopt_set_stochastic_population' is deprecated [-Wdeprecated-declarations]
     nlopt_set_stochastic_population(*pop);
     ^
./nlopt.h:371:61: note: 'nlopt_set_stochastic_population' has been explicitly marked deprecated here
NLOPT_EXTERN(void) nlopt_set_stochastic_population(int pop) NLOPT_DEPRECATED;
                                                            ^
./nlopt.h:320:43: note: expanded from macro 'NLOPT_DEPRECATED'
#  define NLOPT_DEPRECATED __attribute__((deprecated))
                                          ^
In file included from f77api.c:114:
./f77funcs.h:57:14: warning: 'nlopt_minimize_constrained' is deprecated [-Wdeprecated-declarations]
     *info = nlopt_minimize_constrained((nlopt_algorithm) *algorithm, 
             ^
./nlopt.h:348:35: note: 'nlopt_minimize_constrained' has been explicitly marked deprecated here
     int maxeval, double maxtime) NLOPT_DEPRECATED;
                                  ^
./nlopt.h:320:43: note: expanded from macro 'NLOPT_DEPRECATED'
#  define NLOPT_DEPRECATED __attribute__((deprecated))
                                          ^
In file included from f77api.c:114:
./f77funcs.h:96:6: warning: 'nlopt_get_local_search_algorithm' is deprecated [-Wdeprecated-declarations]
     nlopt_get_local_search_algorithm(&deriv, &nonderiv, maxeval);
     ^
./nlopt.h:365:25: note: 'nlopt_get_local_search_algorithm' has been explicitly marked deprecated here
                                             int *maxeval) NLOPT_DEPRECATED;
                                                           ^
./nlopt.h:320:43: note: expanded from macro 'NLOPT_DEPRECATED'
#  define NLOPT_DEPRECATED __attribute__((deprecated))
                                          ^
In file included from f77api.c:114:
./f77funcs.h:104:6: warning: 'nlopt_set_local_search_algorithm' is deprecated [-Wdeprecated-declarations]
     nlopt_set_local_search_algorithm(deriv, nonderiv, *maxeval);
     ^
./nlopt.h:368:24: note: 'nlopt_set_local_search_algorithm' has been explicitly marked deprecated here
                                             int maxeval) NLOPT_DEPRECATED;
                                                          ^
./nlopt.h:320:43: note: expanded from macro 'NLOPT_DEPRECATED'
#  define NLOPT_DEPRECATED __attribute__((deprecated))
                                          ^
In file included from f77api.c:114:
./f77funcs.h:109:13: warning: 'nlopt_get_stochastic_population' is deprecated [-Wdeprecated-declarations]
     *pop = nlopt_get_stochastic_population();
            ^
./nlopt.h:370:57: note: 'nlopt_get_stochastic_population' has been explicitly marked deprecated here
NLOPT_EXTERN(int) nlopt_get_stochastic_population(void) NLOPT_DEPRECATED;
                                                        ^
./nlopt.h:320:43: note: expanded from macro 'NLOPT_DEPRECATED'
#  define NLOPT_DEPRECATED __attribute__((deprecated))
                                          ^
In file included from f77api.c:114:
./f77funcs.h:113:6: warning: 'nlopt_set_stochastic_population' is deprecated [-Wdeprecated-declarations]
     nlopt_set_stochastic_population(*pop);
     ^
./nlopt.h:371:61: note: 'nlopt_set_stochastic_population' has been explicitly marked deprecated here
NLOPT_EXTERN(void) nlopt_set_stochastic_population(int pop) NLOPT_DEPRECATED;
                                                            ^
./nlopt.h:320:43: note: expanded from macro 'NLOPT_DEPRECATED'
#  define NLOPT_DEPRECATED __attribute__((deprecated))
                                          ^
In file included from f77api.c:129:
./f77funcs.h:57:14: warning: 'nlopt_minimize_constrained' is deprecated [-Wdeprecated-declarations]
     *info = nlopt_minimize_constrained((nlopt_algorithm) *algorithm, 
             ^
./nlopt.h:348:35: note: 'nlopt_minimize_constrained' has been explicitly marked deprecated here
     int maxeval, double maxtime) NLOPT_DEPRECATED;
                                  ^
./nlopt.h:320:43: note: expanded from macro 'NLOPT_DEPRECATED'
#  define NLOPT_DEPRECATED __attribute__((deprecated))
                                          ^
In file included from f77api.c:129:
./f77funcs.h:96:6: warning: 'nlopt_get_local_search_algorithm' is deprecated [-Wdeprecated-declarations]
     nlopt_get_local_search_algorithm(&deriv, &nonderiv, maxeval);
     ^
./nlopt.h:365:25: note: 'nlopt_get_local_search_algorithm' has been explicitly marked deprecated here
                                             int *maxeval) NLOPT_DEPRECATED;
                                                           ^
./nlopt.h:320:43: note: expanded from macro 'NLOPT_DEPRECATED'
#  define NLOPT_DEPRECATED __attribute__((deprecated))
                                          ^
In file included from f77api.c:129:
./f77funcs.h:104:6: warning: 'nlopt_set_local_search_algorithm' is deprecated [-Wdeprecated-declarations]
     nlopt_set_local_search_algorithm(deriv, nonderiv, *maxeval);
     ^
./nlopt.h:368:24: note: 'nlopt_set_local_search_algorithm' has been explicitly marked deprecated here
                                             int maxeval) NLOPT_DEPRECATED;
                                                          ^
./nlopt.h:320:43: note: expanded from macro 'NLOPT_DEPRECATED'
#  define NLOPT_DEPRECATED __attribute__((deprecated))
                                          ^
In file included from f77api.c:129:
./f77funcs.h:109:13: warning: 'nlopt_get_stochastic_population' is deprecated [-Wdeprecated-declarations]
     *pop = nlopt_get_stochastic_population();
            ^
./nlopt.h:370:57: note: 'nlopt_get_stochastic_population' has been explicitly marked deprecated here
NLOPT_EXTERN(int) nlopt_get_stochastic_population(void) NLOPT_DEPRECATED;
                                                        ^
./nlopt.h:320:43: note: expanded from macro 'NLOPT_DEPRECATED'
#  define NLOPT_DEPRECATED __attribute__((deprecated))
                                          ^
In file included from f77api.c:129:
./f77funcs.h:113:6: warning: 'nlopt_set_stochastic_population' is deprecated [-Wdeprecated-declarations]
     nlopt_set_stochastic_population(*pop);
     ^
./nlopt.h:371:61: note: 'nlopt_set_stochastic_population' has been explicitly marked deprecated here
NLOPT_EXTERN(void) nlopt_set_stochastic_population(int pop) NLOPT_DEPRECATED;
                                                            ^
./nlopt.h:320:43: note: expanded from macro 'NLOPT_DEPRECATED'
#  define NLOPT_DEPRECATED __attribute__((deprecated))
                                          ^
15 warnings generated.
libtool: compile:  clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../cdirect -I../direct -I../stogo -I../praxis -I../lbfgs -I../luksan -I../crs -I../mlsl -I../mma -I../cobyla -I../newuoa -I../neldermead -I../auglag -I../bobyqa -I../isres -I../slsqp -I../esch -I../util -g -O2 -MT f77api.lo -MD -MP -MF .deps/f77api.Tpo -c f77api.c -o f77api.o >/dev/null 2>&1
mv -f .deps/f77api.Tpo .deps/f77api.Plo
/bin/sh ../libtool  --tag=CC   --mode=link clang++ -std=gnu++11  -g -O2   -o libapi.la  general.lo options.lo optimize.lo deprecated.lo f77api.lo  -lm 
libtool: link: ar cru .libs/libapi.a .libs/general.o .libs/options.o .libs/optimize.o .libs/deprecated.o .libs/f77api.o 
libtool: link: ranlib .libs/libapi.a
libtool: link: ( cd ".libs" && rm -f "libapi.la" && ln -s "../libapi.la" "libapi.la" )
Making all in .
/bin/sh ./libtool  --tag=CC   --mode=link clang++ -std=gnu++11  -g -O2 -version-info 8:2:8  -o libnlopt_cxx.la -rpath /private/var/folders/3m/9xqby58x18n0twprskg685yr0000gn/T/Rtmpnl3P07/R.INSTALLd30c563462aa/nloptr/src/nlopt_src/lib  direct/libdirect.la cdirect/libcdirect.la stogo/libstogo.la praxis/libpraxis.la luksan/libluksan.la crs/libcrs.la mlsl/libmlsl.la mma/libmma.la cobyla/libcobyla.la newuoa/libnewuoa.la neldermead/libneldermead.la auglag/libauglag.la bobyqa/libbobyqa.la isres/libisres.la slsqp/libslsqp.la esch/libesch.la api/libapi.la util/libutil.la -lm 
libtool: link: clang -dynamiclib -Wl,-undefined -Wl,dynamic_lookup -o .libs/libnlopt_cxx.0.dylib   -Wl,-force_load,direct/.libs/libdirect.a -Wl,-force_load,cdirect/.libs/libcdirect.a -Wl,-force_load,stogo/.libs/libstogo.a -Wl,-force_load,praxis/.libs/libpraxis.a -Wl,-force_load,luksan/.libs/libluksan.a -Wl,-force_load,crs/.libs/libcrs.a -Wl,-force_load,mlsl/.libs/libmlsl.a -Wl,-force_load,mma/.libs/libmma.a -Wl,-force_load,cobyla/.libs/libcobyla.a -Wl,-force_load,newuoa/.libs/libnewuoa.a -Wl,-force_load,neldermead/.libs/libneldermead.a -Wl,-force_load,auglag/.libs/libauglag.a -Wl,-force_load,bobyqa/.libs/libbobyqa.a -Wl,-force_load,isres/.libs/libisres.a -Wl,-force_load,slsqp/.libs/libslsqp.a -Wl,-force_load,esch/.libs/libesch.a -Wl,-force_load,api/.libs/libapi.a -Wl,-force_load,util/.libs/libutil.a  -lm  -O2   -install_name  /private/var/folders/3m/9xqby58x18n0twprskg685yr0000gn/T/Rtmpnl3P07/R.INSTALLd30c563462aa/nloptr/src/nlopt_src/lib/libnlopt_cxx.0.dylib -compatibility_version 9 -current_version 9.2 -Wl,-single_module
libtool: link: (cd ".libs" && rm -f "libnlopt_cxx.dylib" && ln -s "libnlopt_cxx.0.dylib" "libnlopt_cxx.dylib")
libtool: link: (cd .libs/libnlopt_cxx.lax/libdirect.a && ar x "/private/var/folders/3m/9xqby58x18n0twprskg685yr0000gn/T/Rtmpnl3P07/R.INSTALLd30c563462aa/nloptr/src/nlopt_src/direct/.libs/libdirect.a")
libtool: link: (cd .libs/libnlopt_cxx.lax/libcdirect.a && ar x "/private/var/folders/3m/9xqby58x18n0twprskg685yr0000gn/T/Rtmpnl3P07/R.INSTALLd30c563462aa/nloptr/src/nlopt_src/cdirect/.libs/libcdirect.a")
libtool: link: (cd .libs/libnlopt_cxx.lax/libstogo.a && ar x "/private/var/folders/3m/9xqby58x18n0twprskg685yr0000gn/T/Rtmpnl3P07/R.INSTALLd30c563462aa/nloptr/src/nlopt_src/stogo/.libs/libstogo.a")
libtool: link: (cd .libs/libnlopt_cxx.lax/libpraxis.a && ar x "/private/var/folders/3m/9xqby58x18n0twprskg685yr0000gn/T/Rtmpnl3P07/R.INSTALLd30c563462aa/nloptr/src/nlopt_src/praxis/.libs/libpraxis.a")
libtool: link: (cd .libs/libnlopt_cxx.lax/libluksan.a && ar x "/private/var/folders/3m/9xqby58x18n0twprskg685yr0000gn/T/Rtmpnl3P07/R.INSTALLd30c563462aa/nloptr/src/nlopt_src/luksan/.libs/libluksan.a")
libtool: link: (cd .libs/libnlopt_cxx.lax/libcrs.a && ar x "/private/var/folders/3m/9xqby58x18n0twprskg685yr0000gn/T/Rtmpnl3P07/R.INSTALLd30c563462aa/nloptr/src/nlopt_src/crs/.libs/libcrs.a")
libtool: link: (cd .libs/libnlopt_cxx.lax/libmlsl.a && ar x "/private/var/folders/3m/9xqby58x18n0twprskg685yr0000gn/T/Rtmpnl3P07/R.INSTALLd30c563462aa/nloptr/src/nlopt_src/mlsl/.libs/libmlsl.a")
libtool: link: (cd .libs/libnlopt_cxx.lax/libmma.a && ar x "/private/var/folders/3m/9xqby58x18n0twprskg685yr0000gn/T/Rtmpnl3P07/R.INSTALLd30c563462aa/nloptr/src/nlopt_src/mma/.libs/libmma.a")
libtool: link: (cd .libs/libnlopt_cxx.lax/libcobyla.a && ar x "/private/var/folders/3m/9xqby58x18n0twprskg685yr0000gn/T/Rtmpnl3P07/R.INSTALLd30c563462aa/nloptr/src/nlopt_src/cobyla/.libs/libcobyla.a")
libtool: link: (cd .libs/libnlopt_cxx.lax/libnewuoa.a && ar x "/private/var/folders/3m/9xqby58x18n0twprskg685yr0000gn/T/Rtmpnl3P07/R.INSTALLd30c563462aa/nloptr/src/nlopt_src/newuoa/.libs/libnewuoa.a")
libtool: link: (cd .libs/libnlopt_cxx.lax/libneldermead.a && ar x "/private/var/folders/3m/9xqby58x18n0twprskg685yr0000gn/T/Rtmpnl3P07/R.INSTALLd30c563462aa/nloptr/src/nlopt_src/neldermead/.libs/libneldermead.a")
libtool: link: (cd .libs/libnlopt_cxx.lax/libauglag.a && ar x "/private/var/folders/3m/9xqby58x18n0twprskg685yr0000gn/T/Rtmpnl3P07/R.INSTALLd30c563462aa/nloptr/src/nlopt_src/auglag/.libs/libauglag.a")
libtool: link: (cd .libs/libnlopt_cxx.lax/libbobyqa.a && ar x "/private/var/folders/3m/9xqby58x18n0twprskg685yr0000gn/T/Rtmpnl3P07/R.INSTALLd30c563462aa/nloptr/src/nlopt_src/bobyqa/.libs/libbobyqa.a")
libtool: link: (cd .libs/libnlopt_cxx.lax/libisres.a && ar x "/private/var/folders/3m/9xqby58x18n0twprskg685yr0000gn/T/Rtmpnl3P07/R.INSTALLd30c563462aa/nloptr/src/nlopt_src/isres/.libs/libisres.a")
libtool: link: (cd .libs/libnlopt_cxx.lax/libslsqp.a && ar x "/private/var/folders/3m/9xqby58x18n0twprskg685yr0000gn/T/Rtmpnl3P07/R.INSTALLd30c563462aa/nloptr/src/nlopt_src/slsqp/.libs/libslsqp.a")
libtool: link: (cd .libs/libnlopt_cxx.lax/libesch.a && ar x "/private/var/folders/3m/9xqby58x18n0twprskg685yr0000gn/T/Rtmpnl3P07/R.INSTALLd30c563462aa/nloptr/src/nlopt_src/esch/.libs/libesch.a")
libtool: link: (cd .libs/libnlopt_cxx.lax/libapi.a && ar x "/private/var/folders/3m/9xqby58x18n0twprskg685yr0000gn/T/Rtmpnl3P07/R.INSTALLd30c563462aa/nloptr/src/nlopt_src/api/.libs/libapi.a")
libtool: link: (cd .libs/libnlopt_cxx.lax/libutil.a && ar x "/private/var/folders/3m/9xqby58x18n0twprskg685yr0000gn/T/Rtmpnl3P07/R.INSTALLd30c563462aa/nloptr/src/nlopt_src/util/.libs/libutil.a")
libtool: link: ar cru .libs/libnlopt_cxx.a   .libs/libnlopt_cxx.lax/libdirect.a/DIRect.o .libs/libnlopt_cxx.lax/libdirect.a/DIRserial.o .libs/libnlopt_cxx.lax/libdirect.a/DIRsubrout.o .libs/libnlopt_cxx.lax/libdirect.a/direct_wrap.o  .libs/libnlopt_cxx.lax/libcdirect.a/cdirect.o .libs/libnlopt_cxx.lax/libcdirect.a/hybrid.o  .libs/libnlopt_cxx.lax/libstogo.a/global.o .libs/libnlopt_cxx.lax/libstogo.a/linalg.o .libs/libnlopt_cxx.lax/libstogo.a/local.o .libs/libnlopt_cxx.lax/libstogo.a/stogo.o .libs/libnlopt_cxx.lax/libstogo.a/tools.o  .libs/libnlopt_cxx.lax/libpraxis.a/praxis.o  .libs/libnlopt_cxx.lax/libluksan.a/mssubs.o .libs/libnlopt_cxx.lax/libluksan.a/plip.o .libs/libnlopt_cxx.lax/libluksan.a/plis.o .libs/libnlopt_cxx.lax/libluksan.a/pnet.o .libs/libnlopt_cxx.lax/libluksan.a/pssubs.o  .libs/libnlopt_cxx.lax/libcrs.a/crs.o  .libs/libnlopt_cxx.lax/libmlsl.a/mlsl.o  .libs/libnlopt_cxx.lax/libmma.a/ccsa_quadratic.o .libs/libnlopt_cxx.lax/libmma.a/mma.o  .libs/libnlopt_cxx.lax/libcobyla.a/cobyla.o  .libs/libnlopt_cxx.lax/libnewuoa.a/newuoa.o  .libs/libnlopt_cxx.lax/libneldermead.a/nldrmd.o .libs/libnlopt_cxx.lax/libneldermead.a/sbplx.o  .libs/libnlopt_cxx.lax/libauglag.a/auglag.o  .libs/libnlopt_cxx.lax/libbobyqa.a/bobyqa.o  .libs/libnlopt_cxx.lax/libisres.a/isres.o  .libs/libnlopt_cxx.lax/libslsqp.a/slsqp.o  .libs/libnlopt_cxx.lax/libesch.a/esch.o  .libs/libnlopt_cxx.lax/libapi.a/deprecated.o .libs/libnlopt_cxx.lax/libapi.a/f77api.o .libs/libnlopt_cxx.lax/libapi.a/general.o .libs/libnlopt_cxx.lax/libapi.a/optimize.o .libs/libnlopt_cxx.lax/libapi.a/options.o  .libs/libnlopt_cxx.lax/libutil.a/mt19937ar.o .libs/libnlopt_cxx.lax/libutil.a/qsort_r.o .libs/libnlopt_cxx.lax/libutil.a/redblack.o .libs/libnlopt_cxx.lax/libutil.a/rescale.o .libs/libnlopt_cxx.lax/libutil.a/sobolseq.o .libs/libnlopt_cxx.lax/libutil.a/stop.o .libs/libnlopt_cxx.lax/libutil.a/timer.o 
libtool: link: ranlib .libs/libnlopt_cxx.a
libtool: link: rm -fr .libs/libnlopt_cxx.lax
libtool: link: ( cd ".libs" && rm -f "libnlopt_cxx.la" && ln -s "../libnlopt_cxx.la" "libnlopt_cxx.la" )
Making all in octave
echo "#define NLOPT_OPTIMIZE_USAGE \\" > nlopt_optimize_usage.h
sed 's/\"/\\"/g' ./nlopt_optimize.m | sed 's,^% ,\",;s,^%,\",;s,$,\\n\" \\,' >> nlopt_optimize_usage.h
echo "" >> nlopt_optimize_usage.h
make  all-am
clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I..  -I../api -I../util   -g -O2 -MT dummy.o -MD -MP -MF .deps/dummy.Tpo -c -o dummy.o dummy.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
mv -f .deps/dummy.Tpo .deps/dummy.Po
/bin/sh ../libtool  --tag=CC   --mode=link clang++ -std=gnu++11  -g -O2   -o dummy dummy.o  -lm 
libtool: link: clang++ -std=gnu++11 -g -O2 -o dummy dummy.o  -lm
Making all in test
clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I..  -I../api -I../util   -g -O2 -MT testfuncs.o -MD -MP -MF .deps/testfuncs.Tpo -c -o testfuncs.o testfuncs.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
mv -f .deps/testfuncs.Tpo .deps/testfuncs.Po
clang++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I..  -I../api -I../util   -g -O2 -MT testopt.o -MD -MP -MF .deps/testopt.Tpo -c -o testopt.o testopt.cpp
testopt.cpp:218:11: warning: 'nlopt_minimize' is deprecated [-Wdeprecated-declarations]
    ret = nlopt_minimize(algorithm,
          ^
../api/nlopt.h:337:35: note: 'nlopt_minimize' has been explicitly marked deprecated here
     int maxeval, double maxtime) NLOPT_DEPRECATED;
                                  ^
../api/nlopt.h:320:43: note: expanded from macro 'NLOPT_DEPRECATED'
#  define NLOPT_DEPRECATED __attribute__((deprecated))
                                          ^
1 warning generated.
mv -f .deps/testopt.Tpo .deps/testopt.Po
/bin/sh ../libtool  --tag=CXX   --mode=link clang++ -std=gnu++11  -g -O2   -o testopt testfuncs.o testopt.o ../libnlopt_cxx.la -lm 
libtool: link: clang++ -std=gnu++11 -g -O2 -o .libs/testopt testfuncs.o testopt.o -Wl,-bind_at_load  ../.libs/libnlopt_cxx.dylib -lm
Making install in util
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
Making install in direct
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
Making install in cdirect
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
Making install in stogo
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
Making install in praxis
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
Making install in luksan
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
Making install in crs
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
Making install in mlsl
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
Making install in mma
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
Making install in cobyla
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
Making install in newuoa
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
Making install in neldermead
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
Making install in auglag
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
Making install in bobyqa
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
Making install in isres
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
Making install in slsqp
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
Making install in esch
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
Making install in api
make  install-am
make[3]: Nothing to be done for `install-exec-am'.
 .././install-sh -c -d '/private/var/folders/3m/9xqby58x18n0twprskg685yr0000gn/T/Rtmpnl3P07/R.INSTALLd30c563462aa/nloptr/src/nlopt_src/include'
/bin/sh: .././install-sh: Permission denied
make[3]: *** [install-includeHEADERS] Error 1
make[2]: *** [install-am] Error 2
make[1]: *** [install] Error 2
make: *** [install-recursive] Error 1
ERROR: configuration failed for package ‘nloptr’
* removing ‘/Users/kinpodo/Library/R/3.6/library/nloptr’
Warning in install.packages :
  installation of package ‘nloptr’ had non-zero exit status
ERROR: dependency ‘nloptr’ is not available for package ‘lme4’
* removing ‘/Users/kinpodo/Library/R/3.6/library/lme4’
Warning in install.packages :
  installation of package ‘lme4’ had non-zero exit status
ERROR: dependency ‘lme4’ is not available for package ‘lmerTest’
* removing ‘/Users/kinpodo/Library/R/3.6/library/lmerTest’
Warning in install.packages :
  installation of package ‘lmerTest’ had non-zero exit status
ERROR: dependency ‘lmerTest’ is not available for package ‘tableone’
* removing ‘/Users/kinpodo/Library/R/3.6/library/tableone’
Warning in install.packages :
  installation of package ‘tableone’ had non-zero exit status

The downloaded source packages are in
	‘/private/var/folders/3m/9xqby58x18n0twprskg685yr0000gn/T/Rtmp9TY7Wm/downloaded_packages’
									
									

A. 依存関係を満たす必要があります

詳しくは後述しますが、homebrewとRの相性が悪いようで、しばしばこのようなエラーが生じるようです。

今回の場合、エラーコードを読んでいくと、インストールに必要な依存関係を満たせていないという以下のメッセージがありました。

checking nlopt.h usability... no
checking nlopt.h presence... no
checking for nlopt.h... no
configure: Need to configure and build NLopt

このことからNLoptが必要だとわかります。今回はhomebrew上でnloptのインストールをしてください

brew install nlopt

補足:homebrew版Rには問題があるという報告があります

homebrewでパッケージ版をインストールすべきかもしれません。

  • HomebrewでRをインストールのコメント欄
  • 上記のコメント欄で言及されている情報元[Homebrew’s R doesn’t have all the capabilities(Friday, 11 May 2018)]

    homebrewではRは一部の機能(tcl/tk、X11)をインストールできないかもしれません.そのため、tapを使用する必要があるとのことでした

  • 本書では関係ありませんが、tcl/tk依存の機能を利用する場合のエラー対応に困ったという話があります(R tcltk エラー

それなりに技術の必要な事柄が生じうるので、別の解決策は、Rを一旦アンインストールしてパッケージ版Rのインストーラを使うということになります。

tidyverseのインストールができません

Q. tidyverseをlibraryで読み込もうとすると、エラーがでました。環境は以下のとおりです

  • R version 3.6.2 (2019-12-12)
  • RStudio Version 1.2.5033
  • mac OS catalina 10.15.3
library(tidyverse)
>   エラー: package or namespace load failed for ‘tidyverse’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
>    ‘fs’ という名前のパッケージはありません 

A. 依存関係にあるパッケージ”fs”がインストールできていないのでtidyverseの読み込みができていない(tidyverseの構築ができていない)ようです

このようなケースでは、エラーメッセージを送っていただくと、こちらで検討することができます。今回のケースの場合、やりとりのなかで以下のエラーメッセージがあることがわかりました。

* installing *source* package ‘fs’ ...
**  パッケージ ‘fs’ の解凍および MD5 サムの検証に成功しました
** using staged installation
** libs
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
ERROR: compilation failed for package ‘fs’
* removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/fs’
Warning in install.packages :
   installation of package ‘fs’ had non-zero exit status

The downloaded source packages are in
‘/private/var/folders/3l/_dm2fjd95td5jvmylf1ymd4m0000gn/T/RtmpkNJ9tE/downloaded_packages’

xcrum、つまりXcode系のツールが見つかりませんというメッセージになります。解決策はXcodeのインストールです。ターミナル.appを開き、ターミナル版のxcode(パッケージ版でも大丈夫だと思いますが )を以下のコマンドで入力してインストールしてください。

xcode-select --install

その後tidyverseをインストールしていただければと思います。必要となったxcrumはCommand Line Tools for Xcodeの一部なので、統合環境であるXcodeパッケージすべてをインストールせずに、xcode-select --installだけで済ませる方法の紹介となりました。

tableoneがインストールできない2

Q tableoneをインストールしようとしたところ、data.tableが必要になったのですが、それもインストールできませんでした。どうしたらよいでしょうか?

  • Rのバージョン R version 3.6.3 (2020-02-29)
  • RStudioのバージョン 1.3.1073
  • ご利用されているOSとそのバージョン MacOS Catalina 10.15.7

tableoneをインストールしようとしたら以下のようなメッセージがでてインストールできませんでした。

install.packages("tableone")

  There is a binary version available but the source version is later:
         binary source needs_compilation
tableone 0.11.2 0.12.0             FALSE

installing the source package ‘tableone’

 URL 'https://cran.rstudio.com/src/contrib/tableone_0.12.0.tar.gz' を試して
います
Content type 'application/x-gzip' length 264682 bytes (258 KB)
==================================================
downloaded 258 KB

 要求されたパッケージ grDevices をロード中です
 要求されたパッケージ graphics をロード中です
 要求されたパッケージ stats をロード中です
 要求されたパッケージ utils をロード中です
 要求されたパッケージ splines をロード中です
 要求されたパッケージ RcmdrMisc をロード中です
 要求されたパッケージ car をロード中です
 要求されたパッケージ carData をロード中です
Error: package or namespace load failed for ‘car’ in loadNamespace(j <-
i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
  ‘data.table’ という名前のパッケージはありません
 エラー:  パッケージ ‘car’ をロードできませんでした
 実行が停止されました
Warning in install.packages :
  installation of package ‘tableone’ had non-zero exit status

The downloaded source packages are in

‘/private/var/folders/b5/kcgcg11100v6tcznlvj7vvc80000gp/T/RtmpHkb4Hh/downlo
aded_packages’

A. パッケージdate.tableをインストールする方法を検討します

まずtableoneパッケージをインストールするにあたり、data.tableがインストールできず、それゆえ、インストール済みの依存関係のあるcarがロードされないというメッセージでした。

こういうケースではまずdata.tableをインストールしてください。方法は2つ、バイナリをインストールすることを選択するか、コンパイルするための環境を設定するです。

バイナリをインストール

data.tableをインストールするときに以下のようなメッセージがコンソールに流れます

data.table install error on macosx #4702


install.packages("data.table")

  There is a binary version available but the source version is later:
           binary source needs_compilation
data.table 1.12.8 1.13.0              TRUE

Do you want to install from sources the package which needs compilation? (Yes/no/cancel) 
Do you want to install from sources the package which needs compilation? (Yes/no/cancel) というインタラクションのときに”no”を選択することで、ソースファイルからコンパイルすることなくdata.tableパッケージのインストールが可能です。つぎにコンパイルする方法を述べますが、みての通り煩雑ですので、バイナリを直接インストールするこの方法が一番簡単だと思われます。

data.tableがインストールできたら、つぎにtableoneをインストールしてください。

コンパイル環境を整える

githubを確認すると、data.tableの現行バージョンのインストールの要件にxcodeとOpenMPが書いてあります。具体的にはxcode-selectと、homebrewがマックにインストールされていればOKとのことです。(homebrew以外の選択肢もありますが、詳細はリンク先を確認してください).具体的な手順は以下のとおりです

  1. ターミナルでxcodeをインストールする(xcode-select --install)。すでにxcodeがインストールされていればいいですが、そうでない場合は必ずインストールしてください
  2. homebrewをインストールし、homebrewにllvmをインストール
    brew update
    brew install llvm
    brew install pkg-config
  3. Makevarsというテキストファイルを~/.R/以下にいれる
    #if you downloaded llvm manually above, replace with your chosen NEW_PATH/clang
    LLVM_LOC = /usr/local/opt/llvm
    CC=$(LLVM_LOC)/bin/clang -fopenmp
    CXX=$(LLVM_LOC)/bin/clang++ -fopenmp
    CXX11 = $(LLVM_LOC)/bin/clang++ -fopenmp # for fst package

    # -O3 should be faster than -O2 (default) level optimisation ..
    CFLAGS=-g -O3 -Wall -pedantic -std=gnu99 -mtune=native -pipe
    CXXFLAGS=-g -O3 -Wall -pedantic -std=c++11 -mtune=native -pipe
    LDFLAGS=-L/usr/local/opt/gettext/lib -L$(LLVM_LOC)/lib -Wl,-rpath,$(LLVM_LOC)/lib
    CPPFLAGS=-I/usr/local/opt/gettext/include -I$(LLVM_LOC)/include
  4. もう一度install.packages("data.table")

data.tableがインストールできたら、つぎにtableoneをインストールしてください。

Q.Windows10にパッケージがインストールできない。どうしたらいいですか


> install.packages("readr")

Warning in install.packages :

  'lib = "C:/Program Files/R/R-3.6.2/library"' is not writable

Warning in install.packages :

   ディレクトリ 'C:\Users\xxxx\OneDrive\??????' を作成できません、理由は 'Invalid argument' です 

Error in install.packages : unable to create ‘C:/Users/xxxx/OneDrive/??????/R/win-library/3.6’

R X64.3.6.2
Rstudio Version 1.3.1093
windows10 HOME 18363.1256

A.onedrive特有の問題のようです

エラーメッセージはonedriveのバックアップフォルダにディレクトリを作れない、ということのようです。

Rでの分析環境構築に同様の事例がありますので参照してください。

エラーメッセージがでます

P.96のコードに従うと、エラーメッセージがで、箱ひげ図が描画されません

Q. p96の指示通り、コードを入力しましたが、エラーが出てしまいました。どうしたらいいでしょうか


library(tidyverse)
library(tableone)
df <- read_csv("R_book_data.csv")
g_dist_3g <- ggplot(data = df, aes(x = factor(Treatment_3cat)
 + geom_boxplot(),
 y=LOS)) 
g_dist_3g
										

A. 記述に誤りがありました。2刷では修正します。

申し訳ございません。正しくは以下のコードになります。


library(tidyverse)
library(tableone)
df <- read_csv("R_book_data.csv")

g_dist_3g <- ggplot(data = df, 
				   aes(x = factor(Treatment_3cat), y = LOS)) + 
  geom_boxplot()
g_dist_3g
									

p156,158のコードに従うと、日本語のラベルが□□になります。

Q Mac環境で日本語のラベルを表示するにはどうしたらよいですか?

A. Mac 環境でplot関数を使うときの日本語表記をする方法の記載がありませんでした。申し訳ありません。

73頁にggplot2での日本語表記について書いていましたが、plot関数での対策について記載していなかったので、こちらで回答いたします。

一般的にはRの起動中に、環境変数を変更するpar関数を1回設定すれば、そのセッション中はMacでも日本語ラベルを利用することができます。

# ROC曲線の描画
par(family="HiraKakuProN-W3") # ヒラギノで描写します
plot(ROC1, identity = TRUE, print.thres = "best", main = "ROC",
     xlab = "1-特異度", ylab = "感度", legacy.axes = TRUE)								
# ROC曲線の描画
par(family="HiraKakuProN-W3") # ヒラギノで描写します
plot(ROC2, identity = TRUE, print.thres = "best", main = "ROC",
     xlab = "1-特異度", ylab = "感度", legacy.axes = TRUE)

par関数を使わないで、設定ファイル.Rprofileを設置する方法もありますが、本Q∧Aでは説明いたしません。