[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Compiling octave specifying path to GraphicsMagick library
From: |
Carnë Draug |
Subject: |
Re: Compiling octave specifying path to GraphicsMagick library |
Date: |
Mon, 2 Apr 2012 12:00:04 +0100 |
On 2 April 2012 11:07, CdeMills <address@hidden> wrote:
> 3) in the .profile, setup a few things:
> # set LD_LIBRARY_PATH if not set
> (echo $LD_LIBRARY_PATH | grep -q lib) || export
> LD_LIBRARY_PATH="$HOME/usr/lib"
>
> # for GNUStep apps
> . ${HOME}/usr/System/Library/Makefiles/GNUstep.sh
>
> # set PATH so it includes user's private bin if it exists
> if [ -d "$HOME/bin" ] ; then
> (echo $PATH | grep -q $HOME/bin) || export
> PATH="$HOME/bin:$HOME/usr/local/bin:$HOME/usr/bin:$PATH"
> fi
> if [ -d "$HOME/usr/lib/pkgconfig" ]; then
> (echo $PKG_CONFIG_PATH | grep -q $HOME/usr/lib/pkgconfig) || export
> PKG_CONFIG_PATH="$HOME/usr/lib/pkgconfig"
> fi
Thank you. I'll try this now. By the way, you can write this in a more
silent (if you log in at a terminal, your code prints a bunch of
stuff, not sure why) and easier to read like this:
if [[ $LD_LIBRARY_PATH != *lib* ]]; then
export LD_LIBRARY_PATH="$HOME/usr/lib"
fi
if [[ -d "$HOME/bin" && $PATH != *$HOME/bin* ]]; then
export PATH="$HOME/bin:$HOME/usr/local/bin:$HOME/usr/bin:$PATH"
fi
if [[ -d "$HOME/usr/lib/pkgconfig" && $PKG_CONFIG_PATH !=
*$HOME/usr/lib/pkgconfig* ]]; then
export PKG_CONFIG_PATH="$HOME/usr/lib/pkgconfig"
fi
Carnë