Hi Pablo,

On 19/02/14 09:27, Pablo Escobar Lopez wrote:
In case it's useful for anyone, there are some utilities to convert from this shell scripts to modulefiles

https://github.com/TACC/Lmod/tree/master/contrib/converting_shell_to_module_files

These come in very useful indeed, but you need to be (a bit) careful.

The script you're sourcing may (and will, in the case of OpenFOAM) depend on the environment in which it is run.

If you generate a module file from the script you source, you're basically locking the environment into the module,
which might not be what you want/need.


regards,

Kenneth

regards,
Pablo.



2014-02-19 Kenneth Hoste <[email protected] <mailto:[email protected]>>:

    Hi Bart,

    The OpenFOAM libraries and binaries are (apparently) installed to
    non-standard locations (i.e. not /bin, /lib, etc.).
    However, OpenFOAM provides a bash script that should be sourced before
    using OpenFOAM, that should make the necessary adjustments to $PATH,
    $LD_LIBRARY_PATH, etc.

    Apparently it's (very) tricky to source scripts when loading a module,
    so you still need to do that yourself after loading the OpenFOAM
    module.

    Simply running "source $FOAM_BASH" (or ". $FOAM_CSH") should do
    the trick.

    Let us know if that helps resolve the issues you're seeing.


    regards,

    Kenneth

    On 17/02/14 01:44, Bart Verleye wrote:
    > Hi,
    >
    > I have just installed OpenFoam 2.2.0 with EB, toolchain
    goolf-1.4.10.
    > The installation seems to be OK.
    >
    > However, when I try to run, there are no libraries found:
    >
    >
    
/share/easybuild/RHEL6.3/sandybridge/software/OpenFOAM/2.2.0-goolf-1.4.10/OpenFOAM-2.2.0/platforms/linux64GccDPOpt/bin/blockMesh
    > blockMeshDict
    >
    >
    
/share/easybuild/RHEL6.3/sandybridge/software/OpenFOAM/2.2.0-goolf-1.4.10/OpenFOAM-2.2.0/platforms/linux64GccDPOpt/bin/blockMesh:
    > error while loading shared libraries: libblockMesh.so: cannot open
    > shared object file: No such file or directory
    >
    > Also all the binaries that come with OpenFoam are not found,
    hence the
    > direct link to blockMeshDict in the above.
    >
    > In the tutorial they also mention an environment setting FOAM_RUN
    > which is not set after loading the module.
    >
    > Something I missed or do wrong?
    >
    > Thanks,
    > Bart




--
Pablo Escobar López
HPC systems engineer
Biozentrum, University of Basel
Swiss Institute of Bioinformatics SIB
Email: [email protected] <mailto:[email protected]>
Phone: +41 61 267 15 82
http://www.biozentrum.unibas.ch

Reply via email to