BinDeps.jl
BinDeps.jl copied to clipboard
Build of Blink fails - wrong path to 7z.exe set by BinDeps.jl (Windows)
Julia v1.9.2 installed via JuliaUp (Windows 10). BinDeps v1.0.2
A build of Blink v0.12.5 fails with:
caused by: IOError: could not spawn `'C:\Users\<username>\.julia\juliaup\julia-1.9.2+0.x64.w64.mingw32\bin\..\libexec\7z.exe' x electron-v4.0.4-win32-x64.zip -y -oatom`: no such file or directory (ENOENT)
A little digging shows that in BinDeps.jl, line 117:
const exe7z = joinpath(Sys.BINDIR, Base.LIBEXECDIR, "7z.exe")
Sys.BINDIR: "C:\\Users\\<username>\\.julia\\juliaup\\julia-1.9.2+0.x64.w64.mingw32\\bin"
Base.LIBEXECDIR: "..\\libexec"
joinpath(Sys.BINDIR, Base.LIBEXECDIR, "7z.exe")
hence sets to "C:\\Users\\<username>\\.julia\\juliaup\\julia-1.9.2+0.x64.w64.mingw32\\bin\\..\\libexec\\7z.exe"
, while the location of 7z.exe is at C:\\Users\\<username>\\.julia\\juliaup\\julia-1.9.2+0.x64.w64.mingw32\\libexec\\julia\\7z.exe
Workaround: copy 7z.exe and 7z.dll to the folder assumed by BinDeps, one folder higher.