CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   missing lnInclude files on gentoo ebuild installation (http://www.cfd-online.com/Forums/openfoam-installation/65598-missing-lninclude-files-gentoo-ebuild-installation.html)

BlGene June 19, 2009 18:35

missing lnInclude files on gentoo ebuild installation
 
I have installed openfoam on gentoo using the openfoam-1.5 ebuild. When I try to compile openfoam user libraries such as groovyBC the compile fails (see here ).

Im guessing this is because the compiler is looking for, and not finding, lnInclude files in the source tree, is this correct?

If the lnInclude files are the missing link what is the easiest way to get them on a gentoo system?

olesen June 22, 2009 04:59

Quote:

Originally Posted by BlGene (Post 219921)
If the lnInclude files are the missing link what is the easiest way to get them on a gentoo system?

If all else fails, this might do the trick:
Code:

# default is pwd
if [ "$#" -eq 0 ]
then
    set -- .
elif [ "$1" = "-h" -o "$1" = "-help" ]
then
    echo "Usage: ${0##*/} [dir1] .. [dirN]"
    echo
    echo "    Find directories containing a Make/ directory and"
    echo "    execute 'wmakeLnInclude -f' for each one"
    echo
    exit 1
fi
 
for checkDir
do
    if [ -d $checkDir ]
    then
        echo "searching: $checkDir for 'Make' directories"
    else
        echo "skipping non-dir: $checkDir"
        continue
    fi
 
    find $checkDir -depth -type d -name Make -print | while read dir
    do
        dir=${dir%/Make}    # trim /Make directory from the end
        if [ -d "$dir" ]
        then
            wmakeLnInclude -f $dir
        fi
    done
done


Something similar should be in a future release as 'wmakeLnIncludeAll'.


All times are GMT -4. The time now is 09:51.