Skip to content

Instantly share code, notes, and snippets.

View rened's full-sized avatar

Rene Donner rened

View GitHub Profile
error: a ‘x86_64-linux’ is required to build ‘/nix/store/h7s2kgq77gw3bv8pr8pac87kvr6r5ab0-users-groups.json.drv’, but I am a ‘x86_64-darwin’
error: unable to build all machine configurations
@rened
rened / gist:eb1462258cb3210060ed
Created May 9, 2015 21:16
"incorrect checksum for freed object"
julia> versioninfo()
Julia Version 0.3.8
Commit 79599ad* (2015-04-30 23:40 UTC)
Platform Info:
System: Darwin (x86_64-apple-darwin13.4.0)
CPU: Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
LAPACK: libopenblas
#!/bin/bash
# This script installs nix from source into the current working directory.
set -e
export TARGET=$(pwd)
export BUILDTMP=/tmp/install-nix-here
export BUILDTMPESC=$(echo $BUILDTMP | sed -e's/\//\\\//g')
if [ "$(ls -A $TARGET)" ]; then
f(a) = a + 1
g(a,f) = f(a) + 10
g(1,f)
@code_llvm f(1)
@code_llvm g(1,f)
mkdir -p ~/julia
curl -s -L https://julialang.s3.amazonaws.com/bin/linux/x64/0.4/julia-0.4.6-linux-x86_64.tar.gz | \
tar -C ~/julia -x -z --strip-components=1 -f -
echo "export PATH=$PATH:$HOME/julia/bin" >> ~/.profile
source ~/.profile