ruby-fann on Linux?

21 views
Skip to first unread message

pete

unread,
Oct 14, 2009, 8:39:05 PM10/14/09
to ruby_fann
Hi All-

I'm trying to install ruby-fann on Linux, I followed installation
instructions, but get this when trying to install the Gem:

Building native extensions. This could take a while...
ERROR: Error installing ruby-fann:
ERROR: Failed to build gem native extension.

/usr/local/bin/ruby extconf.rb
checking for fann_create_standard() in -ldoublefann... yes
creating Makefile

make
gcc -I. -I. -I/usr/local/lib/ruby/1.8/i686-linux -I. -I/usr/local/
include -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -c neural_network.c
In file included from neural_network.c:5:
fann_augment.h:110:2: warning: no newline at end of file
neural_network.c: In function âsym_to_activation_functionâ:
neural_network.c:89: error: âFANN_SIN_SYMMETRICâ undeclared (first use
in this function)
neural_network.c:89: error: (Each undeclared identifier is reported
only once
neural_network.c:89: error: for each function it appears in.)
neural_network.c:91: error: âFANN_COS_SYMMETRICâ undeclared (first use
in this function)
neural_network.c:93: error: âFANN_SINâ undeclared (first use in this
function)
neural_network.c:95: error: âFANN_COSâ undeclared (first use in this
function)
neural_network.c: In function âactivation_function_to_symâ:
neural_network.c:135: error: âFANN_SIN_SYMMETRICâ undeclared (first
use in this function)
neural_network.c:137: error: âFANN_COS_SYMMETRICâ undeclared (first
use in this function)
neural_network.c:139: error: âFANN_SINâ undeclared (first use in this
function)
neural_network.c:141: error: âFANN_COSâ undeclared (first use in this
function)
neural_network.c: In function âget_neuronsâ:
neural_network.c:744: error: âFANN_NETTYPE_LAYERâ undeclared (first
use in this function)
neural_network.c: In function âget_network_typeâ:
neural_network.c:827: error: storage size of ânet_typeâ isnât known
neural_network.c:833: error: âFANN_NETTYPE_LAYERâ undeclared (first
use in this function)
neural_network.c:837: error: âFANN_NETTYPE_SHORTCUTâ undeclared (first
use in this function)
make: *** [neural_network.o] Error 1


Did I miss something? I installed FANN, then tried to run the Gem
install.

Thank you!
Reply all
Reply to author
Forward
0 new messages