kaishengtai/neuralart

how to install on os x

robinmeier opened this issue · 6 comments

hello,

i installed torch 7 but when doing luarocks install inn i get following error
i'm on os x 10.10.5
MacBook Pro (Retina, 15-inch, Mid 2014)
NVIDIA GeForce GT 750M 2048 MB

thanks,
r

-- Found Torch7 in /Users/xx/torch/install
CMake Error at /usr/local/Cellar/cmake/3.4.3/share/cmake/Modules/FindCUDA.cmake:617 (message):
Specify CUDA_TOOLKIT_ROOT_DIR
Call Stack (most recent call first):
CMakeLists.txt:7 (FIND_PACKAGE)

-- Configuring incomplete, errors occurred!
See also "/tmp/luarocks_cutorch-scm-1-8411/cutorch/build/CMakeFiles/CMakeOutput.log".

Error: Failed installing dependency: https://raw.githubusercontent.com/torch/rocks/master/cunn-scm-1.rockspec - Failed installing dependency: https://raw.githubusercontent.com/torch/rocks/master/cutorch-scm-1.rockspec - Build error: Failed building.

I'm having the same problem. README seems to imply that Cuda is not required if you're planning to run on the CPU.

It would be nice to see instructions on how to install CUDA on OSX

i installed it from here: https://developer.nvidia.com/cuda-downloads
but still can't install cutorch
posted a message on the cutorch github page but no reply so far

On 9 March 2016 at 18:46, Kirill Edelman notifications@github.com wrote:

I'm having the same problem. README seems to imply that Cuda is not
required if you're planning to run on the CPU.

It would be nice to see instructions on how to install CUDA on OSX


Reply to this email directly or view it on GitHub
#24 (comment)
.

I just went through this, @robinmeier is correct. Start off by installing cuda toolkit form nivida first, remove the torch directory and reinstall so that cutorch builds.

thank you for the update.. i just removed torch directory and reinstalled
eveything after installing cuda toolkit but still get same errors when
trying to build cutorch, starting with this one:

/usr/local/cuda/include/common_functions.h:65:10: fatal error: 'string.h'
file not found

#include <string.h>

any help would be really appreciated!!!

On 14 March 2016 at 05:06, Donald Parker notifications@github.com wrote:

I just went through this, @robinmeier https://github.com/robinmeier is
correct. Start off by installing cuda toolkit form nivida first, remove the
torch directory and reinstall so that cutorch builds.


Reply to this email directly or view it on GitHub
#24 (comment)
.

installing xcode commande line utils with

xcode-select --install

fixed this. have a new error now ;)

maybe related to ox x 10.10 ?

1 warning generated.
[ 79%] Linking CXX shared library libTHC.dylib
ld: file not found:
/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libSparseBLAS.dylib
for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
make[2]: *** [lib/THC/libTHC.dylib] Error 1
make[1]: *** [lib/THC/CMakeFiles/THC.dir/all] Error 2
make: *** [all] Error 2

Error: Build error: Failed building

On 14 March 2016 at 11:38, robin meier robin.meier@gmail.com wrote:

thank you for the update.. i just removed torch directory and reinstalled
eveything after installing cuda toolkit but still get same errors when
trying to build cutorch, starting with this one:

/usr/local/cuda/include/common_functions.h:65:10: fatal error: 'string.h'
file not found

#include <string.h>

any help would be really appreciated!!!

On 14 March 2016 at 05:06, Donald Parker notifications@github.com wrote:

I just went through this, @robinmeier https://github.com/robinmeier is
correct. Start off by installing cuda toolkit form nivida first, remove the
torch directory and reinstall so that cutorch builds.


Reply to this email directly or view it on GitHub
#24 (comment)
.

cutorch finally installed, using this trick:

went into
/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/
and duplicated libBLAS.dylib / renamed it to libSparseBLAS.dylib

On 14 March 2016 at 11:49, robin meier robin.meier@gmail.com wrote:

installing xcode commande line utils with

xcode-select --install

fixed this. have a new error now ;)

maybe related to ox x 10.10 ?

1 warning generated.
[ 79%] Linking CXX shared library libTHC.dylib
ld: file not found:
/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libSparseBLAS.dylib
for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
make[2]: *** [lib/THC/libTHC.dylib] Error 1
make[1]: *** [lib/THC/CMakeFiles/THC.dir/all] Error 2
make: *** [all] Error 2

Error: Build error: Failed building

On 14 March 2016 at 11:38, robin meier robin.meier@gmail.com wrote:

thank you for the update.. i just removed torch directory and reinstalled
eveything after installing cuda toolkit but still get same errors when
trying to build cutorch, starting with this one:

/usr/local/cuda/include/common_functions.h:65:10: fatal error: 'string.h'
file not found

#include <string.h>

any help would be really appreciated!!!

On 14 March 2016 at 05:06, Donald Parker notifications@github.com
wrote:

I just went through this, @robinmeier https://github.com/robinmeier
is correct. Start off by installing cuda toolkit form nivida first, remove
the torch directory and reinstall so that cutorch builds.


Reply to this email directly or view it on GitHub
#24 (comment)
.