[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Compiling octave specifying path to GraphicsMagick library
From: |
CdeMills |
Subject: |
Re: Compiling octave specifying path to GraphicsMagick library |
Date: |
Mon, 2 Apr 2012 03:07:33 -0700 (PDT) |
I applied a number of tips and tricks found on linuxfromscratch. If you want
to recompile a number of softwares for yourself:
1) create ${HOME}/usr (or anything else) as base for the installation
2) create ${HOME}/usr/lib/pkgconfig as repository for the local config files
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
4) logout, login, compile whatever you need, using configure as
./configure --prefix=${HOME}/usr
so things will be added into ${HOME}/usr/bin, ...
5) for Octave:
./configure --prefix=${HOME}/usr --with-magick=ImageMagick
With this setup, pkg-config will report the right library names, and the
--prefix=${HOME}/usr will ensure precedence of all your local libs over the
system installed ones.
Regards
Pascal
--
View this message in context:
http://octave.1599824.n4.nabble.com/Compiling-octave-specifying-path-to-GraphicsMagick-library-tp4498573p4525629.html
Sent from the Octave - General mailing list archive at Nabble.com.
- Re: Compiling octave specifying path to GraphicsMagick library,
CdeMills <=