Home Installation TA-Lib Installation
|
|
Written by Administrator
|
|
Wednesday, 26 April 2006 |
Guide documents how to install TA-LIB (required for AST).
TA-Lib is a great library, unfortunately its not really designed for Unix. Here I will explain how to install TA-Lib like any regular Unix library.
First we need to download it:
wget http://easynews.dl.sourceforge.net/sourceforge/ta-lib/ta-lib-0.1.4-src.tar.gz
tar -xf ta-lib-0.1.4-src.tar.gz
cd ta-lib
Now we need to build TA-Lib. There are several different versions for multithreaded, statically linked, etc. I am using the CSR version. Note: if you are using BSD you can substitute linux for FreeBSD here.
cd c/make/csr/linux/g++
make
There problem here is that there is no installation script for ta-lib. So we have to install it manually. Make sure you run these step as root.
mkdir /usr/include/ta-lib
mkdir /usr/lib/ta-lib
cd ../../../../include
cp * /usr/include/ta-lib/
cd ../lib
cp * /usr/lib/ta-lib/
Thats all there is to it. Here is a complete script if you just want to copy and paste:
wget http://easynews.dl.sourceforge.net/sourceforge/ta-lib/ta-lib-0.1.4-src.tar.gz
tar -xf ta-lib-0.1.4-src.tar.gz
cd ta-lib/c/make/csr/linux/g++
make
mkdir /usr/include/ta-lib
mkdir /usr/lib/ta-lib
cd ../../../../include
cp * /usr/include/ta-lib/
cd ../lib
cp * /usr/lib/ta-lib/
|
|