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

realpath: command not found #17

Open
FrancoisAlexandreTremblay opened this issue Dec 12, 2023 · 1 comment
Open

realpath: command not found #17

FrancoisAlexandreTremblay opened this issue Dec 12, 2023 · 1 comment

Comments

@FrancoisAlexandreTremblay

I'm on MacOS Montery (version 12.6.6). I have Java runtime available and installed coreutils package with the Homebrew command. I have Minizinc IDE version 2.7.6.

I can run yuck in the terminal with this command line : minizinc --solver yuck vrp.mzn -v. I can use realpath . in the terminal also. There is no problem.

However when I try to do the same in the minizinc IDE, I get this error :

/Users/.../Downloads/yuck-20230623/bin/yuck: line 5: realpath: command not found
/Users/.../Downloads/yuck-20230623/bin/yuck: line 6: realpath: command not found
/Users/.../Downloads/yuck-20230623/bin/yuck: line 7: realpath: command not found
Error: Could not find or load main class yuck.flatzinc.runner.FlatZincRunner
Caused by: java.lang.ClassNotFoundException: yuck.flatzinc.runner.FlatZincRunner
=====ERROR=====
Process finished with non-zero exit code 1.

Any idea?

@informarte
Copy link
Owner

Did you start the IDE from a desktop shortcut? In this case, it might be that the PATH variable of the IDE process does not contain the directory where homebrew installs binaries. I suggest to run the IDE from the terminal.

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

2 participants