Installation on Mac OS X

56 views
Skip to first unread message

ashe...@googlemail.com

unread,
Jul 12, 2008, 3:15:58 AM7/12/08
to ruby_fann
I installed Fann 2.1 without a problem. Examples seem to run fine. As
far as I can tell everything is installed in /usr/local/lib:

=> pkg-config --libs fann
-L/usr/local/lib -lm -lfann

Now i'm trying to install Ruby-Fann, but I get this:

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

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
extconf.rb install ruby-fann
checking for fann_create_standard() in -ldoublefann... no
FANN must be installed and available in /usr/local or passed in with --
with-fann-dir. Windows users should use ruby compiled in Cygwin or an
equivalent, such as MingW. Ruby installed with the OneClickInstaller
is not sufficient.


Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/ruby-
fann-0.7.8 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/ruby-fann-0.7.8/ext/
ruby_fann/gem_make.out

Any help would be appreciated.

Steven Miers

unread,
Jul 13, 2008, 5:11:30 PM7/13/08
to ruby...@googlegroups.com
Hi, what version of ruby do you have installed? Type the following in
your terminal/shell:

ruby -v

Regards,
- Steven Miers

On Jul 12, 2008, at 2:15 AM, "ashe...@googlemail.com" <ashe...@googlemail.com

ashe...@googlemail.com

unread,
Jul 14, 2008, 4:14:39 PM7/14/08
to ruby_fann
was: ruby 1.8.6 (2008-03-03 patchlevel 114) [universal-darwin9.0]

now: ruby 1.8.7 (2008-06-20 patchlevel 22) [i686-darwin9.4.0]

same problem.

Steven Miers

unread,
Jul 14, 2008, 4:58:03 PM7/14/08
to ruby...@googlegroups.com
It looks like you have ruby installed under /usr/lib, instead of /usr/
local. If you want a quick fix, you can probably build (or copy) the
fann stuff to /usr.

You would need to copy the fann header files from:
/usr/local/include to /usr/include
And the shared libraries from
/usr/local/lib to /usr/lib

I *think* the following commands should catch everything:
sudo cp /usr/local/include/*fann* /usr/include/
sudo cp /usr/local/lib/*fann* /usr/lib/

Then, you'll probably have to reinstall the ruby-fann gem.

Good luck. I haven't yet tested under ruby 1.8.7, but I don't think
it will be a problem.

ashe...@googlemail.com

unread,
Jul 17, 2008, 3:37:55 PM7/17/08
to ruby_fann
That did not work, however after installing rubygems-1.20 from source
after installing ruby 1.8.7 from source (and of course removing old /
usr/bin/ruby and /usr/bin/gem) /usr/local/gem works to install ruby-
fann.

Thanks.
Reply all
Reply to author
Forward
0 new messages