Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

Trouble installing MXNet on Raspberry Pi 3 #7852

Description

@FrancisTse8

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions