Skip to content

Instantly share code, notes, and snippets.

@trans
Last active August 29, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trans/344d2ebbaff140a6bb54 to your computer and use it in GitHub Desktop.
Save trans/344d2ebbaff140a6bb54 to your computer and use it in GitHub Desktop.
# This is a build script made for ruby-install, though it may be out of date by now.
# Still the same basic approach applies.
# @see http://www.tkdocs.com/tutorial/install.html
# TODO: Add support for MacOS.
if [ -z $installdir ]; then
installdir="/opt/ActiveTcl-8.5"
fi
if [ ! -d "$installdir" ]; then
echo "Installing ActiveTcl8.5.10..."
echo "IMPORTANT: Be sure to use the default settings in the install dialog."
wget http://downloads.activestate.com/ActiveTcl/releases/8.5.10.1/ActiveTcl8.5.10.1.295062-linux-x86_64-threaded.tar.gz
tar -xf ActiveTcl8.5.10.1.295062-linux-x86_64-threaded.tar.gz
cd ActiveTcl8.5.10.1.295062-linux-x86_64-threaded
./install.sh
fi
if [ ! -d "/opt/ActiveTcl-8.5" ]; then
echo "Could not find /opt/ActiveTcl-8.5"
exit
fi
export CONFIGURE_OPTS=" \
--with-tcl-dir=$installdir \
--with-tk-dir=$installdir \
--with-tcllib=tclstub8.5 \
--with-tklib=tkstub8.5 \
--enable-tcltk_stubs \
--enable-tcl-thread \
--enable-pthread \
"
#require_gcc
#install_package "yaml-0.1.4" "http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz"
#install_package "ruby-1.9.3-rc1" "http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-rc1.tar.gz"
# TODO: How to invoke building script here ?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment