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

can not install mxnet after building the cpp package #13801

Open
suyz526 opened this issue Jan 8, 2019 · 2 comments
Open

can not install mxnet after building the cpp package #13801

suyz526 opened this issue Jan 8, 2019 · 2 comments

Comments

@suyz526
Copy link
Contributor

suyz526 commented Jan 8, 2019

Description

I have built mxnet cpp package from the source successfully. However, I can't install it.

Environment info

Ubuntu 16.04

what I have done

git clone --recursive https://github.com/apache/incubator-mxnet mxnet
cmake -DUSE_CUDA=0 -DUSE_MKLDNN=1 -GNinja .
ninja -v
sudo ninja install

Error Message:

-- Install configuration: ""
-- Installing: /usr/local/lib/libmxnet.so
-- Set runtime path of "/usr/local/lib/libmxnet.so" to ""
-- Installing: /usr/local/lib/libmxnet.a
-- Up-to-date: /usr/local/include
-- Up-to-date: /usr/local/include/mxnet
-- Up-to-date: /usr/local/include/mxnet/op_attr_types.h
-- Up-to-date: /usr/local/include/mxnet/c_api_test.h
-- Up-to-date: /usr/local/include/mxnet/kvstore.h
-- Up-to-date: /usr/local/include/mxnet/graph_attr_types.h
-- Up-to-date: /usr/local/include/mxnet/c_api.h
-- Up-to-date: /usr/local/include/mxnet/rtc.h
-- Up-to-date: /usr/local/include/mxnet/resource.h
-- Up-to-date: /usr/local/include/mxnet/executor.h
-- Up-to-date: /usr/local/include/mxnet/ndarray.h
-- Up-to-date: /usr/local/include/mxnet/operator_util.h
-- Up-to-date: /usr/local/include/mxnet/base.h
-- Up-to-date: /usr/local/include/mxnet/c_predict_api.h
-- Up-to-date: /usr/local/include/mxnet/operator.h
-- Up-to-date: /usr/local/include/mxnet/engine.h
-- Up-to-date: /usr/local/include/mxnet/io.h
-- Up-to-date: /usr/local/include/mxnet/imperative.h
-- Up-to-date: /usr/local/include/mxnet/storage.h
-- Up-to-date: /usr/local/include/mxnet/random_generator.h
-- Up-to-date: /usr/local/include/mxnet/tensor_blob.h
-- Up-to-date: /usr/local/include
-- Installing: /usr/local/include/nnvm
CMake Error at cmake_install.cmake:72 (file):
file INSTALL cannot make directory "/usr/local/include/nnvm": No such file
or directory

FAILED: cd /home/ysu/Install/mxnet && /usr/local/bin/cmake -P cmake_install.cmake
ninja: build stopped: subcommand failed.

Tried to solve it

I've deleted the links, 'dmlc' and 'nnvm' in the path ''incubator-mxnet/include/''. It seems to work now...

P.S.:
In the tutorial:
https://mxnet.incubator.apache.org/install/build_from_source.html
All the Usage Examples create a build directory
mkdir build && cd build
cmake -GNinja .
It seems to be wrong? Shouldn't it be
cmake -GNinja ..?

@mxnet-label-bot
Copy link
Contributor

Hey, this is the MXNet Label Bot.
Thank you for submitting the issue! I will try and suggest some labels so that the appropriate MXNet community members can help resolve it.
Here are my recommended labels: Installation

@zachgk
Copy link
Contributor

zachgk commented Jan 8, 2019

Thank you for submitting the issue! I'm labeling it so the MXNet community members can help resolve it.

@mxnet-label-bot add [Docs, Installation]

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants