Skip to content

libiomp5.so patch not working for latest wolfram version #3

@aplr

Description

@aplr

The patch of libiomp5.so from #2 does not work for wolfram versions later than 13.0, as the directory has changed.

COPY --from=wolframresearch/wolframengine:12.3.1 \
/usr/local/Wolfram/WolframEngine/12.3/SystemFiles/Libraries/Linux-x86-64/libiomp5.so \
/usr/local/Wolfram/WolframEngine/13.0/SystemFiles/Libraries/Linux-x86-64/libiomp5.so

This should rather be something like:

ARG WOLFRAM_VERSION=13.3

// ...

FROM wolframresearch/wolframengine:${WOLFRAM_VERSION}

// ...

COPY --from=wolframresearch/wolframengine:12.3.1 \
  /usr/local/Wolfram/WolframEngine/12.3/SystemFiles/Libraries/Linux-x86-64/libiomp5.so \
  /usr/local/Wolfram/WolframEngine/${WOLFRAM_VERSION}/SystemFiles/Libraries/Linux-x86-64/libiomp5.so

I've temp. worked around it for now by doing the following in my final image:

FROM wolframresearch/aws-lambda-wolframlanguage:latest

USER root

RUN cp -f /usr/local/Wolfram/WolframEngine/13.0/SystemFiles/Libraries/Linux-x86-64/libiomp5.so \
    /usr/local/Wolfram/WolframEngine/13.3/SystemFiles/Libraries/Linux-x86-64/libiomp5.so

USER wolframengine

// ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions