-
Notifications
You must be signed in to change notification settings - Fork 5
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
problem locating wolfram installation on Linux #27
Comments
Hi @strelda, thanks for filing this high quality issue! There are a few inherent complications with app discovery on Linux that make it somewhat trickier than on macOS and Windows, but it should in principle be possible for this to work when you've supplied an explicit I'll begin working on a fix, and update this issue once I've finished. |
Hi @strelda, I've just published v0.4.0 of wolfram-app-discovery, which adds support for Linux.
I'll note that the WOLFRAM_APP_DIRECTORY="/usr/local/Wolfram/Mathematica/13.0/" Please try it out and let me know if it works, so I'll know if I can mark this issue as resolved. Thanks! |
Thanks for your help, indeed you are right. Running
Essentially there are two problems with the function in src/os/linux.rs, as you call it a "very hacky way of getting information about an app on Linux" :) it is indeed a good idea but seems to break when either user has more Mathematica licenses or it is a Student license*. I might try to add rules which will fix my problem, but instead, it might be better to add an option to set this path manually (this might be just a workaround for specific use cases, of course, the meaning of the code is to find it). *In my case there is no LICENSE.txt, and the version folder /13.0/ is ignored in the code, so it searches the executable as |
Hi @strelda, I think there may be a conceptual confusion or miscommunication here regarding what we each think the "application directory" is; I'll offer my understanding, and let me know if that helps. My understanding is that:
Based on that understanding, I would set WOLFRAM_APP_DIRECTORY="/usr/local/Wolfram/Mathematica/13.0/" Setting Therefore, I'd expect that 'UnexpectedLayout' error shown in your previous comment to go away if you were to set:
Does app discovery succeed if you set the value above? |
Ok, sure. Sorry for the misunderstanding, and thanks for the quick help. |
No worries, and you're welcome! Thanks again for the issue and feedback :) It sounds like this is working for you now? So I'll presume that this issue is resolved, but feel free to re-open or file another issue if you run into any more problems. |
Hi,
the program has trouble locating Wolfram Language installation on Linux. Locating Wolfram application using
wolfram_app_discovery::WolframApp
leads to an errorAccording to the section Configuration it should be sufficient to add the correct path to .bashrc, such as
export WOLFRAM_APP_DIRECTORY="/usr/local/Wolfram/Mathematica/13.0/Executables/"
this also leads to the error above.
For more details, the result from
RUST_BACKTRACE=1
:Thanks for any advice on fixing this issue.
The text was updated successfully, but these errors were encountered: