KineticPreProcessor / KPP

The KPP kinetic preprocessor is a software tool that assists the computer simulation of chemical kinetic systems
GNU General Public License v3.0
19 stars 11 forks source link

[FEATURE REQUEST] /usr/bin/ld: cannot find -lfl #62

Closed LiHui94 closed 1 year ago

LiHui94 commented 1 year ago

Ask a question about KPP:

Hi, I met an error "/usr/bin/ld: cannot find -lfl" when I installed KPP-2.3.3_gc.

This is how I set my environment:

export KPP_FLEX_LIB_DIR=/home/lihui/GC12.3/code/flex/lib export KPP_FLEX_BIN_DIR=/home/lihui/GC12.3/code/flex

export PATH=$NETCDF_HOME/bin:$KPP_FLEX_BIN_DIR/bin:$PATH export LD_LIBRARY_PATH=$NETCDF_HOME/lib:$KPP_FLEX_BIN_DIR/lib:$LD_LIBRARY_PATH

export KPP_HOME=$HOME/GC12.3/code/KPP-2.3.3_gc/kpp-code export PATH=$PATH:$KPP_HOME/bin

The picture attacted here gives the detailed error message. kpp2 3 3_gc-error_message

yantosca commented 1 year ago

Thanks for writing. We recommend that you grab the latest version of KPP. You can set an environment variable (KPP_FLEX_LIB_DIR) to point to the Flex library on your system. This is usually in /usr/lib or /usr/local/lib on most systems.

If you don't have the Flex library, you can install it with a package manager (apt, yum, etc.) or with Spack.

yantosca commented 1 year ago

@LiHui94: We have just released KPP 3.0.0. We recommend that you update to this version.

Our kpp.readthedocs.io manual has information about how to specify the path to flex for KPP.

yantosca commented 1 year ago

I will close this issue for now. Feel free to open another issue if you are still having problems.