-
Notifications
You must be signed in to change notification settings - Fork 756
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error on matlab 2017a, ubunu #967
Comments
I had the same problem with ubuntu 16.04, matlab 2017a, g++/gcc 5.4 and without GPU. Refering to this: #937, I added the following content in ~/.bashrc and fixed the problem. export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6:/usr/lib/x86_64-linux-gnu/libprotobuf.so.9 By the way, don't forget to execute |
Gcc 5.4 is not supported for compiling(vl_nncompilenn) for matlab 2017a. You have to use 4.9 .. version gcc |
ProblemUbuntu 16.04 has [g++/gcc-5] as the default compiler but "Matlab 2017a" supports upto [g++/gcc - 4.9 ] only. Solution-1You could change your ~/.bashrc file to make [g++/gcc-4.9] as your default compiler.
Solution-2You could set priority to use [g++/gcc-4.9] before [g++/gcc-5] . Follow these steps: --> Make sure gcc-4.9 and g++-4.9 are installed. --> Set "priority=100" for gcc-4.9 and "priority=50" for gcc-5. --> Set "priority=100" for g++-4.9 and "priority=50" for g++-5. --> Verify the priority settings using:
EDIT: "corrected command for g++" (...thanks Haini) |
For g++ alternatives one should change the compiler names from
to At least that would make sense, as we later query for g++ too. |
Thanks Haini...I made the changes. |
Following matconvnet documentation setting up the mex compiler seems to fix the problem: |
Hi!
System configuration:
MatConvNet error:
>> cnn_mnist_experiments
parameter memory| 2MB (4.3e+05 parameters)|
data memory|14MB (for batch size 100)|
... (table omitted)
train: epoch 01: 1/600:Invalid MEX-file '/home/user/Code/matlab/matconvnet-1.0-beta24/matlab/mex/vl_nnconv.mexa64':
Missing symbol 'ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4swapERS4' required by
'/home/user/Code/matlab/matconvnet-1.0-beta24/matlab/mex/vl_nnconv.mexa64'
Missing symbol '_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm' required by
'/home/user/Code/matlab/matconvnet-1.0-beta24/matlab/mex/vl_nnconv.mexa64'
Missing symbol 'ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4' required by
'/home/user/Code/matlab/matconvnet-1.0-beta24/matlab/mex/vl_nnconv.mexa64'
Missing symbol '_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERmm' required by
'/home/user/Code/matlab/matconvnet-1.0-beta24/matlab/mex/vl_nnconv.mexa64'.
Error in vl_simplenn (line 300)
res(i+1).x = vl_nnconv(res(i).x, l.weights{1}, l.weights{2}, ...
Error in cnn_train>processEpoch (line 350)
res = vl_simplenn(net, im, dzdy, res, ...
Error in cnn_train (line 150)
[net, state] = processEpoch(net, state, params, 'train') ;
Error in cnn_mnist (line 54)
[net, info] = trainfn(net, imdb, getBatch(opts), ...
Error in cnn_mnist_experiments (line 4)
[net_bn, info_bn] = cnn_mnist(...
Any help?
Thanks.
The text was updated successfully, but these errors were encountered: