Cannot find-lpython3.5m Caffe Anaconda Python3 ubuntu16.04 not found

Source: Internet
Author: User

Ld-o. build_release/lib/libcaffe.so.1.0.0
/USR/BIN/LD:-lpython3.5m not found
Collect2:error:ld returned 1 exit status
Makefile:572:recipe for target '. build_release/lib/libcaffe.so.1.0.0 ' failed
Make: * * * [. build_release/lib/libcaffe.so.1.0.0] Error 1

Here's another workaround, if you want to use Pyhton3, and Anoconda3 is certainly not going to use the Example.config in the Caffe package.

You may have looked at config carefully and then deleted the comment before Pyhton3, and commented the Python2, and added the Anaconda configuration, and then you ran, and the error occurred. You can change the 3.5m in config to 3.5 you will find that the error is followed, yes, because you released the configuration parameters of the Python3, resulting in this error. So you should put the Python3 back in the comments. My config is as follows:

## Refer to http://caffe.berkeleyvision.org/installation.html#contributions simplifying and improving our build system is welcome!#cuDNN Acceleration Switch (uncomment to build with CuDNN).#USE_CUDNN: = 1#cpu-only switch (uncomment to build without GPU support).Cpu_only: = 1#Uncomment to disable IO dependencies and corresponding data layers#USE_OPENCV: = 0#use_leveldb: = 0#Use_lmdb: = 0#uncomment to allow Mdb_nolock when reading LMDB files (only if necessary)#You should no set this flag if you'll be a reading Lmdbs with any#possibility of simultaneous read and write#Allow_lmdb_nolock: = 1#Uncomment if you ' re using OpenCV 3#opencv_version: = 3#to customize your choice of compiler, uncomment and set the following.#n.b. The default for Linux are g++ and the default for OSX is clang++#custom_cxx: = g++#CUDA directory contains Bin/and lib/directories that we need.Cuda_dir: =/usr/local/Cuda#On Ubuntu 14.04, if Cuda Tools is installed via#"sudo apt-get install Nvidia-cuda-toolkit" then use this instead:#cuda_dir: =/usr#CUDA Architecture setting:going with all of them.#for CUDA < 6.0, comment the *_50 through *_61 lines for compatibility.#for CUDA < 8.0, comment the *_60 and *_61 lines for compatibility.#for CUDA >= 9.0, comment the *_20 and *_21 lines for compatibility.Cuda_arch: =-gencode arch=compute_20,code=sm_20-gencode arch=compute_20,code=sm_21-gencode arch=compute_30,code=sm_30-gencode arch=compute_35,code=sm_35-gencode arch=compute_50,code=sm_50-gencode arch=compute_52,code=sm_52-gencode arch=compute_60,code=sm_60-gencode arch=compute_61,code=sm_61-gencode arch=compute_61,code=compute_61#BLAS Choice:#Atlas for Atlas (default)#Mkl for Mkl#Open for OpenblasBLAS: =Atlas#Custom (Mkl/atlas/openblas) include and Lib directories.#Leave commented to accept the defaults for your choice of BLAS#(which should work)!#blas_include: =/path/to/your/blas#blas_lib: =/path/to/your/blas#Homebrew puts Openblas in a directory that's not on the standard search path#blas_include: = $ (Shell brew--prefix openblas)/include#blas_lib: = $ (Shell brew--prefix openblas)/lib#This is required only if you'll compile the Matlab interface.#MATLAB directory should contain the MEX binary In/bin.#Matlab_dir: =/usr/local#Matlab_dir: =/applications/matlab_r2012b.app#Note:this is required only if you'll compile the Python interface.#We need to is able to find Python.h and numpy/arrayobject.h.#python_include: =/usr/include/python3.5 \/usr/lib/python3.5/dist-packages/numpy/core/include#Anaconda Python distribution is quite popular. Include Path:#Verify Anaconda location, sometimes it's in root.Anaconda_home: = $ (HOME)/Anaconda3 python_include:= $ (anaconda_home)/include $ (anaconda_home)/include/python3.5$ (anaconda_home)/lib/python3.5/site-packages/numpy/core/include#uncomment to use Python 3 (default is Python 2) #python_libraries: = Boost_python3 python3.5m #python_include: =/usr/include/python3.5m \  #/usr/lib/python3.5/dist-packages/numpy/core/include#We need to is able to find libpythonx.x.so or. dylib.#python_lib: =/usr/libPython_lib:= $ (anaconda_home)/Lib#Homebrew installs NumPy in a non standard path (keg only)#Python_include + = $ (dir $ (Shell python-c ' import numpy.core; print (numpy.core.__file__) '))/include#Python_lib + = $ (Shell brew--prefix numpy)/lib#uncomment to support layers written in Python (would link against Python libs)With_python_layer: = 1#Whatever Else you find your need goes here.Include_dirs: = $ (python_include)/usr/local/include#include_dirs: = $ (python_include)/usr/local/include/usr/include/hdf5/serial/Library_dirs: = $ (python_lib)/usr/local/lib/usr/Lib#If Homebrew is installed @ a non standard location (for example your home directory) and the use of it for general Depe Ndencies#Include_dirs + = $ (Shell brew--prefix)/include#Library_dirs + = $ (Shell brew--prefix)/lib#NCCL acceleration switch (uncomment to build with NCCL)#HTTPS://GITHUB.COM/NVIDIA/NCCL (last tested version:v1.2.3-1+cuda8.0)#USE_NCCL: = 1#Uncomment to the use of ' Pkg-config ' to specify OpenCV library paths.#(usually not necessary--OpenCV libraries is normally installed in one of the above $LIBRARY _dirs.)#use_pkg_config: = 1#n.b. Both build and distribute dirs is cleared on ' make clean 'Build_dir: =Builddistribute_dir:=Distribute#Uncomment for debugging. Does not work on OS X due to https://github.com/BVLC/caffe/issues/171#DEBUG: = 1#The ID of the GPU that's ' make runtest ' would use a to run unit tests.Test_gpuid: =0#Enable pretty build (comment to see full commands)Q? = @

Cannot find-lpython3.5m Caffe Anaconda Python3 ubuntu16.04 not found

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.