gem install cannot find a header file

Posted by Milktrader on Stack Overflow See other posts from Stack Overflow or by Milktrader
Published on 2011-01-06T18:29:49Z Indexed on 2011/01/06 18:53 UTC
Read the original article Hit count: 239

Filed under:
|
|

Following along the github README for talib_ruby:

sudo port install ta-lib

Complete. Next is where the trouble begins.

sudo env ARCHFLAGS="-arch PLATFORM" gem install talib_ruby -- --with-talib-include=ABSOLUTE_PATH_TO_TALIB_HEADERS  --with-talib-lib=ABSOLUTE_PATH_TO_TALIB_LIBS

This install fails I believe because apparently it cannot find the ta_abstract.h file

talib.c:2:25: error: ta_abstract.h: No such file or directory

.
.
.
many more errors

I have included in my .bash_profile file the following:

export ABSOLUTE_PATH_TO_TALIB_HEADERS=/opt/local/var/macports/software/ta-lib/0.4.0_0/opt/local/include/ta-lib
export ABSOLUTE_PATH_TO_TALIB_LIBS=/opt/local/var/macports/software/ta-lib/0.4.0_0/opt/local/lib

And indeed the ta_abstract.h file is located where I'm saying in the ABSOLUTE_PATH variable assignment.

What gives?

© Stack Overflow or respective owner

Related posts about ruby

Related posts about gem