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 error on Windows #28

Closed
kafisatz opened this issue Oct 20, 2017 · 6 comments
Closed

build error on Windows #28

kafisatz opened this issue Oct 20, 2017 · 6 comments

Comments

@kafisatz
Copy link

Issue 12 seems to be about windows binaries.
Is that the reason I cannot build this package on Windows?
Or can anyone tell me whey I encounter the error below?
If that is the case, I would suggest that the readme says so.


julia> BinDeps.debug("GraphViz")
INFO: Reading build script...
WARNING: BinDeps.shlib_ext is deprecated.
  likely near C:\Users\bernhard.konig\.julia\v0.6\GraphViz\deps\build.jl:37
The package declares 2 dependencies.
 - Library "cgraph"
    - Providers:
      - Autotools Build
 - Library "gvc"
    - Providers:
      - Autotools Build

julia> Pkg.build("GraphViz")
INFO: Building GraphViz
WARNING: BinDeps.shlib_ext is deprecated.
  likely near C:\Users\bernhard.konig\.julia\v0.6\GraphViz\deps\build.jl:37
==========================================[ ERROR: GraphViz ]===========================================

LoadError: None of the selected providers can install dependency cgraph.
Use BinDeps.debug(package_name) to see available providers

while loading C:\Users\bernhard.konig\.julia\v0.6\GraphViz\deps\build.jl, in expression starting on line 43

========================================================================================================

============================================[ BUILD ERRORS ]============================================

WARNING: GraphViz had build errors.

 - packages with build errors remain installed in C:\Users\bernhard.konig\.julia\v0.6
 - build the package(s) and all dependencies with `Pkg.build("GraphViz")`
 - build a single package by running its `deps/build.jl` script

========================================================================================================

julia>

C:\Users\bernhard.konig>cd C:\Users\bernhard.konig\.julia\v0.6\GraphViz\deps

C:\Users\bernhard.konig\.julia\v0.6\GraphViz\deps>julia
Executing .juliarc.jl... done
               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: https://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.6.0 (2017-06-19 13:05 UTC)
 _/ |\__'_|_|_|\__'_|  |  Official http://julialang.org/ release
|__/                   |  x86_64-w64-mingw32

julia> include("build.jl")
WARNING: BinDeps.shlib_ext is deprecated.
  likely near C:\Users\bernhard.konig\.julia\v0.6\GraphViz\deps\build.jl:37
ERROR: LoadError: None of the selected providers can install dependency cgraph.
Use BinDeps.debug(package_name) to see available providers

Stacktrace:
 [1] satisfy!(::BinDeps.LibraryDependency, ::Array{DataType,1}) at C:\Users\bernhard.konig\.julia\v0.6\BinDeps\src\dependencies.jl:922
 [2] satisfy!(::BinDeps.LibraryDependency) at C:\Users\bernhard.konig\.julia\v0.6\BinDeps\src\dependencies.jl:895
 [3] macro expansion at C:\Users\bernhard.konig\.julia\v0.6\BinDeps\src\dependencies.jl:950 [inlined]
 [4] anonymous at .\<missing>:?
 [5] include_from_node1(::String) at .\loading.jl:569
 [6] include(::String) at .\sysimg.jl:14
while loading C:\Users\bernhard.konig\.julia\v0.6\GraphViz\deps\build.jl, in expression starting on line 43

julia> versioninfo()
Julia Version 0.6.0
Commit 903644385b* (2017-06-19 13:05 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
  LAPACK: libopenblas64_
  LIBM: libopenlibm
  LLVM: libLLVM-3.9.1 (ORCJIT, skylake)

julia>julia> BinDeps.debug("GraphViz")
INFO: Reading build script...
WARNING: BinDeps.shlib_ext is deprecated.
  likely near C:\Users\bernhard.konig\.julia\v0.6\GraphViz\deps\build.jl:37
The package declares 2 dependencies.
 - Library "cgraph"
    - Providers:
      - Autotools Build
 - Library "gvc"
    - Providers:
      - Autotools Build

julia> Pkg.build("GraphViz")
INFO: Building GraphViz
WARNING: BinDeps.shlib_ext is deprecated.
  likely near C:\Users\bernhard.konig\.julia\v0.6\GraphViz\deps\build.jl:37
==========================================[ ERROR: GraphViz ]===========================================

LoadError: None of the selected providers can install dependency cgraph.
Use BinDeps.debug(package_name) to see available providers

while loading C:\Users\bernhard.konig\.julia\v0.6\GraphViz\deps\build.jl, in expression starting on line 43

========================================================================================================

============================================[ BUILD ERRORS ]============================================

WARNING: GraphViz had build errors.

 - packages with build errors remain installed in C:\Users\bernhard.konig\.julia\v0.6
 - build the package(s) and all dependencies with `Pkg.build("GraphViz")`
 - build a single package by running its `deps/build.jl` script

========================================================================================================

julia>

C:\Users\bernhard.konig>cd C:\Users\bernhard.konig\.julia\v0.6\GraphViz\deps

C:\Users\bernhard.konig\.julia\v0.6\GraphViz\deps>julia
Executing .juliarc.jl... done
               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: https://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.6.0 (2017-06-19 13:05 UTC)
 _/ |\__'_|_|_|\__'_|  |  Official http://julialang.org/ release
|__/                   |  x86_64-w64-mingw32

julia> include("build.jl")
WARNING: BinDeps.shlib_ext is deprecated.
  likely near C:\Users\bernhard.konig\.julia\v0.6\GraphViz\deps\build.jl:37
ERROR: LoadError: None of the selected providers can install dependency cgraph.
Use BinDeps.debug(package_name) to see available providers

Stacktrace:
 [1] satisfy!(::BinDeps.LibraryDependency, ::Array{DataType,1}) at C:\Users\bernhard.konig\.julia\v0.6\BinDeps\src\dependencies.jl:922
 [2] satisfy!(::BinDeps.LibraryDependency) at C:\Users\bernhard.konig\.julia\v0.6\BinDeps\src\dependencies.jl:895
 [3] macro expansion at C:\Users\bernhard.konig\.julia\v0.6\BinDeps\src\dependencies.jl:950 [inlined]
 [4] anonymous at .\<missing>:?
 [5] include_from_node1(::String) at .\loading.jl:569
 [6] include(::String) at .\sysimg.jl:14
while loading C:\Users\bernhard.konig\.julia\v0.6\GraphViz\deps\build.jl, in expression starting on line 43

julia> versioninfo()
Julia Version 0.6.0
Commit 903644385b* (2017-06-19 13:05 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
  LAPACK: libopenblas64_
  LIBM: libopenlibm
  LLVM: libLLVM-3.9.1 (ORCJIT, skylake)

julia>

@kafisatz
Copy link
Author

In my case, a workaround using the windows executable of graphviz is currently feasible (even though it is slightly cumbersome as I need to write the tree into a text file, which I would prefer to avoid)

@mandarup
Copy link

I get similar error on linux

julia> Pkg.build("GraphViz")
INFO: Building GraphViz
WARNING: BinDeps.shlib_ext is deprecated.
  likely near /home/-/.julia/v0.6/GraphViz/deps/build.jl:37
INFO: Attempting to create directory /home/-/.julia/v0.6/GraphViz/deps/downloads
INFO: Directory /home/-/.julia/v0.6/GraphViz/deps/downloads already exists
INFO: Downloading file http://www.graphviz.org/pub/graphviz/stable/SOURCES/graphviz-2.36.0.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404 Not Found
======================================================[ ERROR: GraphViz ]=======================================================

LoadError: failed process: Process(`curl -f -o /home/-/.julia/v0.6/GraphViz/deps/downloads/graphviz-2.36.0.tar.gz -L http://www.graphviz.org/pub/graphviz/stable/SOURCES/graphviz-2.36.0.tar.gz`, ProcessExited(22)) [22]
while loading /home/-/.julia/v0.6/GraphViz/deps/build.jl, in expression starting on line 43

================================================================================================================================

========================================================[ BUILD ERRORS ]========================================================

WARNING: GraphViz had build errors.

 - packages with build errors remain installed in /home/-/.julia/v0.6
 - build the package(s) and all dependencies with `Pkg.build("GraphViz")`
 - build a single package by running its `deps/build.jl` script

================================================================================================================================

and

julia> using GraphViz
ERROR: LoadError: GraphViz not properly installed. Please run Pkg.build("GraphViz").
Stacktrace:
 [1] error(::String) at ./error.jl:21
 [2] include_from_node1(::String) at ./loading.jl:576
 [3] eval(::Module, ::Any) at ./boot.jl:235
 [4] _require(::Symbol) at ./loading.jl:490
 [5] require(::Symbol) at ./loading.jl:405
while loading /home/-/.julia/v0.6/GraphViz/src/GraphViz.jl, in expression starting on line 5

@mandarup
Copy link

mandarup commented Jan 26, 2018

this is a workaround that worked for me on linux:

editing ~/.julia/v0.6/GraphViz/deps/build.jl and replacing this line:

provides(Sources,URI("http://www.graphviz.org/pub/graphviz/stable/SOURCES/graphviz-2.36.0.tar.gz"),graphviz)

with

provides(Sources,URI("http://www.graphviz.org/pub/graphviz/stable/SOURCES/graphviz.tar.gz"),graphviz)

And then,

julia>Pkg.build("GraphViz")

this would most likely give error:

LoadError: Path /home/-/.julia/v0.6/GraphViz/deps/src/graphviz was not created successfully (Tried to run `tar xzf /home/-/.julia/v0.6/GraphViz/deps/downloads/graphviz.tar.gz --directory=/home/-/.julia/v0.6/GraphViz/deps/src` )

while loading /home/-/.julia/v0.6/GraphViz/deps/build.jl, in expression starting on line 44

which can be resolved by
$mv -/.julia/v0.6/GraphViz/deps/src/graphviz-* -/.julia/v0.6/GraphViz/deps/src/graphviz

@gino244
Copy link

gino244 commented Feb 14, 2018

This is my workaround on Windows.

  1. change tar.gz file name in build.jl
    following @mandarup comment above:
    provides(Sources,URI("http://www.graphviz.org/pub/graphviz/stable/SOURCES/graphviz-2.36.0.tar.gz"),graphviz)
    to
    provides(Sources,URI("http://www.graphviz.org/pub/graphviz/stable/SOURCES/graphviz.tar.gz"),graphviz)

  2. add Cairo package
    Pkg.add("Cairo")

  3. build GraphViz
    Pkg.build("GraphViz")

After the workaround, I have no errors with 'using GraphViz'.
18021401

@benmbrennan
Copy link

I tried the Windows workaround but I'm still getting the same error.

@Keno
Copy link
Contributor

Keno commented Nov 19, 2021

The future is now

@Keno Keno closed this as completed Nov 19, 2021
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

5 participants