[ANN] igraph 0.9.0 Released

A

Alex Gutteridge

igraph version 0.9.0 has been released!

* <http://igraph.rubyforge.org/>

IGraph is a Ruby extension for interfacing with igraph (http://cneurocvs.rmki.kfki.hu/igraph/
), a C library for creating and manipulating graphs with a particular
emphasis on network analysis functions.

IGraph now wraps 99% of igraph functions including functions for
randomly and deterministically generating graphs, many functions for
analysing the structure of graphs, 2D and 3D graph layout functions
and support for reading and writing graphs in various file formats.

This release basically completes the wrapping process. Future releases
will be for bug fixes and behind the scenes code clean-up.

Changes:

# 0.9 2007-11-19

* All igraph functions wrapped
* Documentation updated with examples

* <http://igraph.rubyforge.org/>

Alex Gutteridge

Bioinformatics Center
Kyoto University
 
U

Une Bévue

Alex Gutteridge said:
igraph version 0.9.0 has been released!

does it install successfully on Mac OS X 10.4.11 ???

because with :
----------------------------------------------------------------------
----------------------------------------------------------------------

I got :
RubyMate r6354 running Ruby r1.8.6 (/opt/local/bin/ruby)
dyld: NSLinkModule() error
dyld: Symbol not found: _open_memstream
Referenced from:
/opt/local/lib/ruby/gems/1.8/gems/igraph-0.9.0/test/igraph.bundle
Expected in: flat namespace

How did i install it ?

igraph :

$ ./configure --prefix=/opt/local
$ make
$ make check

$ sudo make install

and the gem afterwards :

~/work/Ruby/iGraph/igraph-0.4.4%> sudo gem install igraph --
--with-igraph-include=/opt/local/include/igraph
Building native extensions. This could take a while...
Successfully installed igraph-0.9.0
Installing ri documentation for igraph-0.9.0...
Installing RDoc documentation for igraph-0.9.0...


may be i've forgotten something ???
 
U

Une Bévue

Une Bévue said:
because with :

OOPS :
----------------------------------------------------------------------

#! /usr/bin/env ruby

require 'igraph'

g = IGraph::GenerateRandom.erdos_renyi_game(IGraph::ERDOS_RENYI_GNP,
1000, 5.0/1000,
false, false)

d = g.diameter(false,true).size-1
puts "Diameter of a random graph with average degree 5: #{d}"
 
C

csardi.gabor

Une, maybe Alex has a better answer, but it seems that the Ruby igraph
extension uses the open_memstream function, which is not available in
OSX.
A temporary solution would be to find open_memstream calls in the code
and comment out functions which use it. This way you might lose some
exporting functions, maybe all of them.

Gabor
 
A

Alex Gutteridge

Yup, I'd not tested on OSX, but I'll get on it and see if there's a =20
better way to implement the read/write functions.

Until then Gabor's fix should work (though like he says you won't be =20
able to use the read/write methods): get the source from svn, remove =20
ext/cIGraph_file.c, run extconf.rb and make by hand to install.

AlexG

Une, maybe Alex has a better answer, but it seems that the Ruby igraph
extension uses the open_memstream function, which is not available in
OSX.
A temporary solution would be to find open_memstream calls in the code
and comment out functions which use it. This way you might lose some
exporting functions, maybe all of them.

Gabor

Alex Gutteridge

Bioinformatics Center
Kyoto University
 
A

Alex Gutteridge

does it install successfully on Mac OS X 10.4.11 ???

I've released a new gem (0.9.1) which disables the file read/write =20
methods under OSX. This allows the rest of the library to compile and =20=

function correctly, but obviously isn't an ideal solution. In the =20
longer term I'll look into re-doing those functions so that they don't =20=

use open_memstream and friends.

NB: Under 10.5 running on my PPC Powerbook I had to use:

sudo env ARCHFLAGS=3D'-arch ppc' gem install igraph -t -- --with-igraph-=20=

include=3D/usr/local/include/igraph/

To get it to install (otherwise it tries to build a universal binary =20
that isn't compatible with my PPC igraph install), though under 10.4 I =20=

don't think you'll need that and:

sudo gem install igraph -t -- --with-igraph-include=3D/usr/local/include/=20=

igraph/

Should be enough. Let me know if it still gives you problems and I'll =20=

hit it again.

Alex Gutteridge

Bioinformatics Center
Kyoto University
 
U

Une Bévue

Alex Gutteridge said:
Should be enough. Let me know if it still gives you problems and I'll
hit it again.

It is enough with :

~%> sudo gem uninstall igraph
Password:
Successfully uninstalled igraph-0.9.0
~%> sudo gem install igraph --
--with-igraph-include=/opt/local/include/igraph
Bulk updating Gem source index for: http://gems.rubyforge.org
Building native extensions. This could take a while...
Successfully installed igraph-0.9.1
1 gem installed
Installing ri documentation for igraph-0.9.1...
Installing RDoc documentation for igraph-0.9.1...

i should mention i've upgraded gem system itself to 0.9.5 in the
meantime

thanks to all !
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,021
Latest member
AkilahJaim

Latest Threads

Top