-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Trouble installing MXNet on Raspberry Pi 3 #7852
Description
Environment info and background:
Raspberry Pi 3 running Raspbian version 9 stretch
On the newly installed Raspbian on a Raspberry Pi 3, followed instructions on https://aws.amazon.com/blogs/ai/build-a-real-time-object-classification-system-with-apache-mxnet-on-raspberry-pi/ to first install the prerequisites:
sudo apt-get update
sudo apt-get install python-pip python-opencv python-scipy python-picamera
After that, I followed the instructions to go to page https://mxnet.incubator.apache.org/get_started/install.html to install MXNet by selecting Devices and Raspberry Pi.
I followed the instructions and did the following:
sudo apt-get update
sudo apt-get -y install git cmake build-essential g++-4.8 c++-4.8 liblapack* libblas* libopencv*
git clone https://github.com/dmlc/mxnet.git --recursive
cd mxnet
make
Build stopped and got an error message.
Error Message:
...
/usr/bin/ld: cannot find -lcblas
collect2: error: ld returned 1 exit status
Makefile:322: recipe for target 'lib/libmxnet.so' failed
make: *** [lib/libmxnet.so] Error 1
What have you tried to solve it?
Thought the problem was just missing a library, so did the following:
pi@raspberrypi:~ $ sudo apt-get install libcblas*
Ran make again and got further (now have libmxnet.so generated). However, got another error.
New Error Message:
/usr/bin/ld: build/src/operator/tensor/la_op.o: undefined reference to symbol 'cblas_dtrsm'
//usr/lib/libblas.so.3: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:344: recipe for target 'bin/im2rec' failed
make: *** [bin/im2rec] Error 1
Steps to reproduce
Will get the same error each time I run make again.
Need Help
Now, I do not know what to do. Has anyone else come across the same problem. Any suggestions for a solution?