On Fri, Jun 13, 2014 at 10:32 AM, Brian Weitzner <[email protected]> wrote:
> Has anyone successfully built GT on OS X 10.9? What steps were required?
Below are the appropriate sections from a script I use to build globus
on Mac OS X.
# set environment
export GLOBUS_LOCATION=/opt/ldg
export PATH=/bin:/usr/bin:/usr/sbin
# get build platform, and flavour
MACOSX_VERSION=`sw_vers -productVersion` || exit ${?}
case "${MACOSX_VERSION}" in
10.10*)
OS_VERSION="10.10"
PLATFORM="Yosemite"
FLAVOUR="gcc64dbg"
;;
10.9*)
OS_VERSION="10.9"
PLATFORM="Mavericks"
FLAVOUR="gcc64dbg"
;;
10.8*)
OS_VERSION="10.8"
PLATFORM="MountainLion"
FLAVOUR="gcc64dbg"
;;
10.7*)
OS_VERSION="10.7"
PLATFORM="Lion"
FLAVOUR="gcc64dbg"
;;
10.6*)
OS_VERSION="10.6"
PLATFORM="SnowLeopard"
CAPABLE_64BIT=`sysctl -n hw.cpu64bit_capable` || exit ${?}
case "${CAPABLE_64BIT}" in
1)
FLAVOUR="gcc64dbg"
;;
*)
FLAVOUR="gcc32dbg"
;;
esac
;;
*)
echo "Unsupported Mac OS X Version"
exit 1
;;
esac
export GLOBUS_FLAVOR_NAME=${FLAVOUR}
# libtool
tar xf ${libtool_filename} || exit ${?}
pushd libtool-${libtool_version} || exit ${?}
case "${MACOSX_VERSION}" in
10.[8-10]*)
./configure --prefix=${GLOBUS_LOCATION} --program-prefix="globus-"
|| exit ${?}
;;
*)
./configure --prefix=${CWD}/autotools || exit ${?}
;;
esac
make || exit ${?}
make install || exit ${?}
popd || exit ${?}
rm -rf libtool-${libtool_version} || exit ${?}
#
# globus toolkit
#
# extract source
tar xf ${globus_filename} || exit ${?}
pushd gt${globus_version}-all-source-installer || exit ${?}
# configure
./configure --prefix=${GLOBUS_LOCATION} \
--with-gsiopensshargs="--without-openssl-header-check
--sbindir=${GLOBUS_LOCATION}/sbin/ssh.d
--sysconfdir=${GLOBUS_LOCATION}/etc/ssh
--with-globus=${GLOBUS_LOCATION} --with-globus-flavor=${FLAVOUR}" \
--with-flavor=${FLAVOUR} || exit ${?}
# build and install
CPPFLAGS="-I$GLOBUS_LOCATION/include" LDFLAGS="-L$GLOBUS_LOCATION/lib"
make globus-gsi globus_gass_copy globus_usage
globus-resource-management-client gsi-openssh gsi-myproxy || exit ${?}
Cheers
Adam