-
Notifications
You must be signed in to change notification settings - Fork 459
Building libtecla
Fetch the latest release from the official site. This is always named libtecla.tar.gz.
wget http://www.astro.caltech.edu/~mcs/tecla/libtecla.tar.gz
Extract the tarball to the current directory. A libtecla/ directory will be extracted.
tar xzf libtecla.tar.gz
By default, libtecla will install into /usr/local
. If you wish to install the library elsewhere, add --prefix=<desired location>
to the following configure command.
Configure the build via: CC=gcc ./configure
or CC=clang ./configure
, depending upon which compiler you'd like to use.
Note: On OS X 10.9 (XCode 5.0), the following was required after configure generated a Makefile, because the build was attempting to link against a non-existent libgcc.a. If you see this build failure, try simply removing libgcc.a from the build. (Everyone else can ignore this bit.)
mv Makefile Makefile.bak cat Makefile.bak | sed -e 's/libgcc.a//g' > Makefile
Build with make
sudo make install