-
Notifications
You must be signed in to change notification settings - Fork 20
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
gfortran error #309
Comments
Hi @senna1128, thanks for reporting the error. We don't officially support Windows - installing CUTEst (Fortran) on it is not trivial, and making the result work with Julia adds another layer of complexity. The gist of the issue that you mentioned seems to be that In other words, there is no easy fix to support Windows, it would need someone with time availability and some CUTEst (Fortran) proficiency to look over the whole code and add conditionals to treat Windows differently. It has been a while since anybody tried it, so maybe WSL can be used to have it working smoothly, but how Julia interacts with WSL, we don't know. Let us know if you would like to spend some time trying to add Windows support. Otherwise, the solution is to use a Linux or OSX machine. |
Hi @abelsiqueira and @senna1128, I'm also trying to make CUTEst work on WSL. Up to now, I've used CUTEst.jl by juggling between a Ubuntu and a Windows machine. So I can already greatly appreciate the efforts put in maintaining CUTEst and I could go on as is. But if this gets resolved, I'd be a happy customer. I've tried Julia on WSL and everything seems to work well. With my limited experience in Linux, I managed to install gfortran (not without trial and error) and add CUTEst.jl. The line
In case that helps, my versions are Ubuntu 22.04.2 LTS |
Hi @abelsiqueira , thanks for your reply. I tried but still could not fix the issue on Windows. Sometimes I can even run @NicolasL-S I did not encounter this error. I'm not sure how to make CUTEst compatible with Windows. Even I can run |
Hi @NicolasL-S, thanks for looking into this. The error looks like either the @senna1128, nice to hear that. Good luck, and thanks for using CUTEst. |
Hi @abelsiqueira and @senna1128 As @abelsiqueira suggested, I've tried As an aside, while I was trying to find the right directory for libgfortran, I noticed in the CUTEst.jl documentation (https://jso.dev/CUTEst.jl/stable/) the line for the Ubuntu 14.04 installation: |
Hi @NicolasL-S, I'm glad to hear this. Maybe the solution to this issue then would be a note on the installation documentation to use WSL on Windows and install Julia on WSL? Let me know what you think. About the Thanks for the help. |
Hi @abelsiqueira, Sure. I just pushed some proposed changes to the docs; feel free to edit as you see fit. It's hard to go too much into detail. I'm learning as I'm going and there are so many possible versions of Linux, WSL/WSL2, gfortran, directories, etc. Some prior knowledge must be assumed from the users. For the Ubuntu 14.04 installation, no need to change the line if it works. |
Hi @NicolasL-S, where did you push them? Can you make a pull request? It is easier to suggest modifications and accept your changes that way. |
Sorry, I just did, I think it should work now. |
Thank you, @NicolasL-S. I accepted the PR, it looks great, and it should help Windows users get started. More info would be hard, indeed. I'm closing this since we figured out the problem and created a workaround. |
Hi,
Thanks for your excellent maintenance of the CUTEst package.
I'm trying to install CUTEst on Julia. It seems I can run
Pkg.add("CUTEst")
but it would report error when I then runusing CUTEst
. The error isInitError: IOError: could not spawn `bash -c 'type gfortran'`: no such file or directory (ENOENT)
. I have tried to install gcc to my computer, but it does not fix the issue.I'm using Windows 11, Julia v1.9.1, and my gcc v10.3.0
Thanks for the help in advance.
The text was updated successfully, but these errors were encountered: