rivella50 / talib-ruby

Ruby Wrapper for the Technical Analysis Library ta-lib
55 stars 31 forks source link

Install with ta-lib via homebrew #3

Closed gamafranco closed 12 years ago

gamafranco commented 12 years ago

Hi,

i would like to know if it's easy to allow the gem to install with ta-lib from homebrew, instead of Macports.

Thanks.

rivella50 commented 12 years ago

Hi,

in theory it should work, probably Homebrew will just install ta-lib in a different directory, therefore the 2 directories you have to name for headers and libs can be different when you install the gem:

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

Please try it and let me know if it worked. Thank you.

gamafranco commented 12 years ago

Hi,

It worked. Thanks.

i wonder what are the alternatives to make the instalation of talib_ruby without params. This would enable to install it with bundler out of the box.

Thanks, Tiago Franco gama.franco@gmail.com http://imaginarycloud.com

On Apr 30, 2012, at 09:50 AM, Valentin Treu wrote:

Hi,

in theory it should work, probably Homebrew will just install ta-lib in a different directory, therefore the 2 directories you have to name for headers and libs can be different when you install the gem:

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

Please try it and let me know if it worked. Thank you.


Reply to this email directly or view it on GitHub: https://github.com/rivella50/talib-ruby/issues/3#issuecomment-5413785

rivella50 commented 12 years ago

Hi Tiago,

the problem is that i do not know for sure where to look for the header/lib dirs on a certain system when installing the gem. If you have an idea let it hear :-) Of course you can also fork the source to implement a better solution to what i currently offer.

Bests Valentin