lux-integ wrote:
> On Thursday 31 December 2009 05:02:37 pm Bruce Dubbs wrote:
>> Hops Error, Line 21, alcoholi.c wrote:
>>> This is how I've been setting my PKG_CONFIG_PATH
>>>
>>> for pfix in /usr \
>>> "${GTK_PREFIX}" \
>>> "${OTHER_PACKAGE_PREFIX}" \
>>> "${XORG_PREFIX}" \
>>> ; do
>>> if [ -z "`echo $PKG_CONFIG_PATH | grep $pfix`" ]; then
>>> [ -n "${PKG_CONFIG_PATH}" ] && PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:"
>>> export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}${pfix}/lib/pkgconfig"
>>> fi
>>> done
>> I'd recommend creating a file in /etc/profile.d/ as demonstrated in BLFS
>> "The Bash Shell Startup Files". You could do something like:
>>
>> cat > /etc/profile.d/extrapaths.sh << "EOF"
>> if [ -d /usr/local/lib/pkgconfig ] ; then
>> pathappend /usr/local/lib/pkgconfig PKG_CONFIG_PATH
>> fi
>
>
> I dont seem to have the pathappend utility I keep hetting
> 'pathappend command not found' on login,
>
> I did a quick ls in /sbin. /usr/sbin, /usr/bin and it seems to be absent.
>
> any ideas?
Look in the same section at '/etc/profile'.
> and is it best to put a serial before the extrapaths? ( I
> have /etc/profile.d/10-path.sh and I made /etc/profile./12-extrapaths.sh (
> suspecting it is better if paths are set first))
>
> is this OK?
Sure, using numbers will direct the order of the scripts run. profile
only does:
for script in /etc/profile.d/*.sh ; do
if [ -r $script ] ; then
. $script
fi
done
-- Bruce
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page