luanfujun / deep-painterly-harmonization

Code and data for paper "Deep Painterly Harmonization": https://arxiv.org/abs/1804.03189
6.08k stars 628 forks source link

lua.h: No such file or directory #33

Open paulfryer opened 5 years ago

paulfryer commented 5 years ago

Trying to run 'make' on a SageMaker hosted Jupyter Notebook. Getting this error:

sh-4.2$ make /usr/local/cuda-8.0/bin/nvcc -arch sm_35 -O3 -DNDEBUG -Xcompiler -fopenmp --compiler-options '-fPIC' -o libcuda_utils.so --shared cuda_utils.cu -I/home/ubuntu/torch/install/include/THC -I/home/ubuntu/torch/install/include/TH -I/home/ubuntu/torch/install/include -L/home/ubuntu/torch/install/lib -Xlinker -rpath,/home/ubuntu/torch/install/lib -lluaT -lTHC -lTH -lpng -lluajit -lgomp cuda_utils.cu:2:18: fatal error: lua.h: No such file or directory

include "lua.h"

              ^

compilation terminated. make: *** [libcuda_utils.so] Error 1 sh-4.2$

SunnerLi commented 5 years ago

Hi @paulfryer I also encounter this problem today. And my OS is Ubuntu 16.04. I solve the problem with the following step:

  1. install lua:
    sudo apt-get install lua5.2
  2. install loadcaffe also
    sudo apt-get install libprotobuf-dev protobuf-compiler && luarocks install loadcaffe

    Hope these advice can help you.

mumuyanyan commented 5 years ago

i have the same questions.