Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

asciidoctor-mathematical does not install on Big Sur #106

Open
elisa-riscv opened this issue Jun 15, 2021 · 0 comments
Open

asciidoctor-mathematical does not install on Big Sur #106

elisa-riscv opened this issue Jun 15, 2021 · 0 comments

Comments

@elisa-riscv
Copy link

I am copying Terminal output from several lines before the warning messages begin.

After upgrading to Big Sur and upgrading the command line tools to the latest version, I checked all of the dependencies for asciidoctor-mathematical.

It appears that there is a dependency on glib-2.0 but why?

...
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
-- Found PythonInterp: /usr/bin/python (found version "2.7.16")
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/storycraft/.rvm/gems/ruby-2.7.2/gems/mathematical-1.6.14/ext/mathematical/mtex2MML/build
[ 10%] [BISON][MTEX2MMLPARSER] Building parser with bison 2.3
conflicts: 5280 shift/reduce, 613 reduce/reduce
[ 20%] [FLEX][MTEX2MMLSCANNER] Building scanner with flex 2.6.4
[ 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
/Users/storycraft/.rvm/gems/ruby-2.7.2/gems/mathematical-1.6.14/ext/mathematical/mtex2MML/src/parser.y:56:30: warning: unused parameter 'ret_str' [-Wunused-parameter]
static void yyerror (char **ret_str, const char * s)
^
/Users/storycraft/.rvm/gems/ruby-2.7.2/gems/mathematical-1.6.14/ext/mathematical/mtex2MML/src/parser.y:3507:12: warning: cast to smaller integer type 'encaseType' from 'encaseType *' [-Wpointer-to-enum-cast]
encase = (encaseType) encase_pointer;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/storycraft/.rvm/gems/ruby-2.7.2/gems/mathematical-1.6.14/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)
^
/Users/storycraft/.rvm/gems/ruby-2.7.2/gems/mathematical-1.6.14/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)
^
4 warnings generated.
[ 90%] Building C object CMakeFiles/libmtex2MML_static.dir/lexer.c.o
/Users/storycraft/.rvm/gems/ruby-2.7.2/gems/mathematical-1.6.14/ext/mathematical/mtex2MML/build/lexer.c:8455: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 12.0.5.12050022
-- The CXX compiler identification is AppleClang 12.0.5.12050022
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Deprecation Warning at CMakeLists.txt:8 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

-- Found PkgConfig: /opt/local/bin/pkg-config (found version "0.29.1")
-- Checking for module 'glib-2.0'
-- No package 'glib-2.0' found
CMake Error at /Applications/CMake.app/Contents/share/cmake-3.20/Modules/FindPkgConfig.cmake:556 (message):
A required package was not found
Call Stack (most recent call first):
/Applications/CMake.app/Contents/share/cmake-3.20/Modules/FindPkgConfig.cmake:778 (_pkg_check_modules_internal)
CMakeLists.txt:41 (pkg_check_modules)

-- Configuring incomplete, errors occurred!
See also "/Users/storycraft/.rvm/gems/ruby-2.7.2/gems/mathematical-1.6.14/ext/mathematical/lasem/build/CMakeFiles/CMakeOutput.log".
See also "/Users/storycraft/.rvm/gems/ruby-2.7.2/gems/mathematical-1.6.14/ext/mathematical/lasem/build/CMakeFiles/CMakeError.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
--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=/Users/storycraft/.rvm/rubies/ruby-2.7.2/bin/$(RUBY_BASE_NAME)
--with-xml2-dir
--without-xml2-dir
--with-xml2-include
--without-xml2-include=${xml2-dir}/include
--with-xml2-lib
--without-xml2-lib=${xml2-dir}/lib
--with-xml2lib
--without-xml2lib
--with-pangocairo-1.0-dir
--without-pangocairo-1.0-dir
--with-pangocairo-1.0-include
--without-pangocairo-1.0-include=${pangocairo-1.0-dir}/include
--with-pangocairo-1.0-lib
--without-pangocairo-1.0-lib=${pangocairo-1.0-dir}/lib
--with-pangocairo-1.0lib
--without-pangocairo-1.0lib
--use-system-mtex2MML
--use-system-lasem
/Users/storycraft/.rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/fileutils.rb:491:in realpath': No such file or directory @ rb_check_realpath_internal - /Users/storycraft/.rvm/gems/ruby-2.7.2/gems/mathematical-1.6.14/ext/mathematical/lasem/build/liblasem.dylib (Errno::ENOENT) from /Users/storycraft/.rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/fileutils.rb:491:in copy_entry'
from /Users/storycraft/.rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/fileutils.rb:468:in block in cp_r' from /Users/storycraft/.rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/fileutils.rb:1589:in block in fu_each_src_dest'
from /Users/storycraft/.rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/fileutils.rb:1603:in fu_each_src_dest0' from /Users/storycraft/.rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/fileutils.rb:1587:in fu_each_src_dest'
from /Users/storycraft/.rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/fileutils.rb:467:in cp_r' from extconf.rb:99:in

'

To see why this extension failed to compile, please check the mkmf.log which can be found here:

/Users/storycraft/.rvm/gems/ruby-2.7.2/extensions/x86_64-darwin-18/2.7.0/mathematical-1.6.14/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in /Users/storycraft/.rvm/gems/ruby-2.7.2/gems/mathematical-1.6.14 for inspection.
Results logged to /Users/storycraft/.rvm/gems/ruby-2.7.2/extensions/x86_64-darwin-18/2.7.0/mathematical-1.6.14/gem_make.out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant