Closed GTrunSec closed 2 years ago
Solving GR is the only entry in the wiki right now :)
Thanks for your wiki. please, let this issue still open while my shell testing to julia2nix.
Done to integrated into Jupyter kernel.
Snappy
Building Snappy ───→ `/nix/store/pz9db61cf40qzvjlwxzhkm49dpmnnnra-julia-depot/packages/Snappy/O2CHr/deps/build.log`
┌ Error: Error building `Snappy`:
│ [ Info: Directory /nix/store/pz9db61cf40qzvjlwxzhkm49dpmnnnra-julia-depot/packages/Snappy/O2CHr/deps/usr/lib does not e
xist!
│ ┌ Warning: Could not extract the platform key of https://github.com/davidanthoff/SnappyBuilder/releases/download/v1.1.7
%2Bbuild.1/SnappyBuilder.x86_64-linux-gnu.tar.gz; continuing...
│ └ @ BinaryProvider /nix/store/pz9db61cf40qzvjlwxzhkm49dpmnnnra-julia-depot/packages/BinaryProvider/U2dKK/src/Prefix.jl:
185
│ [ Info: Downloading https://github.com/davidanthoff/SnappyBuilder/releases/download/v1.1.7%2Bbuild.1/SnappyBuilder.x86_
64-linux-gnu.tar.gz to /nix/store/pz9db61cf40qzvjlwxzhkm49dpmnnnra-julia-depot/packages/Snappy/O2CHr/deps/usr/downloads/S
nappyBuilder.x86_64-linux-gnu.tar.gz...
│ ERROR: LoadError: Could not download https://github.com/davidanthoff/SnappyBuilder/releases/download/v1.1.7%2Bbuild.1/S
nappyBuilder.x86_64-linux-gnu.tar.gz to /nix/store/pz9db61cf40qzvjlwxzhkm49dpmnnnra-julia-depot/packages/Snappy/O2CHr/dep
s/usr/downloads/SnappyBuilder.x86_64-linux
-gnu.tar.gz:
│ ErrorException("")
│ Stacktrace:
CodecZlib
Building CodecZlib → `/nix/store/mkkqb6gy2k3cglfp9mj86sr97r5zpnxi-julia-depot/packages/CodecZlib/5t9zO/deps/build.log`
┌ Error: Error building `CodecZlib`:
│ [ Info: Downloading https://github.com/bicycle1885/ZlibBuilder/releases/download/v1.0.4/Zlib.v1.2.11.x86_64-linux-gnu.t
ar.gz to /nix/store/mkkqb6gy2k3cglfp9mj86sr97r5zpnxi-julia-depot/packages/CodecZlib/5t9zO/deps/usr/downloads/Zlib.v1.2.11
.x86_64-linux-gnu.tar.gz...
│ ERROR: LoadError: Could not download https://github.com/bicycle1885/ZlibBuilder/releases/download/v1.0.4/Zlib.v1.2.11.x
86_64-linux-gnu.tar.gz to /nix/store/mkkqb6gy2k3cglfp9mj86sr97r5zpnxi-julia-depot/packages/CodecZlib/5t9zO/deps/usr/downl
oads/Zlib.v1.2.11.x86_64-linux-gnu.tar.gz:
Thrift
Building Thrift ───→ `/nix/store/mkkqb6gy2k3cglfp9mj86sr97r5zpnxi-julia-depot/packages/Thrift/Xjowa/deps/build.log`
┌ Error: Error building `Thrift`:
│ [ Info: Downloading https://github.com/tanmaykm/JuliaThriftBuilder/releases/download/julia1.0-thrift0.11.0/JuliaThriftB
uilder.v0.2.0.x86_64-linux-gnu.tar.gz to /nix/store/mkkqb6gy2k3cglfp9mj86sr97r5zpnxi-julia-depot/packages/Thrift/Xjowa/de
ps/usr/downloads/JuliaThriftBuilder.v0.2.0.x86_64-linux-gnu.tar.gz...
│ ERROR: LoadError: Could not download https://github.com/tanmaykm/JuliaThriftBuilder/releases/download/julia1.0-thrift0.
11.0/JuliaThriftBuilder.v0.2.0.x86_64-linux-gnu.tar.gz to /nix/store/mkkqb6gy2k3cglfp9mj86sr97r5zpnxi-julia-depot/package
s/Thrift/Xjowa/deps/usr/downloads/JuliaThriftBuilder.v0.2.0.x86_64-linux-gnu.tar.gz:
│ ErrorException("")
│ Stacktrace:
│ [1] error(::String) at /nix/store/svx6pb30q7r7grsjwiyqyzbvwr0f3687-julia-1.5.3
Yeah, it looks like a similar situation as for GR.jl. For example, Snappy looks like it will try to download libsnappy
if it doesn't find it: https://github.com/bicycle1885/Snappy.jl/blob/master/deps/build.jl.
On the bright side, a similar fix should work (put libsnappy
in the extraLibs
section).
Would you be interested in contributing fixes for these packages to the wiki?
unworking-patch, any idea here? thanks
{ pkgs ? import <nixpkgs> { } }:
with pkgs;
let
src = fetchurl {
url = "https://github.com/davidanthoff/SnappyBuilder/releases/download/v1.1.7%2Bbuild.2/Snappy.x86_64-linux-gnu.tar.gz";
sha256 = "sha256-4xvDcStCDLG5kdCFeXP0U9IAR5k5UhRvjvl4qank0sg=";
};
in
runCommand "libsnappy-1.7.0" { inherit src; } ''
tar -xf $src .
mkdir -p $out
cp -r include $out/.
cp -r lib $out/.
''
Oh I'd just use the snappy
in Nixpkgs. Does it work to just put extraLibs = [snappy];
in default.nix
?
Oh I'd just use the
snappy
in Nixpkgs. Does it work to just putextraLibs = [snappy];
indefault.nix
?
it does not work.
│ [ Info: Directory /nix/store/2kifk7k58kxjqkz0a60qm87z1garsz56-julia-depot/packages/Snappy/O2CHr/deps/usr/lib does not e
xist!
looks link need to link the ${libsnappy}/lib to depot/Snappy/*/usr/lib?
I think you just need to convince BinaryProvider.jl to find the library. I was hoping that putting it on LD_LIBRARY_PATH would be enough.
Oh, are you on a Mac by any chance? In that case it would need to be DYLD_LIBRARY_PATH
. This library doesn't distinguish by platform yet but you could try it manually.
I think you just need to convince BinaryProvider.jl to find the library. I was hoping that putting it on LD_LIBRARY_PATH would be enough.
Oh, are you on a Mac by any chance? In that case it would need to be
DYLD_LIBRARY_PATH
. This library doesn't distinguish by platform yet but you could try it manually.
I'm on Linux. also I did a checklist for LD_LIB. looks like nothing wrong.(still failed)
I did a dirty hack to fix that.
GR works fine in recent versions, and is tested in CI now.
Thanks, any idea here or patch:
Test with https://github.com/GTrunSec/my-julia2nix-env/blob/main/shell.nix I did a patch to solve it without nix-store in Jupyter IJulia. So, just a discussion here.