./darknet: permission denied
Solved by changing darknet permissions
chmod 755 darknet
But again the error
./darknet: cannot execute binary file: exec format error
This is because the compiled file does not correspond and it can not be executed The gcc version doesn't seem to correspond to the nvcc version In fact, if you check the output when you make the Makefile
gnu version! gcc versions later than 5 are not supported!
And gcc version error was mentioned Let's check with the compiler change command
!update-alternatives --config gcc
After all it seems to be for gcc 7
!sudo update-alternatives --remove-all gcc
!sudo update-alternatives --remove-all g++
!sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
!sudo apt-get update
!sudo apt-get install gcc-4.8 g++-4.8
!sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 50
!sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 50
!sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc 50
!sudo update-alternatives --set cc /usr/bin/gcc
!sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++ 50
!sudo update-alternatives --set c++ /usr/bin/g++
!sudo update-alternatives --config gcc
!sudo update-alternatives --config g++
As a result of checking with the compiler change command, I was able to properly set gcc 4.8 as the default.
$!update-alternatives --config gcc
There is only one alternative in link group gcc (providing /usr/bin/gcc): /usr/bin/gcc-4.8
Nothing to configure.
that's all
Recommended Posts