Skip to content

Instantly share code, notes, and snippets.

@njsmith
Last active August 29, 2015 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save njsmith/6c3d3f2dbaaf526a8585 to your computer and use it in GitHub Desktop.
Save njsmith/6c3d3f2dbaaf526a8585 to your computer and use it in GitHub Desktop.
$ conda create -n anaconda-34 python=3.4 anaconda
<output elided -- I ended up with anaconda 2.3.0 npy19py34_0>
$ source activate anaconda-34
# This is a list of every package they link to outside of what they ship, but see below:
~$ find miniconda/envs/anaconda-34 -name '*.so' | xargs -n1 ldd | grep -v miniconda | cut -f1 -d' ' | sort -u
/lib64/ld-linux-x86-64.so.2
libcrypt.so.1
libc.so.6
libdl.so.2
libdrm.so.2
libdynd_v0.6.5.so
libexpat.so.1
libgcc_s.so.1
libglapi.so.0
libglib-2.0.so.0
libGL.so.1
libgobject-2.0.so.0
libgthread-2.0.so.0
libICE.so.6
libm.so.6
libncursesw.so.5
libnsl.so.1
libpanelw.so.5
libpcre.so.3
libpthread.so.0
libpython3.4m.so.1.0
librt.so.1
libSM.so.6
libstdc++.so.6
libtinfo.so.5
libutil.so.1
libX11.so.6
libX11-xcb.so.1
libXau.so.6
libxcb-dri2.so.0
libxcb-dri3.so.0
libxcb-glx.so.0
libxcb-present.so.0
libxcb.so.1
libxcb-sync.so.1
libXdamage.so.1
libXdmcp.so.6
libXext.so.6
libXfixes.so.3
libXrender.so.1
libxshmfence.so.1
libXxf86vm.so.1
libz.so.1
linux-vdso.so.1
# This is the same list, but now leaving out every library that they do ship.
# These are different because of some brokenness where they e.g. ship libz.so.1 and
# libpython3.4m.so.1.0 (!!!) but nonetheless some of their binaries are
# ignoring the conda versions and linking to the system version instead. Weird.
$ export LD_LIBRARY_PATH=$HOME/miniconda/envs/anaconda-34/lib:$LD_LIBRARY_PATH
$ find miniconda/envs/anaconda-34 -name '*.so' | xargs -n1 ldd | grep -v miniconda | cut -f1 -d' ' | sort -u
/lib64/ld-linux-x86-64.so.2
libcrypt.so.1
libc.so.6
libdl.so.2
libdrm.so.2
libexpat.so.1
libgcc_s.so.1
libglapi.so.0
libglib-2.0.so.0
libGL.so.1
libgobject-2.0.so.0
libgthread-2.0.so.0
libICE.so.6
libm.so.6
libncursesw.so.5
libnsl.so.1
libpanelw.so.5
libpcre.so.3
libpthread.so.0
librt.so.1
libSM.so.6
libstdc++.so.6
libtinfo.so.5
libutil.so.1
libX11.so.6
libX11-xcb.so.1
libXau.so.6
libxcb-dri2.so.0
libxcb-dri3.so.0
libxcb-glx.so.0
libxcb-present.so.0
libxcb.so.1
libxcb-sync.so.1
libXdamage.so.1
libXdmcp.so.6
libXext.so.6
libXfixes.so.3
libXrender.so.1
libxshmfence.so.1
libXxf86vm.so.1
linux-vdso.so.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment