tag:help.rubygems.org,2010-01-19:/discussions/problems/646-talib_ruby-on-debian-problemRubyGems.org: Discussion 2011-06-17T20:33:45Ztag:help.rubygems.org,2010-01-19:Comment/79891972011-06-17T17:40:23Z2011-06-17T17:40:25Ztalib_ruby on Debian problem<div><p>Hey all -</p>
<p>I'm having some issues installing talib_ruby, and I'm hoping
someone here with more expertise than I have can help. I've
attempted to install ruby-dev, and eventually ruby-full in the
hopes that some missing dependencies were the issue, but no luck.
Does anybody have a suggestion for resolving this? Here is my
output:</p>
<p>sudo gem install talib_ruby<br>
Building native extensions. This could take a while...<br>
ERROR: Error installing talib_ruby:</p>
<pre>
<code>ERROR: Failed to build gem native extension.</code>
</pre>
<p>/usr/bin/ruby1.8 extconf.rb checking for TA_Initialize() in
-lta_lib... no<br>
creating Makefile</p>
<p>make<br>
gcc -I. -I. -I/usr/lib/ruby/1.8/i486-linux -I.
-D_FILE_OFFSET_BITS=64 -fPIC -fno-strict-aliasing -g -g -O2 -fPIC
-c talib.c<br>
talib.c:2:25: error: ta_abstract.h: No such file or directory<br>
talib.c:30: error: expected specifier-qualifier-list before
‘TA_ParamHolder’<br>
talib.c:37: error: expected ‘=’, ‘,’,
‘;’, ‘asm’ or
‘<strong>attribute</strong>’ before ‘<em>’
token<br>
talib.c: In function ‘ta_func_param_info’:<br>
talib.c:57: error: ‘TA_RetCode’ undeclared (first use
in this function)<br>
talib.c:57: error: (Each undeclared identifier is reported only
once<br>
talib.c:57: error: for each function it appears in.)<br>
talib.c:57: error: expected ‘;’ before
‘ret_code’<br>
talib.c:58: error: expected ‘=’, ‘,’,
‘;’, ‘asm’ or
‘<strong>attribute</strong>’ before ‘</em>’
token<br>
talib.c:58: error: ‘handle’ undeclared (first use in
this function)<br>
talib.c:60: error: ‘ret_code’ undeclared (first use in
this function)<br>
talib.c:61: error: ‘TA_SUCCESS’ undeclared (first use
in this function)<br>
talib.c:67: error: expected ‘=’, ‘,’,
‘;’, ‘asm’ or
‘<strong>attribute</strong>’ before ‘<em>’
token<br>
talib.c:67: error: ‘param_info’ undeclared (first use
in this function)<br>
talib.c:77: error: expected ‘=’, ‘,’,
‘;’, ‘asm’ or
‘<strong>attribute</strong>’ before ‘</em>’
token<br>
talib.c:89: error: expected ‘=’, ‘,’,
‘;’, ‘asm’ or
‘<strong>attribute</strong>’ before ‘<em>’
token<br>
talib.c: In function ‘init_tables’:<br>
talib.c:118: error: ‘TA_RetCode’ undeclared (first use
in this function)<br>
talib.c:118: error: expected ‘;’ before
‘ret_code’<br>
talib.c:120: error: ‘TA_StringTable’ undeclared (first
use in this function)<br>
talib.c:120: error: ‘group_table’ undeclared (first use
in this function)<br>
talib.c:123: error: ‘ret_code’ undeclared (first use in
this function)<br>
talib.c:124: error: ‘TA_SUCCESS’ undeclared (first use
in this function)<br>
talib.c:127: error: ‘function_table’ undeclared (first
use in this function)<br>
talib.c: In function ‘ta_func_free’:<br>
talib.c:160: error: ‘ParamHolder’ has no member named
‘in’<br>
talib.c:160: error: ‘ParamHolder’ has no member named
‘in’<br>
talib.c:161: error: ‘ParamHolder’ has no member named
‘out’<br>
talib.c:161: error: ‘ParamHolder’ has no member named
‘out’<br>
talib.c:162: error: ‘ParamHolder’ has no member named
‘p’<br>
talib.c: In function ‘ta_func_initialize’:<br>
talib.c:184: error: ‘TA_RetCode’ undeclared (first use
in this function)<br>
talib.c:184: error: expected ‘;’ before
‘ret_code’<br>
talib.c:185: error: expected ‘=’, ‘,’,
‘;’, ‘asm’ or
‘<strong>attribute</strong>’ before ‘</em>’
token<br>
talib.c:185: error: ‘handle’ undeclared (first use in
this function)<br>
talib.c:186: error: ‘TA_ParamHolder’ undeclared (first
use in this function)<br>
talib.c:186: error: ‘ta_param_holder’ undeclared (first
use in this function)<br>
talib.c:191: error: ‘ret_code’ undeclared (first use in
this function)<br>
talib.c:192: error: ‘TA_SUCCESS’ undeclared (first use
in this function)<br>
talib.c:197: error: ‘ParamHolder’ has no member named
‘p’<br>
talib.c: In function ‘ta_func_get_input_count’:<br>
talib.c:210: error: invalid type argument of ‘->’
(have ‘int’)<br>
talib.c: In function
‘ta_func_get_option_input_count’:<br>
talib.c:218: error: invalid type argument of ‘->’
(have ‘int’)<br>
talib.c: In function ‘ta_func_get_output_count’:<br>
talib.c:226: error: invalid type argument of ‘->’
(have ‘int’)<br>
talib.c: In function ‘ta_func_setup_in_integer’:<br>
talib.c:283: error: ‘TA_RetCode’ undeclared (first use
in this function)<br>
talib.c:283: error: expected ‘;’ before
‘ret_code’<br>
talib.c:287: error: ‘ret_code’ undeclared (first use in
this function)<br>
talib.c:287: error: ‘ParamHolder’ has no member named
‘p’<br>
talib.c:288: error: ‘TA_SUCCESS’ undeclared (first use
in this function)<br>
talib.c: In function ‘ta_func_setup_in_real’:<br>
talib.c:299: error: ‘TA_RetCode’ undeclared (first use
in this function)<br>
talib.c:299: error: expected ‘;’ before
‘ret_code’<br>
talib.c:303: error: ‘ParamHolder’ has no member named
‘in’<br>
talib.c:305: error: ‘ret_code’ undeclared (first use in
this function)<br>
talib.c:305: error: ‘ParamHolder’ has no member named
‘p’<br>
talib.c:306: error: ‘TA_SUCCESS’ undeclared (first use
in this function)<br>
talib.c: In function ‘ta_func_setup_in_price’:<br>
talib.c:312: error: ‘TA_RetCode’ undeclared (first use
in this function)<br>
talib.c:312: error: expected ‘;’ before
‘ret_code’<br>
talib.c:315: error: ‘ParamHolder’ has no member named
‘in’<br>
talib.c:316: error: ‘ret_code’ undeclared (first use in
this function)<br>
talib.c:316: error: ‘ParamHolder’ has no member named
‘p’<br>
talib.c:317: error: ‘TA_SUCCESS’ undeclared (first use
in this function)<br>
talib.c: In function
‘ta_func_setup_opt_in_integer’:<br>
talib.c:328: error: ‘TA_RetCode’ undeclared (first use
in this function)<br>
talib.c:328: error: expected ‘;’ before
‘ret_code’<br>
talib.c:331: error: ‘ret_code’ undeclared (first use in
this function)<br>
talib.c:331: error: ‘ParamHolder’ has no member named
‘p’<br>
talib.c:332: error: ‘TA_SUCCESS’ undeclared (first use
in this function)<br>
talib.c: In function ‘ta_func_setup_opt_in_real’:<br>
talib.c:343: error: ‘TA_RetCode’ undeclared (first use
in this function)<br>
talib.c:343: error: expected ‘;’ before
‘ret_code’<br>
talib.c:347: error: ‘ret_code’ undeclared (first use in
this function)<br>
talib.c:347: error: ‘ParamHolder’ has no member named
‘p’<br>
talib.c:348: error: ‘TA_SUCCESS’ undeclared (first use
in this function)<br>
talib.c: In function ‘ta_func_setup_out_real’:<br>
talib.c:359: error: ‘TA_RetCode’ undeclared (first use
in this function)<br>
talib.c:359: error: expected ‘;’ before
‘ret_code’<br>
talib.c:367: error: ‘ParamHolder’ has no member named
‘out’<br>
talib.c:370: error: ‘ret_code’ undeclared (first use in
this function)<br>
talib.c:370: error: ‘ParamHolder’ has no member named
‘p’<br>
talib.c:371: error: ‘TA_SUCCESS’ undeclared (first use
in this function)<br>
talib.c: In function ‘ta_func_setup_out_integer’:<br>
talib.c:377: error: ‘TA_RetCode’ undeclared (first use
in this function)<br>
talib.c:377: error: expected ‘;’ before
‘ret_code’<br>
talib.c:385: error: ‘ParamHolder’ has no member named
‘out’<br>
talib.c:388: error: ‘ret_code’ undeclared (first use in
this function)<br>
talib.c:388: error: ‘ParamHolder’ has no member named
‘p’<br>
talib.c:389: error: ‘TA_SUCCESS’ undeclared (first use
in this function)<br>
talib.c: In function ‘ta_func_call’:<br>
talib.c:400: error: ‘TA_RetCode’ undeclared (first use
in this function)<br>
talib.c:400: error: expected ‘;’ before
‘ret_code’<br>
talib.c:402: error: ‘TA_Integer’ undeclared (first use
in this function)<br>
talib.c:402: error: expected ‘;’ before
‘out_start’<br>
talib.c:407: error: ‘ret_code’ undeclared (first use in
this function)<br>
talib.c:407: error: ‘ParamHolder’ has no member named
‘p’<br>
talib.c:407: error: ‘out_start’ undeclared (first use
in this function)<br>
talib.c:407: error: ‘out_num’ undeclared (first use in
this function)<br>
talib.c:408: error: ‘TA_SUCCESS’ undeclared (first use
in this function)<br>
talib.c:417: error: ‘ParamHolder’ has no member named
‘out’<br>
talib.c: In function ‘ta_func_lookback’:<br>
talib.c:426: error: ‘TA_RetCode’ undeclared (first use
in this function)<br>
talib.c:426: error: expected ‘;’ before
‘ret_code’<br>
talib.c:428: error: ‘TA_Integer’ undeclared (first use
in this function)<br>
talib.c:428: error: expected ‘;’ before
‘out_lookback’<br>
talib.c:431: error: ‘ret_code’ undeclared (first use in
this function)<br>
talib.c:431: error: ‘ParamHolder’ has no member named
‘p’<br>
talib.c:431: error: ‘out_lookback’ undeclared (first
use in this function)<br>
talib.c:432: error: ‘TA_SUCCESS’ undeclared (first use
in this function)<br>
talib.c: In function ‘Init_talib’:<br>
talib.c:446: error: ‘TA_Input_Price’ undeclared (first
use in this function)<br>
talib.c:447: error: ‘TA_Input_Real’ undeclared (first
use in this function)<br>
talib.c:448: error: ‘TA_Input_Integer’ undeclared
(first use in this function)<br>
talib.c:449: error: ‘TA_IN_PRICE_OPEN’ undeclared
(first use in this function)<br>
talib.c:450: error: ‘TA_IN_PRICE_HIGH’ undeclared
(first use in this function)<br>
talib.c:451: error: ‘TA_IN_PRICE_LOW’ undeclared (first
use in this function)<br>
talib.c:452: error: ‘TA_IN_PRICE_CLOSE’ undeclared
(first use in this function)<br>
talib.c:453: error: ‘TA_IN_PRICE_VOLUME’ undeclared
(first use in this function)<br>
talib.c:454: error: ‘TA_IN_PRICE_OPENINTEREST’
undeclared (first use in this function)<br>
talib.c:455: error: ‘TA_IN_PRICE_TIMESTAMP’ undeclared
(first use in this function)<br>
talib.c:456: error: ‘TA_OptInput_RealRange’ undeclared
(first use in this function)<br>
talib.c:457: error: ‘TA_OptInput_RealList’ undeclared
(first use in this function)<br>
talib.c:458: error: ‘TA_OptInput_IntegerRange’
undeclared (first use in this function)<br>
talib.c:459: error: ‘TA_OptInput_IntegerList’
undeclared (first use in this function)<br>
talib.c:460: error: ‘TA_OPTIN_IS_PERCENT’ undeclared
(first use in this function)<br>
talib.c:461: error: ‘TA_OPTIN_IS_DEGREE’ undeclared
(first use in this function)<br>
talib.c:462: error: ‘TA_OPTIN_IS_CURRENCY’ undeclared
(first use in this function)<br>
talib.c:463: error: ‘TA_OPTIN_ADVANCED’ undeclared
(first use in this function)<br>
talib.c:464: error: ‘TA_Output_Real’ undeclared (first
use in this function)<br>
talib.c:465: error: ‘TA_Output_Integer’ undeclared
(first use in this function)<br>
talib.c:466: error: ‘TA_OUT_LINE’ undeclared (first use
in this function)<br>
talib.c:467: error: ‘TA_OUT_DOT_LINE’ undeclared (first
use in this function)<br>
talib.c:468: error: ‘TA_OUT_DASH_LINE’ undeclared
(first use in this function)<br>
talib.c:469: error: ‘TA_OUT_DOT’ undeclared (first use
in this function)<br>
talib.c:470: error: ‘TA_OUT_HISTO’ undeclared (first
use in this function)<br>
talib.c:471: error: ‘TA_OUT_PATTERN_BOOL’ undeclared
(first use in this function)<br>
talib.c:472: error: ‘TA_OUT_PATTERN_BULL_BEAR’
undeclared (first use in this function)<br>
talib.c:473: error: ‘TA_OUT_PATTERN_STRENGTH’
undeclared (first use in this function)<br>
talib.c:474: error: ‘TA_OUT_POSITIVE’ undeclared (first
use in this function)<br>
talib.c:475: error: ‘TA_OUT_NEGATIVE’ undeclared (first
use in this function)<br>
talib.c:476: error: ‘TA_OUT_ZERO’ undeclared (first use
in this function)<br>
talib.c:477: error: ‘TA_OUT_UPPER_LIMIT’ undeclared
(first use in this function)<br>
talib.c:478: error: ‘TA_OUT_LOWER_LIMIT’ undeclared
(first use in this function)<br>
talib.c:479: error: ‘TA_MAType_SMA’ undeclared (first
use in this function)<br>
talib.c:480: error: ‘TA_MAType_EMA’ undeclared (first
use in this function)<br>
talib.c:481: error: ‘TA_MAType_WMA’ undeclared (first
use in this function)<br>
talib.c:482: error: ‘TA_MAType_DEMA’ undeclared (first
use in this function)<br>
talib.c:483: error: ‘TA_MAType_TEMA’ undeclared (first
use in this function)<br>
talib.c:484: error: ‘TA_MAType_TRIMA’ undeclared (first
use in this function)<br>
talib.c:485: error: ‘TA_MAType_KAMA’ undeclared (first
use in this function)<br>
talib.c:486: error: ‘TA_MAType_MAMA’ undeclared (first
use in this function)<br>
talib.c:487: error: ‘TA_MAType_T3’ undeclared (first
use in this function)<br>
make: *** [talib.o] Error 1</p>
<p>Gem files will remain installed in
/var/lib/gems/1.8/gems/talib_ruby-1.0.3 for inspection.<br>
Results logged to
/var/lib/gems/1.8/gems/talib_ruby-1.0.3/ext/talib/gem_make.out</p></div>Andrewtag:help.rubygems.org,2010-01-19:Comment/79891972011-06-17T20:33:38Z2011-06-17T20:33:38Ztalib_ruby on Debian problem<div><pre>
<code>checking for TA_Initialize() in -lta_lib… no</code>
</pre>
<p>Looks like you are missing a library. You will need to consult
the gem's documentation or author to determine which library this
is. This is not a rubygems issue.</p></div>Eric Hodel