Error running Couchbase lite on Tomcat on Centos

Hi, i have a web project using Couchbase Lite (java) and it works well on a windows environment. Now i’m trying to deploying the war file into a centos server, but it fails to start. I see this error in the log. Any suggestions to overcome this ? I have gcc 4.9 running on it.

04-Apr-2017 11:52:43.845 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.listenerStart Exception sending context initialized event to listener instance of class testws.QuartzListener
java.lang.UnsatisfiedLinkError: /usr/local/tomcat/temp/ /usr/lib64/ version `GLIBCXX_3.4.18’ not found (required by /usr/local/tomcat/temp/
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(
at java.lang.ClassLoader.loadLibrary(
at java.lang.Runtime.load0(
at java.lang.System.load(
at com.couchbase.lite.util.NativeLibUtils.loadLibrary(
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(
at com.couchbase.lite.Database.createStoreInstance(
at com.couchbase.lite.Manager.openDatabase(
at com.couchbase.lite.Manager.getDatabase(
at testws.CouchbaseSingleton.(
at testws.CouchbaseSingleton.getInstance(
at testws.QuartzListener.contextInitialized(
at org.apache.catalina.core.StandardContext.listenerStart(
at org.apache.catalina.core.StandardContext.startInternal(
at org.apache.catalina.util.LifecycleBase.start(
at org.apache.catalina.core.ContainerBase.addChildInternal(
at org.apache.catalina.core.ContainerBase.addChild(
at org.apache.catalina.core.StandardHost.addChild(
at org.apache.catalina.startup.HostConfig.deployWAR(
at org.apache.catalina.startup.HostConfig$
at java.util.concurrent.Executors$
at java.util.concurrent.ThreadPoolExecutor.runWorker(
at java.util.concurrent.ThreadPoolExecutor$

CentOS is notoriously slow at updating their tooling. I think the version of libstdc++ on the machine is too old. That is what the message is indicating. You need to alter your LD_LIBRARY_PATH to point to one that is sufficiently new (looks like 4.7 or higher)