MATLAB: Am I receiving “Send 2 ()” errors when I try to connect to the MATLAB Web Server 1.2.3 (R14) on Linux

coreenterprisefedoraMATLAB Web Serverwebserver

When I try to run one of the demo examples of the MATLAB Web Server on Redhat Linux, I receive one of the following errors:
Error: Send 2 () Error: 32
Error: recv1() error: 104
Inspecting my error log, I see the warning:
libgcc_s.so.1 must be installed for pthread_cancel to work

Best Answer

There is a conflict between the libgcc_s.so.1 library that ships with MATLAB and the libgcc_s.so.1 library installed on machines running Redhat Linux 9.0. To work around this issue, use the following steps:
1. Open the file matlabserver.conf for editing. This file can be found in the directory:
$MATLAB/webserver
where $MATLAB is the root directory of your MATLAB installation.
2. Add the following line to the file:
LIBRARY_PATH=/lib:$LIBRARY_PATH
3. Save the file and restart the MATLAB Web Server
This will cause the MATLAB Web Server to see the system version of the libgcc_so.so.1 library.