'GSL symbol not found in flat namespace error while running

While doing node-gyp rebuild, It is going well. But while running hitting the following error:

    ```internal/modules/cjs/loader.js:1122
    return process.dlopen(module, path.toNamespacedPath(filename));
                   ^

   return process.dlopen(module, path.toNamespacedPath(filename));
                  ^
    Error: /home/<user>/optimizerMathLinux/build/Release/constrained_dorfman_steiner.node: undefined symbol: gsl_root_fsolver_brent
       at Object.Module._extensions..node (node:internal/modules/cjs/loader:1187:18)
       at Module.load (node:internal/modules/cjs/loader:981:32)
           at Function.Module._load (node:internal/modules/cjs/loader:822:12)
           at Module.require (node:internal/modules/cjs/loader:1005:19)
           at require (node:internal/modules/cjs/helpers:102:18)
           at main (/home/<user>/optimizerMathLinux/optimize_test.js:50:13)
           at Object.<anonymous> (/home/<user>/optimizerMathLinux/optimize_test.js:82:1)
           at Module._compile (node:internal/modules/cjs/loader:1103:14)
           at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10)
           at Module.load (node:internal/modules/cjs/loader:981:32) {

code: 'ERR_DLOPEN_FAILED' }```

Binding.gyp contents: { "targets": [ { "target_name": "constrained_dorfman_steiner", "sources": [ "constrained_dorfman_steiner.cpp" ], 'cflags': ['-fexceptions'], 'cflags_cc': ['-fexceptions'] } ] }



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source