No Haskell Kernel
idontgetoutmuch opened this issue · comments
idontgetoutmuch commented
idontgetoutmuch commented
No I don't think that's it but I don't think ihaskell is being installed.
sundials@sundials:~/HaskellR$ stack --nix exec ihaskell install
Executable named ihaskell not found on path: ["/home/sundials/HaskellR/.stack-work/install/x86_64-linux-nix/759831f8f6f6be72ed7dcedbbc68d4136618cb00b54ca3e4323eb5084647a2fc/8.4.4/bin","/home/sundials/.stack/snapshots/x86_64-linux-nix/759831f8f6f6be72ed7dcedbbc68d4136618cb00b54ca3e4323eb5084647a2fc/8.4.4/bin","/home/sundials/.stack/compiler-tools/x86_64-linux-nix/ghc-8.4.4/bin","/nix/store/r12lm8my92akriijjaiivghindbizzp2-ghc-8.4.4/bin","/nix/store/6sczmwmyx81z1h88v2x434jr3s8qd1vz-bash-interactive-4.4-p23/bin","/nix/store/r12lm8my92akriijjaiivghindbizzp2-ghc-8.4.4/bin","/nix/store/cy3x06bfplivhrvx6rf7vkszx81c09nn-gcc-wrapper-7.3.0/bin","/nix/store/gfbrmbcswqnm7r8y9jx5v6wf2zjyzhhk-gcc-7.3.0/bin","/nix/store/8bh94qdmga1zkb85li56380i44ay82cs-glibc-2.27-bin/bin","/nix/store/68z2cvbzws1pn0z8dhgfkmws75r2z7gm-coreutils-8.29/bin","/nix/store/5c5vbvcybxllw3jdwzm1s0gx7j1464rc-binutils-wrapper-2.30/bin","/nix/store/5vyv136pqs75pj0b8vcpdyc03dmn9p0n-binutils-2.30/bin","/nix/store/8bh94qdmga1zkb85li56380i44ay82cs-glibc-2.27-bin/bin","/nix/store/68z2cvbzws1pn0z8dhgfkmws75r2z7gm-coreutils-8.29/bin","/nix/store/k4dpgbvcvgf50wrrd2gvs5ssfqh3w3g3-pkg-config-0.29.2/bin","/nix/store/2nak6qgsn6ml3ipcivpqk01f1zdc3969-stack-1.7.1/bin","/nix/store/ps577kng0c652r6c4xks9jv5mksdxgyp-patchelf-0.9/bin","/nix/store/a2r3mx450ndsqiky685qp8d0ljsw0bx8-paxctl-0.9/bin","/nix/store/zayl6yjayksyha5ndhxm6lmhr51i8sj6-ncurses-6.1-20190112/bin","/nix/store/96ashzbz2jax84xgims31gy7mcd63vsd-python3.6-ipython-6.5.0/bin","/nix/store/80qva2zal82njkg4zvb7xg94mnikqksd-python3-3.6.8/bin","/nix/store/d5q5q904wmbz0lxy95fvjsqkcbdi56kf-python3.6-setuptools-40.2.0/bin","/nix/store/d5q5q904wmbz0lxy95fvjsqkcbdi56kf-python3.6-setuptools-40.2.0/bin","/nix/store/6cwffkkkwnpgskiyb41jv0k082wxb7bj-python3.6-Pygments-2.2.0/bin","/nix/store/inahw7c7rzzjk21lj2frb8h5ljyqdwzb-python3.6-docutils-0.14/bin","/nix/store/j2rglp0hn45q9ryr6vwkpj4a6v6vkm0v-python3.6-jupyter_client-5.2.3/bin","/nix/store/b8pi31yxvk6dmdzs23iayid333a2ks21-python3.6-jupyter_core-4.4.0/bin","/nix/store/96ashzbz2jax84xgims31gy7mcd63vsd-python3.6-ipython-6.5.0/bin","/nix/store/75f1wrka932qiwmq6b83nigfj31rr1kq-python3.6-notebook-5.6.0/bin","/nix/store/9687mg2jjhbwz4qqq261prwlwbq5l6h9-python3.6-nbformat-4.4.0/bin","/nix/store/r5khjwnvw4vxiklw9mmc86xayn2fxxf9-python3.6-jsonschema-2.6.0/bin","/nix/store/xwryrlm8cir7p3il57axyfrikwh7g8mz-python3.6-nbconvert-5.3.1/bin","/nix/store/3a43w3y3bricag17zdzzs739dqr51n82-python3.6-chardet-3.0.4/bin","/nix/store/181h0hkyqjc58bi1pqqrazna0rdd9ccw-R-3.5.1/bin","/nix/store/l573qhlaijjj6ib99xdp30zwrhvi1498-zeromq-4.2.5/bin","/nix/store/68z2cvbzws1pn0z8dhgfkmws75r2z7gm-coreutils-8.29/bin","/nix/store/6ddj3i7yqdl8d6gk09c1sj4nqhb0ny8p-findutils-4.6.0/bin","/nix/store/ih08f196x70ypll72rihakqslf0j44kf-diffutils-3.6/bin","/nix/store/j2kj1w5glbr5pg39ssihqk5622jjsghs-gnused-4.5/bin","/nix/store/xkzmszz7vp1wdgbpyfvb1wns2qlx9mhz-gnugrep-3.1/bin","/nix/store/s2lj670i2vf2wbq2dnl32c2wb6xf5li1-gawk-4.2.1/bin","/nix/store/n9w6xkk15nkpslvzhwrpi90pv3kkdal6-gnutar-1.30/bin","/nix/store/p1n5m7xp9b3pxs30ry5anzq4ql7zxmly-gzip-1.9/bin","/nix/store/3kzrxhyp633qm4w532jd2qjv8rfvgjhx-bzip2-1.0.6.0.1-bin/bin","/nix/store/8m2ld502dsx6rbsvv05597qzxha4cnc1-gnumake-4.2.1/bin","/nix/store/b9p787yqaqi313l9rr0491igjwyzqfmw-bash-4.4-p23/bin","/nix/store/c8crwa3807d4blaqb4sbqksbyxqqigh2-patch-2.7.6/bin","/nix/store/n8v50b5qczjvsa5hgl41iccqk51xh2r0-xz-5.2.4-bin/bin"]
idontgetoutmuch commented
This seems promising
sundials@sundials:~/HaskellR$ echo $LD_LIBRARY_PATH
sundials@sundials:~/HaskellR$ nix-shell
[nix-shell:~/HaskellR]$ echo $LD_LIBRARY_PATH
/nix/store/181h0hkyqjc58bi1pqqrazna0rdd9ccw-R-3.5.1/lib/R/lib:/nix/store/96ashzbz2jax84xgims31gy7mcd63vsd-python3.6-ipython-6.5.0/lib:/nix/store/j2rglp0hn45q9ryr6vwkpj4a6v6vkm0v-python3.6-jupyter_client-5.2.3/lib:/nix/store/75f1wrka932qiwmq6b83nigfj31rr1kq-python3.6-notebook-5.6.0/lib:/nix/store/181h0hkyqjc58bi1pqqrazna0rdd9ccw-R-3.5.1/lib:/nix/store/l573qhlaijjj6ib99xdp30zwrhvi1498-zeromq-4.2.5/lib:/nix/store/3s920c43pgzi6vdabjs90in308jnbckv-zlib-1.2.11/lib
idontgetoutmuch commented
Nope
[nix-shell:~/HaskellR]$ stack --nix exec ihaskell install
Downloaded lts-12.26 build plan.
Selected mirror https://s3.amazonaws.com/hackage.fpcomplete.com/
Downloading root
Selected mirror https://s3.amazonaws.com/hackage.fpcomplete.com/
Downloading timestamp
Downloading snapshot
Downloading mirrors
Cannot update index (no local copy)
Downloading index
Updated package index downloaded
Update complete
Populated index cache.
Executable named ihaskell not found on path: ["/home/sundials/HaskellR/.stack-work/install/x86_64-linux-nix/lts-12.26/8.4.4/bin","/home/sundials/.stack/snapshots/x86_64-linux-nix/lts-12.26/8.4.4/bin","/home/sundials/.stack/compiler-tools/x86_64-linux-nix/ghc-8.4.4/bin","/nix/store/nqnxj4awgk8szyp5zbcrgxrrk08w9qw4-bash-interactive-4.4-p23/bin","/nix/store/r12lm8my92akriijjaiivghindbizzp2-ghc-8.4.4/bin","/nix/store/cy3x06bfplivhrvx6rf7vkszx81c09nn-gcc-wrapper-7.3.0/bin","/nix/store/gfbrmbcswqnm7r8y9jx5v6wf2zjyzhhk-gcc-7.3.0/bin","/nix/store/8bh94qdmga1zkb85li56380i44ay82cs-glibc-2.27-bin/bin","/nix/store/68z2cvbzws1pn0z8dhgfkmws75r2z7gm-coreutils-8.29/bin","/nix/store/5c5vbvcybxllw3jdwzm1s0gx7j1464rc-binutils-wrapper-2.30/bin","/nix/store/5vyv136pqs75pj0b8vcpdyc03dmn9p0n-binutils-2.30/bin","/nix/store/8bh94qdmga1zkb85li56380i44ay82cs-glibc-2.27-bin/bin","/nix/store/68z2cvbzws1pn0z8dhgfkmws75r2z7gm-coreutils-8.29/bin","/nix/store/k4dpgbvcvgf50wrrd2gvs5ssfqh3w3g3-pkg-config-0.29.2/bin","/nix/store/2nak6qgsn6ml3ipcivpqk01f1zdc3969-stack-1.7.1/bin","/nix/store/ps577kng0c652r6c4xks9jv5mksdxgyp-patchelf-0.9/bin","/nix/store/a2r3mx450ndsqiky685qp8d0ljsw0bx8-paxctl-0.9/bin","/nix/store/zayl6yjayksyha5ndhxm6lmhr51i8sj6-ncurses-6.1-20190112/bin","/nix/store/96ashzbz2jax84xgims31gy7mcd63vsd-python3.6-ipython-6.5.0/bin","/nix/store/80qva2zal82njkg4zvb7xg94mnikqksd-python3-3.6.8/bin","/nix/store/d5q5q904wmbz0lxy95fvjsqkcbdi56kf-python3.6-setuptools-40.2.0/bin","/nix/store/d5q5q904wmbz0lxy95fvjsqkcbdi56kf-python3.6-setuptools-40.2.0/bin","/nix/store/6cwffkkkwnpgskiyb41jv0k082wxb7bj-python3.6-Pygments-2.2.0/bin","/nix/store/inahw7c7rzzjk21lj2frb8h5ljyqdwzb-python3.6-docutils-0.14/bin","/nix/store/j2rglp0hn45q9ryr6vwkpj4a6v6vkm0v-python3.6-jupyter_client-5.2.3/bin","/nix/store/b8pi31yxvk6dmdzs23iayid333a2ks21-python3.6-jupyter_core-4.4.0/bin","/nix/store/96ashzbz2jax84xgims31gy7mcd63vsd-python3.6-ipython-6.5.0/bin","/nix/store/75f1wrka932qiwmq6b83nigfj31rr1kq-python3.6-notebook-5.6.0/bin","/nix/store/9687mg2jjhbwz4qqq261prwlwbq5l6h9-python3.6-nbformat-4.4.0/bin","/nix/store/r5khjwnvw4vxiklw9mmc86xayn2fxxf9-python3.6-jsonschema-2.6.0/bin","/nix/store/xwryrlm8cir7p3il57axyfrikwh7g8mz-python3.6-nbconvert-5.3.1/bin","/nix/store/3a43w3y3bricag17zdzzs739dqr51n82-python3.6-chardet-3.0.4/bin","/nix/store/181h0hkyqjc58bi1pqqrazna0rdd9ccw-R-3.5.1/bin","/nix/store/l573qhlaijjj6ib99xdp30zwrhvi1498-zeromq-4.2.5/bin","/nix/store/68z2cvbzws1pn0z8dhgfkmws75r2z7gm-coreutils-8.29/bin","/nix/store/6ddj3i7yqdl8d6gk09c1sj4nqhb0ny8p-findutils-4.6.0/bin","/nix/store/ih08f196x70ypll72rihakqslf0j44kf-diffutils-3.6/bin","/nix/store/j2kj1w5glbr5pg39ssihqk5622jjsghs-gnused-4.5/bin","/nix/store/xkzmszz7vp1wdgbpyfvb1wns2qlx9mhz-gnugrep-3.1/bin","/nix/store/s2lj670i2vf2wbq2dnl32c2wb6xf5li1-gawk-4.2.1/bin","/nix/store/n9w6xkk15nkpslvzhwrpi90pv3kkdal6-gnutar-1.30/bin","/nix/store/p1n5m7xp9b3pxs30ry5anzq4ql7zxmly-gzip-1.9/bin","/nix/store/3kzrxhyp633qm4w532jd2qjv8rfvgjhx-bzip2-1.0.6.0.1-bin/bin","/nix/store/8m2ld502dsx6rbsvv05597qzxha4cnc1-gnumake-4.2.1/bin","/nix/store/b9p787yqaqi313l9rr0491igjwyzqfmw-bash-4.4-p23/bin","/nix/store/c8crwa3807d4blaqb4sbqksbyxqqigh2-patch-2.7.6/bin","/nix/store/n8v50b5qczjvsa5hgl41iccqk51xh2r0-xz-5.2.4-bin/bin","/home/sundials/.nix-profile/bin","/usr/local/sbin","/usr/local/bin","/usr/sbin","/usr/bin","/sbin","/bin","/usr/games","/usr/local/games","/snap/bin"]
idontgetoutmuch commented
If I do
stack --nix install ihaskell
stack --nix exec ihaskell install
stack --nix exec jupyter notebook
then I get an IHaskell kernel but if I try the example notebook then it complains
Adding the required package to shell.nix
doesn't seem to help
haskell.lib.buildStackProject ({
name = "HaskellR";
inherit ghc;
buildInputs =
[ python36Packages.ipython
python36Packages.jupyter_client
python36Packages.notebook
R
zeromq
zlib
haskellPackages.inline-r
];
LANG = "en_US.UTF-8";
LD_LIBRARY_PATH = ["${R}/lib/R/"];
} // libHack)