Closed mahmoudparsian closed 5 years ago
One possible issue is in the logs:
-- Package 'libffi', required by 'gobject-2.0', not found
CMake Error at /usr/local/Cellar/cmake/3.14.5/share/cmake/Modules/FindPkgConfig.cmake:457 (message):
A required package was not found
Call Stack (most recent call first):
/usr/local/Cellar/cmake/3.14.5/share/cmake/Modules/FindPkgConfig.cmake:642 (_pkg_check_modules_internal)
CMakeLists.txt:42 (pkg_check_modules)
-- Configuring incomplete, errors occurred!
See also "/Library/Ruby/Gems/2.3.0/gems/mathematical-1.6.12/ext/mathematical/lasem/build
Please install libffi
onto your system and try again!
Hello,
Please help: trying to install mathematical on macbook: log files are included:
$ sudo gem install mathematical Building native extensions. This could take a while... ERROR: Error installing mathematical: ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby -r ./siteconf20190627-6834-o5cdlq.rb extconf.rb checking for cmake... yes checking for main() in -lxml2... yes checking for main() in -lpangocairo-1.0... yes checking for libxml/tree.h in /include/libxml2,/usr/include/libxml2,/usr/local/include/libxml2... yes checking for libxml/parser.h in /include/libxml2,/usr/include/libxml2,/usr/local/include/libxml2... yes checking for libxml/xpath.h in /include/libxml2,/usr/include/libxml2,/usr/local/include/libxml2... yes checking for libxml/xpathInternals.h in /include/libxml2,/usr/include/libxml2,/usr/local/include/libxml2... yes -- The C compiler identification is AppleClang 10.0.1.10010046 -- The CXX compiler identification is AppleClang 10.0.1.10010046 -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found BISON: /usr/local/opt/bison/bin/bison (found version "3.4.1") -- Found FLEX: /usr/bin/flex (found version "2.5.35") -- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY -- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success -- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY -- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success -- Performing Test COMPILER_HAS_DEPRECATED_ATTR -- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success -- Found PythonInterp: /usr/bin/python (found version "2.7.10") -- Configuring done -- Generating done -- Build files have been written to: /Library/Ruby/Gems/2.3.0/gems/mathematical-1.6.12/ext/mathematical/mtex2MML/build [ 10%] [FLEX][MTEX2MMLSCANNER] Building scanner with flex 2.5.35 [ 20%] [BISON][MTEX2MMLPARSER] Building parser with bison 3.4.1 /Library/Ruby/Gems/2.3.0/gems/mathematical-1.6.12/ext/mathematical/mtex2MML/src/parser.y: warning: 5280 shift/reduce conflicts [-Wconflicts-sr] /Library/Ruby/Gems/2.3.0/gems/mathematical-1.6.12/ext/mathematical/mtex2MML/src/parser.y: warning: 613 reduce/reduce conflicts [-Wconflicts-rr] Scanning dependencies of target libmtex2MML_static [ 30%] Building C object CMakeFiles/libmtex2MML_static.dir/src/colors.c.o [ 40%] Building C object CMakeFiles/libmtex2MML_static.dir/src/em.c.o [ 50%] Building C object CMakeFiles/libmtex2MML_static.dir/src/environment.c.o [ 60%] Building C object CMakeFiles/libmtex2MML_static.dir/src/string_dup.c.o [ 70%] Building C object CMakeFiles/libmtex2MML_static.dir/src/string_extras.c.o [ 80%] Building C object CMakeFiles/libmtex2MML_static.dir/parser.c.o /Library/Ruby/Gems/2.3.0/gems/mathematical-1.6.12/ext/mathematical/mtex2MML/src/parser.y:56:30: warning: unused parameter 'ret_str' [-Wunused-parameter] static void yyerror (char *ret_str, const char s) ^ /Library/Ruby/Gems/2.3.0/gems/mathematical-1.6.12/ext/mathematical/mtex2MML/src/parser.y:68:14: warning: unused function 'mtex2MML_default_write' [-Wunused-function] static void mtex2MML_default_write (const char buffer, unsigned long length) ^ /Library/Ruby/Gems/2.3.0/gems/mathematical-1.6.12/ext/mathematical/mtex2MML/src/parser.y:79:14: warning: unused function 'mtex2MML_default_write_mathml' [-Wunused-function] static void mtex2MML_default_write_mathml (const char mathml) ^ 3 warnings generated. [ 90%] Building C object CMakeFiles/libmtex2MML_static.dir/lexer.c.o /Library/Ruby/Gems/2.3.0/gems/mathematical-1.6.12/ext/mathematical/mtex2MML/build/lexer.c:8203:16: warning: function 'input' is not needed and will not be emitted [-Wunneeded-internal-declaration] static int input (void) ^ 1 warning generated. [100%] Linking C static library libmtex2MML.a [100%] Built target libmtex2MML_static -- The C compiler identification is AppleClang 10.0.1.10010046 -- The CXX compiler identification is AppleClang 10.0.1.10010046 -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.29.2") -- Checking for module 'glib-2.0' -- Found glib-2.0, version 2.60.4 -- Checking for module 'cairo' -- Found cairo, version 1.14.6 -- Checking for module 'pango' -- Package 'libffi', required by 'gobject-2.0', not found CMake Error at /usr/local/Cellar/cmake/3.14.5/share/cmake/Modules/FindPkgConfig.cmake:457 (message): A required package was not found Call Stack (most recent call first): /usr/local/Cellar/cmake/3.14.5/share/cmake/Modules/FindPkgConfig.cmake:642 (_pkg_check_modules_internal) CMakeLists.txt:42 (pkg_check_modules)
-- Configuring incomplete, errors occurred! See also "/Library/Ruby/Gems/2.3.0/gems/mathematical-1.6.12/ext/mathematical/lasem/build/CMakeFiles/CMakeOutput.log". make: No targets specified and no makefile found. Stop. extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options.
Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/$(RUBY_BASE_NAME) --with-xml2lib --without-xml2lib --with-pangocairo-1.0lib --without-pangocairo-1.0lib --use-system-mtex2MML --use-system-lasem /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/fileutils.rb:1388:in'
copy': unknown file type: /Library/Ruby/Gems/2.3.0/gems/mathematical-1.6.12/ext/mathematical/lasem/build/liblasem.dylib (RuntimeError) from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/fileutils.rb:473:in
block in copy_entry' from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/fileutils.rb:1499:inwrap_traverse' from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/fileutils.rb:470:in
copy_entry' from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/fileutils.rb:445:inblock in cp_r' from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/fileutils.rb:1572:in
block in fu_each_src_dest' from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/fileutils.rb:1586:infu_each_src_dest0' from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/fileutils.rb:1570:in
fu_each_src_dest' from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/fileutils.rb:444:incp_r' from extconf.rb:98:in
To see why this extension failed to compile, please check the mkmf.log which can be found here:
/Library/Ruby/Gems/2.3.0/extensions/universal-darwin-18/2.3.0/mathematical-1.6.12/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in /Library/Ruby/Gems/2.3.0/gems/mathematical-1.6.12 for inspection. Results logged to /Library/Ruby/Gems/2.3.0/extensions/universal-darwin-18/2.3.0/mathematical-1.6.12/gem_make.out
$ cat /Library/Ruby/Gems/2.3.0/extensions/universal-darwin-18/2.3.0/mathematical-1.6.12/mkmf.log find_executable: checking for cmake... -------------------- yes
have_library: checking for main() in -lxml2... -------------------- yes
"xcrun clang -o conftest -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/universal-darwin18 -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/ruby/backward -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -g -Os -pipe -DHAVE_GCC_ATOMIC_BUILTINS conftest.c -L. -L/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib -L. -lruby.2.3.0 -lpthread -ldl -lobjc " checked program was: / begin / 1: #include "ruby.h" 2: 3: int main(int argc, char *argv) 4: { 5: return 0; 6: } / end */
"xcrun clang -o conftest -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/universal-darwin18 -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/ruby/backward -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -g -Os -pipe -DHAVE_GCC_ATOMIC_BUILTINS conftest.c -L. -L/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib -L. -lruby.2.3.0 -lxml2 -lpthread -ldl -lobjc " checked program was: / begin / 1: #include "ruby.h" 2: 3: /top/ 4: extern int t(void); 5: int main(int argc, char *argv) 6: { 7: if (argc > 1000000) { 8: printf("%p", &t); 9: } 10: 11: return 0; 12: } 13: int t(void) { void ((volatile p)()); p = (void (()()))main; return !p; } / end */
have_library: checking for main() in -lpangocairo-1.0... -------------------- yes
"xcrun clang -o conftest -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/universal-darwin18 -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/ruby/backward -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -g -Os -pipe -DHAVE_GCC_ATOMIC_BUILTINS conftest.c -L. -L/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib -L. -lxml2 -lruby.2.3.0 -lpangocairo-1.0 -lxml2 -lpthread -ldl -lobjc " checked program was: / begin / 1: #include "ruby.h" 2: 3: /top/ 4: extern int t(void); 5: int main(int argc, char *argv) 6: { 7: if (argc > 1000000) { 8: printf("%p", &t); 9: } 10: 11: return 0; 12: } 13: int t(void) { void ((volatile p)()); p = (void (()()))main; return !p; } / end */
find_header: checking for libxml/tree.h in /include/libxml2,/usr/include/libxml2,/usr/local/include/libxml2... -------------------- yes
"xcrun clang -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/universal-darwin18 -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/ruby/backward -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -g -Os -pipe -DHAVE_GCC_ATOMIC_BUILTINS -c conftest.c" checked program was: / begin / 1: #include "ruby.h" 2: 3: #include <libxml/tree.h> / end /
find_header: checking for libxml/parser.h in /include/libxml2,/usr/include/libxml2,/usr/local/include/libxml2... -------------------- yes
"xcrun clang -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/universal-darwin18 -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/ruby/backward -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -g -Os -pipe -DHAVE_GCC_ATOMIC_BUILTINS -c conftest.c" checked program was: / begin / 1: #include "ruby.h" 2: 3: #include <libxml/parser.h> / end /
find_header: checking for libxml/xpath.h in /include/libxml2,/usr/include/libxml2,/usr/local/include/libxml2... -------------------- yes
"xcrun clang -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/universal-darwin18 -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/ruby/backward -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -g -Os -pipe -DHAVE_GCC_ATOMIC_BUILTINS -c conftest.c" checked program was: / begin / 1: #include "ruby.h" 2: 3: #include <libxml/xpath.h> / end /
find_header: checking for libxml/xpathInternals.h in /include/libxml2,/usr/include/libxml2,/usr/local/include/libxml2... -------------------- yes
"xcrun clang -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/universal-darwin18 -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/ruby/backward -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -g -Os -pipe -DHAVE_GCC_ATOMIC_BUILTINS -c conftest.c" checked program was: / begin / 1: #include "ruby.h" 2: 3: #include <libxml/xpathInternals.h> / end /
$ cat /Library/Ruby/Gems/2.3.0/extensions/universal-darwin-18/2.3.0/mathematical-1.6.12/gem_make.out current directory: /Library/Ruby/Gems/2.3.0/gems/mathematical-1.6.12/ext/mathematical /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby -r ./siteconf20190627-6834-o5cdlq.rb extconf.rb checking for cmake... yes checking for main() in -lxml2... yes checking for main() in -lpangocairo-1.0... yes checking for libxml/tree.h in /include/libxml2,/usr/include/libxml2,/usr/local/include/libxml2... yes checking for libxml/parser.h in /include/libxml2,/usr/include/libxml2,/usr/local/include/libxml2... yes checking for libxml/xpath.h in /include/libxml2,/usr/include/libxml2,/usr/local/include/libxml2... yes checking for libxml/xpathInternals.h in /include/libxml2,/usr/include/libxml2,/usr/local/include/libxml2... yes -- The C compiler identification is AppleClang 10.0.1.10010046 -- The CXX compiler identification is AppleClang 10.0.1.10010046 -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found BISON: /usr/local/opt/bison/bin/bison (found version "3.4.1") -- Found FLEX: /usr/bin/flex (found version "2.5.35") -- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY -- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success -- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY -- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success -- Performing Test COMPILER_HAS_DEPRECATED_ATTR -- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success -- Found PythonInterp: /usr/bin/python (found version "2.7.10") -- Configuring done -- Generating done -- Build files have been written to: /Library/Ruby/Gems/2.3.0/gems/mathematical-1.6.12/ext/mathematical/mtex2MML/build [ 10%] [FLEX][MTEX2MMLSCANNER] Building scanner with flex 2.5.35 [ 20%] [BISON][MTEX2MMLPARSER] Building parser with bison 3.4.1 /Library/Ruby/Gems/2.3.0/gems/mathematical-1.6.12/ext/mathematical/mtex2MML/src/parser.y: warning: 5280 shift/reduce conflicts [-Wconflicts-sr] /Library/Ruby/Gems/2.3.0/gems/mathematical-1.6.12/ext/mathematical/mtex2MML/src/parser.y: warning: 613 reduce/reduce conflicts [-Wconflicts-rr] Scanning dependencies of target libmtex2MML_static [ 30%] Building C object CMakeFiles/libmtex2MML_static.dir/src/colors.c.o [ 40%] Building C object CMakeFiles/libmtex2MML_static.dir/src/em.c.o [ 50%] Building C object CMakeFiles/libmtex2MML_static.dir/src/environment.c.o [ 60%] Building C object CMakeFiles/libmtex2MML_static.dir/src/string_dup.c.o [ 70%] Building C object CMakeFiles/libmtex2MML_static.dir/src/string_extras.c.o [ 80%] Building C object CMakeFiles/libmtex2MML_static.dir/parser.c.o /Library/Ruby/Gems/2.3.0/gems/mathematical-1.6.12/ext/mathematical/mtex2MML/src/parser.y:56:30: warning: unused parameter 'ret_str' [-Wunused-parameter] static void yyerror (char *ret_str, const char s) ^ /Library/Ruby/Gems/2.3.0/gems/mathematical-1.6.12/ext/mathematical/mtex2MML/src/parser.y:68:14: warning: unused function 'mtex2MML_default_write' [-Wunused-function] static void mtex2MML_default_write (const char buffer, unsigned long length) ^ /Library/Ruby/Gems/2.3.0/gems/mathematical-1.6.12/ext/mathematical/mtex2MML/src/parser.y:79:14: warning: unused function 'mtex2MML_default_write_mathml' [-Wunused-function] static void mtex2MML_default_write_mathml (const char mathml) ^ 3 warnings generated. [ 90%] Building C object CMakeFiles/libmtex2MML_static.dir/lexer.c.o /Library/Ruby/Gems/2.3.0/gems/mathematical-1.6.12/ext/mathematical/mtex2MML/build/lexer.c:8203:16: warning: function 'input' is not needed and will not be emitted [-Wunneeded-internal-declaration] static int input (void) ^ 1 warning generated. [100%] Linking C static library libmtex2MML.a [100%] Built target libmtex2MML_static -- The C compiler identification is AppleClang 10.0.1.10010046 -- The CXX compiler identification is AppleClang 10.0.1.10010046 -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.29.2") -- Checking for module 'glib-2.0' -- Found glib-2.0, version 2.60.4 -- Checking for module 'cairo' -- Found cairo, version 1.14.6 -- Checking for module 'pango' -- Package 'libffi', required by 'gobject-2.0', not found CMake Error at /usr/local/Cellar/cmake/3.14.5/share/cmake/Modules/FindPkgConfig.cmake:457 (message): A required package was not found Call Stack (most recent call first): /usr/local/Cellar/cmake/3.14.5/share/cmake/Modules/FindPkgConfig.cmake:642 (_pkg_check_modules_internal) CMakeLists.txt:42 (pkg_check_modules)
-- Configuring incomplete, errors occurred! See also "/Library/Ruby/Gems/2.3.0/gems/mathematical-1.6.12/ext/mathematical/lasem/build/CMakeFiles/CMakeOutput.log". make: No targets specified and no makefile found. Stop. extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options.
Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/$(RUBY_BASE_NAME) --with-xml2lib --without-xml2lib --with-pangocairo-1.0lib --without-pangocairo-1.0lib --use-system-mtex2MML --use-system-lasem /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/fileutils.rb:1388:in'
copy': unknown file type: /Library/Ruby/Gems/2.3.0/gems/mathematical-1.6.12/ext/mathematical/lasem/build/liblasem.dylib (RuntimeError) from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/fileutils.rb:473:in
block in copy_entry' from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/fileutils.rb:1499:inwrap_traverse' from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/fileutils.rb:470:in
copy_entry' from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/fileutils.rb:445:inblock in cp_r' from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/fileutils.rb:1572:in
block in fu_each_src_dest' from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/fileutils.rb:1586:infu_each_src_dest0' from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/fileutils.rb:1570:in
fu_each_src_dest' from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/fileutils.rb:444:incp_r' from extconf.rb:98:in
To see why this extension failed to compile, please check the mkmf.log which can be found here:
/Library/Ruby/Gems/2.3.0/extensions/universal-darwin-18/2.3.0/mathematical-1.6.12/mkmf.log
extconf failed, exit code 1