# Igraph 0.9.0 Released

**URL:** <https://www.ruby-forum.com/t/igraph-0-9-0-released/120616>\
**Category:** Ruby\
**Created:** [November 19, 2007, 8:24am UTC](https://www.ruby-forum.com/t/igraph-0-9-0-released/120616 "2007-11-19T08:24:08Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![oscar-alexander](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/e36b37/32.png) [@oscar-alexander](https://www.ruby-forum.com/u/oscar-alexander)\
**Post date:** [November 19, 2007, 8:24am UTC](https://www.ruby-forum.com/t/igraph-0-9-0-released/120616/1 "2007-11-19T08:24:08Z")

</div>

igraph version 0.9.0 has been released!

- [http://igraph.rubyforge.org/](http://igraph.rubyforge.org/)

IGraph is a Ruby extension for interfacing with igraph  
([http://cneurocvs.rmki.kfki.hu/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/](http://igraph.rubyforge.org/)

Alex G.

Bioinformatics Center  
Kyoto University

---

<div class="post-metadata">

**Author:** ![oscar-alexander](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/e36b37/32.png) [@oscar-alexander](https://www.ruby-forum.com/u/oscar-alexander)\
**Post date:** [November 19, 2007, 4:10pm UTC](https://www.ruby-forum.com/t/igraph-0-9-0-released/120616/2 "2007-11-19T16:10:35Z")

</div>

Alex G. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> 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)

> > > essai\_1.rb

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

> > > everything OK

$ 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 ???

---

<div class="post-metadata">

**Author:** ![oscar-alexander](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/e36b37/32.png) [@oscar-alexander](https://www.ruby-forum.com/u/oscar-alexander)\
**Post date:** [November 19, 2007, 4:15pm UTC](https://www.ruby-forum.com/t/igraph-0-9-0-released/120616/3 "2007-11-19T16:15:51Z")

</div>

Une Bévue [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> 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}”

---

<div class="post-metadata">

**Author:** ![oscar-alexander](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/e36b37/32.png) [@oscar-alexander](https://www.ruby-forum.com/u/oscar-alexander)\
**Post date:** [November 20, 2007, 2:01am UTC](https://www.ruby-forum.com/t/igraph-0-9-0-released/120616/4 "2007-11-20T02:01:21Z")

</div>

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

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

AlexG

On 20 Nov 2007, at 07:00, removed\_email\_address@domain.invalid wrote:

> Bévue) wrote:
> 
> > Une Bévue

Alex G.

Bioinformatics Center  
Kyoto University

---

<div class="post-metadata">

**Author:** ![oscar-alexander](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/e36b37/32.png) [@oscar-alexander](https://www.ruby-forum.com/u/oscar-alexander)\
**Post date:** [November 19, 2007, 11:01pm UTC](https://www.ruby-forum.com/t/igraph-0-9-0-released/120616/5 "2007-11-19T23:01:11Z")

</div>

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

On Nov 19, 4:10 pm, removed\_email\_address@domain.invalid (Une

---

<div class="post-metadata">

**Author:** ![oscar-alexander](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/e36b37/32.png) [@oscar-alexander](https://www.ruby-forum.com/u/oscar-alexander)\
**Post date:** [November 20, 2007, 5:36am UTC](https://www.ruby-forum.com/t/igraph-0-9-0-released/120616/6 "2007-11-20T05:36:22Z")

</div>

On 20 Nov 2007, at 00:10, Une Bévue wrote:

> Alex G. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > igraph version 0.9.0 has been released!
> 
> 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  
methods under OSX. This allows the rest of the library to compile and  
function correctly, but obviously isn’t an ideal solution. In the  
longer term I’ll look into re-doing those functions so that they don’t  
use open\_memstream and friends.

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

sudo env ARCHFLAGS=‘-arch ppc’ gem install igraph -t – --with-igraph-  
include=/usr/local/include/igraph/

To get it to install (otherwise it tries to build a universal binary  
that isn’t compatible with my PPC igraph install), though under 10.4 I  
don’t think you’ll need that and:

sudo gem install igraph -t – --with-igraph-include=/usr/local/include/  
igraph/

Should be enough. Let me know if it still gives you problems and I’ll  
hit it again.

Alex G.

Bioinformatics Center  
Kyoto University

---

<div class="post-metadata">

**Author:** ![oscar-alexander](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/e36b37/32.png) [@oscar-alexander](https://www.ruby-forum.com/u/oscar-alexander)\
**Post date:** [November 20, 2007, 9:15am UTC](https://www.ruby-forum.com/t/igraph-0-9-0-released/120616/7 "2007-11-20T09:15:38Z")

</div>

Alex G. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> 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](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 !
