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

Build of Blink fails - wrong path to 7z.exe set by BinDeps.jl (Windows) #419

Open
braamvandyk opened this issue Jul 19, 2023 · 0 comments
Open

Comments

@braamvandyk
Copy link

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.

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

1 participant