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

Precompiling Rmath error #77

Closed
nil-is-lin opened this issue Oct 14, 2022 · 6 comments
Closed

Precompiling Rmath error #77

nil-is-lin opened this issue Oct 14, 2022 · 6 comments

Comments

@nil-is-lin
Copy link

julia> using Distributions
[ Info: Precompiling Distributions [31c24e10-a181-5473-b8eb-7969acd0382f]
ERROR: LoadError: InitError: could not load library "F:***.julia\artifacts\8c1c1529ea289add57db6b790a3039ba491acdce\bin\libRmath-julia.dll"
The specified module could not be found.

✗ Rmath
✗ StatsFuns
✗ Distributions

(@v1.6) pkg> status Distributions
Status F:\***\.julia\environments\v1.6\Project.toml
[31c24e10] Distributions v0.25.76
Long-term support (LTS) release: v1.6.7 and Current stable release: v1.8.2 have been tried and both have this problem.

@devmotion
Copy link
Member

That seems to be a problem with Rmath. It seems its binary artifact was not downloaded/installed correctly. So I assume it will fail with the same error message when you try julia> using Rmath (possibly you have to install it explicitly first if it's not a direct dependency of your environment yet). I don't know what's the best way to fix such issues, maybe try to remove the artifacts folder in the error message (ie, "F:***.julia\artifacts\8c1c1529ea289add57db6b790a3039ba491acdce/").

@nil-is-lin
Copy link
Author

Yes, this problem is actually a problem with the Rmath package. If this dependency is gone, will the function of generating Gaussian random numbers still work?

@devmotion
Copy link
Member

Yes, Rmath is only used for e.g. (log)pdfs and (log)cdfs of some special distributions for which no (sufficiently accurate) Julia implementation exists yet. But a broken Rmath installation means that everything that depends on it will be broken, so fixing your installation would still be best.

@devmotion devmotion transferred this issue from JuliaStats/Distributions.jl Oct 14, 2022
@devmotion devmotion changed the title Precompiling Distributions error Precompiling Rmath error Oct 14, 2022
@devmotion
Copy link
Member

I've transferred the issue to Rmath.jl as it is not an issue with Distributions.jl but rather with Rmath.jl (or, even more precisely, its binary artifacts it seems).

@nil-is-lin
Copy link
Author

Thank you very much for your generous help, and may all the codes work as expected.

@ViralBShah
Copy link
Contributor

Please reopen if still an issue.

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

3 participants