Skip to content

mosml should find $DESTDIR/usr/local/bin/camlrunm? #65

Open

Description

@zacque0

Hi, I have successfully built mosml after git clone. But after installing with:

$ DESTDIR=/tmp/mosml-install make install

if I try to execute mosml in that directory:

$ /tmp/mosml-install/usr/local/bin/mosml
/tmp/mosml-install/usr/local/bin/mosml: 11: exec: /usr/local/bin/camlrunm: not found

it gives me an error saying that camlrunm is not found.

I guess the path to camlrunm is hard-coded into mosml because camlrunm is installed to the same directory $DESTDIR/usr/local/bin/ as mosml.

Activity

  1. zacque0 commented on Oct 19, 2021

    @zacque0
    Author

    Followup

    mosml should find $PREFIX/bin/camlrunm as well.

    Steps:

    1. Edit src/Makefile.inc. Change the PREFIX path, e.g. /tmp/mosml-build.
    2. After make install, try to execute $PREFIX/bin/mosml will generate the same error: "/usr/local/bin/camlrunm: not found".

    Side-note:
    I recommend use PREFIX?=/usr/include in the src/Makefile.inc so that the PREFIX value from the environment can override the value defined in the makefile. E.g. I can do something like this:

    PREFIX=/tmp/mosml-build make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions