trentool / TRENTOOL3

Open-Source MATLAB toolbox for transfer entropy estimation
http://trentool.github.io/TRENTOOL3/
GNU General Public License v3.0
59 stars 26 forks source link

Error during install.m #11

Closed renzocom closed 9 years ago

renzocom commented 9 years ago

When running install.m I received the following error message:

Warning: You are using gcc version '4.8.2'. The version of gcc is not supported. The version
currently supported with MEX is '4.7.x'. For a list of currently supported compilers see:
http://www.mathworks.com/support/compilers/current_release. 
> In install (line 4) 
Warning: You are using gcc version '4.8.2-19ubuntu1)'. The version of gcc is not supported. The
version currently supported with MEX is '4.7.x'. For a list of currently supported compilers see:
http://www.mathworks.com/support/compilers/current_release. 
> In install (line 4) 
/usr/bin/g++ -c -DMX_COMPAT_32   -D_GNU_SOURCE -DMATLAB_MEX_FILE  -I"/usr/local/MATLAB/R2015a/extern/include" -I"/usr/local/MATLAB/R2015a/simulink/include" -ansi -fexceptions -fPIC -fno-omit-frame-pointer -pthread -std=c++11 -O -DNDEBUG /home/renzo/Documents/MATLAB/TRENTOOL3-master/fnearneigh_gpu.cpp -o /tmp/mex_3907649000695222_7700/fnearneigh_gpu.o
/usr/bin/g++ -pthread -Wl,--no-undefined  -shared -O -Wl,--version-script,"/usr/local/MATLAB/R2015a/extern/lib/glnxa64/mexFunction.map" /tmp/mex_3907649000695222_7700/fnearneigh_gpu.o   -lgpuKnnLibrary  -lcudart   -L.  -L/usr/local/cuda/lib64   -Wl,-rpath-link,/usr/local/MATLAB/R2015a/bin/glnxa64 -L"/usr/local/MATLAB/R2015a/bin/glnxa64" -lmx -lmex -lmat -lm -lstdc++ -o fnearneigh_gpu.mexa64
Error using mex
/usr/bin/ld: cannot find -lcudart
collect2: error: ld returned 1 exit status

Error in install (line 4)
mex('-v',['-L' '.'], '-lgpuKnnLibrary', ['-L' CUDA_LIB_PATH],'-lcudart', 'fnearneigh_gpu.cpp');

I was trying to install the mex files on a Ubuntu 14.04 machine

mwibral commented 9 years ago

Dear Renzocom,

this looks like an incompatibility between the gcc on your machine and the one that your MATLAB version supports. So you will not be able to create ay MEX file. The problem is unrelated to TRENTOOL.

Please check the compiler versions that your matlab supports by searching for something similar to this: http://de.mathworks.com/support/compilers/R2013a/?sec=glnxa64

Best, Michael

On 02.07.2015 02:03, renzocom wrote:

When running |install.m| I received the following error message:

|Warning: You are using gcc version '4.8.2'. The version of gcc is not supported. The version currently supported with MEX is '4.7.x'. For a list of currently supported compilers see: http://www.mathworks.com/support/compilers/current_release.

In install (line 4) Warning: You are using gcc version '4.8.2-19ubuntu1)'. The version of gcc is not supported. The version currently supported with MEX is '4.7.x'. For a list of currently supported compilers see: http://www.mathworks.com/support/compilers/current_release. In install (line 4) /usr/bin/g++ -c -DMX_COMPAT_32 -D_GNU_SOURCE -DMATLAB_MEX_FILE -I"/usr/local/MATLAB/R2015a/extern/include" -I"/usr/local/MATLAB/R2015a/simulink/include" -ansi -fexceptions -fPIC -fno-omit-frame-pointer -pthread -std=c++11 -O -DNDEBUG /home/renzo/Documents/MATLAB/TRENTOOL3-master/fnearneigh_gpu.cpp -o /tmp/mex_3907649000695222_7700/fnearneigh_gpu.o /usr/bin/g++ -pthread -Wl,--no-undefined -shared -O -Wl,--version-script,"/usr/local/MATLAB/R2015a/extern/lib/glnxa64/mexFunction.map" /tmp/mex_3907649000695222_7700/fnearneigh_gpu.o -lgpuKnnLibrary -lcudart -L. -L/usr/local/cuda/lib64 -Wl,-rpath-link,/usr/local/MATLAB/R2015a/bin/glnxa64 -L"/usr/local/MATLAB/R2015a/bin/glnxa64" -lmx -lmex -lmat -lm -lstdc++ -o fnearneigh_gpu.mexa64 Error using mex /usr/bin/ld: cannot find -lcudart collect2: error: ld returned 1 exit status

Error in install (line 4) mex('-v',['-L' '.'], '-lgpuKnnLibrary', ['-L' CUDA_LIB_PATH],'-lcudart', 'fnearneigh_gpu.cpp'); |

I was trying to install the mex files on a Ubuntu 14.04 machine

— Reply to this email directly or view it on GitHub https://github.com/trentool/TRENTOOL3/issues/11.Web Bug from https://github.com/notifications/beacon/AIqYGnu8W6BFH_sOjWzoYJ544qQ-OlVwks5oZHdBgaJpZM4FQRsf.gif