Hi all, this is a question haunting me for a while. I am using win10 as the admin. I can’t run “build SpecialFunctions” in Julia client. The julia 1.0.4 is indeed run as admin. The error says
I did some google on the first warning and then clicked “Developer Mode” in the setting. It didn’t solve the issue. For the second warning I had no clue what it meant.
and without explicitly building it (ignoring any messages for the moment), just see if it works
julia> using SpecialFunctions
julia> besselj0(0.5)
0.9384698072408129
if it does not work, or errors on precompiling, then
pkg> build SpecialFunctions
and try using it as above. If it still does not work, post the precompile errors and the build errors … SpecialFunctions has had issues and updating to Julia v1.1.1 helped me get it working. I don’t know that you will find the same thing happens; it is worth trying.
(you should not need developer mode or admin windows … the message about symlinks can be ignored without difficulty – as far as I know)
ok – I don’t know what to do so I am mentioning your thread on the math channel at Julia’s Slack, someone who reads that will be familiar with this issue – although you may need to wait a while for them to be awake.
under deps there is a directory usr – delete that directory and try to get SpecialFunctions once again (there is a known issue that this resolves, whether it fixes things for you is to be seen). If that does not work … delete the fvheQ directory and if you have
C:\Users\(your user name).julia\compiled\v1.1\SpecialFunctions
delete that directory too, then try to get Special Functions once again.
After that – I dunno.
Cormullion< 1 minute ago
SpecialFunctions is the only package that gives me any problems these days (apart from Cairo.jl :)). It usually fails to install first time, with errors such as
┌ Error: Error building SpecialFunctions:
│ gfortran -m64 -O2 -fPIC -fPIC -c amos/d1mach.f -o amos/d1mach.f.o
│ make: gfortran: No such file or directory
│ make: *** [amos/d1mach.f.o] Error 1
│ [ Info: Downloading https://github.com/JuliaLang/openlibm/archive/v0.5.4.tar.gz to /var/folders/0n/rxl1scks0f19tnxt9pgjcs_40000gp/T/juliaBwbaDX-download.gz…, then you try it again, possibly twice, and it works. Actually the first error does say Please re-run Pkg.build("SpecialFunctions"), and restart Julia. so perhaps it just needs a few attempts.
Hi Jeffrey, thanks a lot for all tips! The issues are still there after several tries. I also encountered the similar issue when building “Arpack” to test package “Distributions”.
Both SpecialFunctions and Arpack are known to be troublesome sometimes, particularly with Windows. I do not have a good answer for you .
You could try installing this stuff including Julia … .using WindowsTerminal Microsoft Apps (get the dependencies first if you try this)
I finally found out a partial solution. What went wrong in precompling and building SpecialFunctions and Arpack seems to me that the powershell prevents Julia from downloading gcc7.tar.gz into the designated folder. I can manually click the link in the warning message and then download them to finish the building process. I hope there will be a permanent answer to fix it. Terminal on windows could be worth a try and I have no problem using Julia in Mac.
solved the problem.
Running REPL as admin did not help. When I tried, the download into the admin - user folder failed. I wonder if there is some problem in the SpecialFunctions package setup?
I am using julia-1.2 and windows 7.
(This was my first post in this forum, and I am taking my first steps in julia)