TokenBank.cpp compilation error

Hi,

I created a token UDF for doing on the go transformations in loader and put it in TokenBank.cpp under ~/tigergraph/app/3.0.5/dev/gdk/gsql/src/TokenBank. While compiling it, I face below issue.

~/tigergraph/app/3.0.5/.syspre/opt/rh/devtoolset-2/root/usr/bin/…/libexec/gcc/x86_64-redhat-linux/4.8.2/cc1plus: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory

I followed below documentation which fairly simple.
https://docs.tigergraph.com/dev/gsql-ref/ddl-and-loading/creating-a-loading-job#user-defined-token-functions

has anyone come across this issue? please share your findings on this.

-Hanif

Hi Hanif,

Please compile it by adding the loading job from the gsql console.

The ./compile approach is outdated should be removed from the document.

Thanks.

Hi Xinyu,

Thanks.

can you please elaborate the process.
“Please compile it by adding the loading job from the gsql console.”