problem installing asciidoctor-mathematical gem

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

problem installing asciidoctor-mathematical gem

Elisa
This post was updated on .
I am hoping to get asciidoctor-mathematical to work for on my Mac, specifically for generating pdfs using the ruby build (we need the running headers and footers, etc).

I can see some discussion about asciidcotor-mathematical not working on Mac but I also saw that someone did get it working and think that perhaps there is a dependency that is not documented.

It looks like I might just need to know the correct location to place `glib2.0`

I'm looking at Mathoid and it looks like it's not intended for use with the Ruby asciidoctor-pdf. So if I can get the right dependencies and document them that will be great.

I have followed directions in https://github.com/asciidoctor/asciidoctor-mathematical, by installing prerequisites and fonts.

When I try to run gem install asciidoctor-mathematical, the install fails partway through.

The install instructions are a bit terse and I might have missed something. Please let me know what I need to do.

Here is what appears to be pertinent messaging from Terminal output:

...
-- 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 <min> value or use a ...<max> 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 /usr/local/Cellar/cmake/3.20.3/share/cmake/Modules/FindPkgConfig.cmake:556 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/local/Cellar/cmake/3.20.3/share/cmake/Modules/FindPkgConfig.cmake:778 (_pkg_check_modules_internal)
  CMakeLists.txt:41 (pkg_check_modules)



Reply | Threaded
Open this post in threaded view
|

Re: problem installing asciidoctor-mathematical gem

mojavelinux
Administrator
Elisa,

My position on this matter is that asciidoctor-mathematical cannot be installed on macOS. Here's my statement and my conditions:

https://github.com/asciidoctor/asciidoctor-mathematical/issues/81#issuecomment-732778678

Some users have reported being able to get it to work, but until we can get it working in CI, I'm not going to accept that it's possible.

Best Regards,

-Dan

On Thu, Jun 10, 2021 at 4:42 PM Elisa [via Asciidoctor :: Discussion] <[hidden email]> wrote:
I am hoping to get asciidoctor-mathematical to work for on my Mac, specifically for generating pdfs using the ruby build (we need the running headers and footers, etc).

I have followed directions in https://github.com/asciidoctor/asciidoctor-mathematical, by installing prerequisites and fonts.

When I try to run gem install asciidoctor-mathematical, the install fails partway through.

The install instructions are a bit terse and I might have missed something. Please let me know what I need to do.

Here is what appears to be pertinent messaging from Terminal output:

[ 10%] [BISON][MTEX2MMLPARSER] Building parser with bison 2.3
conflicts: 5280 shift/reduce, 613 reduce/reduce
[ 20%] [FLEX][MTEX2MMLSCANNER] Building scanner with flex 2.5.35
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
/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)



If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/problem-installing-asciidoctor-mathematical-gem-tp8647.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML


--
Dan Allen (he, him, his) | @mojavelinux | https://twitter.com/mojavelinux
Reply | Threaded
Open this post in threaded view
|

Re: problem installing asciidoctor-mathematical gem

mojavelinux
Administrator
Elisa,

I'm happy to report that the installation now works on macOS as verified by the CI build. The workflow file shows the steps required when using the latest version of macOS.


If that still gives you trouble, please report the problem to that repository.

Best Regards,

-Dan

--
Dan Allen (he, him, his) | @mojavelinux | https://twitter.com/mojavelinux