Installation on Fedora Core 9

16 views
Skip to first unread message

Harold

unread,
Jul 29, 2008, 2:27:01 PM7/29/08
to ruby_fann
Hi,

I've compiled FANN 2.1 on Fedora Core 9. Installation of the ruby-fann
gem seems to go without problems:

$ sudo gem install ruby-fann
Building native extensions. This could take a while...
Successfully installed ruby-fann-0.7.8
1 gem installed
Installing ri documentation for ruby-fann-0.7.8...
Installing RDoc documentation for ruby-fann-0.7.8...

To test this out, I used the code on the project's home page:
http://ruby-fann.rubyforge.org and saved it as fann-test.rb.

As you can see below, the gem cannot find the file: libdoublefann.so.2

$ ruby fann_test.rb
/usr/lib64/ruby/gems/1.8/gems/ruby-fann-0.7.8/ext/ruby_fann/
neural_network.so: libdoublefann.so.2: cannot open shared object file:
No such file or directory - /usr/lib64/ruby/gems/1.8/gems/ruby-
fann-0.7.8/ext/ruby_fann/neural_network.so (LoadError)
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
32:in `require'
from fann_test.rb:2

However, it is properly installed under /usr/local/lib:

$ ls /usr/local/lib | grep fann
libdoublefann.a
libdoublefann.la
libdoublefann.so
libdoublefann.so.2
libdoublefann.so.2.0.1
libfann.a
libfann.la
libfann.so
libfann.so.2
libfann.so.2.0.1
libfixedfann.a
libfixedfann.la
libfixedfann.so
libfixedfann.so.2
libfixedfann.so.2.0.1
libfloatfann.a
libfloatfann.la
libfloatfann.so
libfloatfann.so.2
libfloatfann.so.2.0.1


Any ideas?
Thanks and regards,
-Harold

Steven Miers

unread,
Jul 29, 2008, 2:39:24 PM7/29/08
to ruby...@googlegroups.com
Harold,

Hi. You might try doing an ldconfig. I've had to do this on a few
fedora systems after installing fann. The other thing I noticed is
that your ruby installation seems to be under /usr/lib64. You might
try putting the fann libs and headers in a likewise path (/usr/lib64
for the libs). I'm not sure if you have a corresponding /usr/
include64 or not.

Let me know if this works; if not, I'll consult one of the engineers
here who I know is running ruby-fann under FC9.

-Steven Miers

Harold

unread,
Jul 30, 2008, 11:09:44 PM7/30/08
to ruby_fann
Steven,

Thanks so much for your help. ldconfig did the trick!

-Harold

On Jul 29, 2:39 pm, Steven Miers <steven.mi...@gmail.com> wrote:
> Harold,
>
> Hi.  You might try doing an ldconfig.  I've had to do this on a few  
> fedora systems after installing fann.  The other thing I noticed is  
> that your ruby installation seems to be under /usr/lib64.  You might  
> try putting the fann libs and headers in a likewise path (/usr/lib64  
> for the libs).  I'm not sure if you have a corresponding /usr/
> include64 or not.
>
> Let me know if this works; if not, I'll consult one of the engineers  
> here who I know is running ruby-fann under FC9.
>
> -Steven Miers
>
> On Jul 29, 2008, at 1:27 PM, Harold wrote:
>
>
>
> > Hi,
>
> > I've compiled FANN 2.1 on Fedora Core 9. Installation of the ruby-fann
> > gem seems to go without problems:
>
> > $ sudo gem install ruby-fann
> > Building native extensions.  This could take a while...
> > Successfully installed ruby-fann-0.7.8
> > 1 gem installed
> > Installing ri documentation for ruby-fann-0.7.8...
> > Installing RDoc documentation for ruby-fann-0.7.8...
>
> > To test this out, I used the code on the project's home page:
> >http://ruby-fann.rubyforge.organd saved it as fann-test.rb.

Steven Miers

unread,
Jul 30, 2008, 11:16:56 PM7/30/08
to ruby...@googlegroups.com
Harold,

That's great news. Hopefully this will help others with similar
issues. I'm thinking of including/building fann along with ruby-fann
so these issues go away completely.

-Steven Miers

Harold A. Giménez Ch.

unread,
Jul 30, 2008, 11:27:30 PM7/30/08
to ruby...@googlegroups.com
That would be great, or even maybe a wiki where people can post installation instructions for each platform and linux distro.

The elegance of Ruby on top of the FANN library...thanks for developing these bindings and making that possible!

-H
Reply all
Reply to author
Forward
0 new messages