New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
osx compile from source (high sierra 10.13.2, python 3.6) #190
Comments
On a mac laptop running macOS 10.13.3:
I wasn't sure why you got that error? But, was thinking... Some older programs don't like directories with spaces in it (yours looks like So, make sure it's not in a directory hierarchy with spaces in the directory names and you should be good to go. |
It doesn't work if in a directory path that has spaces in it. See #190.
Thankyou - I can confirm this removed the above error. I'm now getting much further down in the compile but getting this error: I checked ta_regtest.c, and can see #include <time.h> is there, so not sure how my compiler is not seeing it. |
Hmm, not sure! For what it's worth, I was using clang.
|
Procedure successfully tested on MacOS High Sierra 10.13.3 + Homebrew build ta-lib from sources:
uninstall ta-lib (sources will not be removed):
you will find the sources in the path:
edit ta_utility.h replace:
with:
configure, make, make install, create link:
Enjoy |
Thanks for advice @dsilletti and @mrjbq7 - can confirm this works. Process is not great for installing on multiple machines / cross compilation, but ok for prototypes I guess. For now I'm sticking with custom numpy/panda versions of bollinger bands and standard deviation functions until the floating point precision is increased in the default installer. |
You are welcome @trentbrooks, the problem is that TA-Lib is discontinued since 2007 https://www.ta-lib.org/hdr_dw.html Version: 0.4 (September 2007) and probably this change will never be implemented (in that time was not needed the precision we need for the cryptocurrencies now) |
@trentbrooks If you are still looking at this, you could consider:
That could all be automated by scripts and/or you could make a package management tool recipe for it (brew, ports, etc.). |
Hi,
Thanks for such a great tool. It works perfectly via the pip install, but I need to compile from source to address the floating point precision mentioned here: #151. Hoping you can point me in the right direction as I'm getting an error during make.
Following instructions here:
$ ./configure --prefix=/usr
$ make
$ sudo make install
But it fails at the first 'make' for me with the following error:
libtool: link: (cd .libs/libta_lib.lax/libta_abstract.a && ar x "/Users/trentbrooks/Downloads/ta-lib 3/src/ta_abstract/.libs/libta_abstract.a")
../libtool: line 1717: cd: .libs/libta_lib.lax/libta_abstract.a: No such file or directory
make[2]: *** [libta_lib.la] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
Full logs here:
configure: https://www.dropbox.com/s/dspkcmltxbp7v1p/talib-configure-result.txt
make: https://www.dropbox.com/s/2h5tft7xpw3r9i3/talb-make-result.txt
I'm running osx high sierra 10.13.2, python 3.6.
The text was updated successfully, but these errors were encountered: