id: 12391    nodeId: 12391    type: General    point: 156.0    linkPoint: 1.0    maker: cella    permission: linkable    made at: 2017.12.18 01:04    edited at: 2017.12.28 00:30
how to install librosa on Beagleboard-X15
#### failures

# in ordinary Ubuntu
$ sudo pip3 install librosa
# works fine, but I got problems with scipy and llvmlight
# llvmlite 0.21 needs llvm 5.0.x (currently 3.8 installed), which might be obtained by adding lines in /etc/opt/sources.list as follows and then "sudo apt-get update":
deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-5.0 main
deb-src http://apt.llvm.org/xenial/ llvm-toolchain-xenial-5.0 main
# but the llvm 5.0 does not support arm yet.

# scipy problem can be alleviated by installing blas and lapack first
ubuntu@arm:~$ sudo apt-get install libblas-dev liblapack-dev libatlas-base-dev gfortran
ubuntu@arm:~$ sudo pip3 install scipy

# I searched old versions of llvmlite
ubuntu@arm:~$ pip3 install llvmlite==
# and installed llvmlite 0.13.0
ubuntu@arm:~$ sudo pip3 install 'llvmlite==0.13.0'

ubuntu@arm:~$ sudo pip3 install librosa
# but error while running, "numba requires llvmlite 0.21.0"


#### success

# found a librosa version fitting llvmlite 0.13.0
ubuntu@arm:~$ sudo pip3 install 'librosa==0.4.1'

Return to how to install librosa on Beagleboard-X15