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

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

Open
zacque0 opened this issue Oct 19, 2021 · 1 comment
Open

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

zacque0 opened this issue Oct 19, 2021 · 1 comment

Comments

@zacque0
Copy link

zacque0 commented Oct 19, 2021

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.

@zacque0
Copy link
Author

zacque0 commented Oct 19, 2021

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant