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
does it install successfully on Mac OS X 10.4.11 ???
because with :
···
Alex Gutteridge <alexg@kuicr.kyoto-u.ac.jp> wrote:
igraph version 0.9.0 has been released!
----------------------------------------------------------------------
----------------------------------------------------------------------
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 ???
--
Une Bévue
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}"
···
Une Bévue <unbewusst.sein@weltanschauung.com.invalid> wrote:
----------------------------------------------------------------------
--
Une Bévue
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 Gutteridge
Bioinformatics Center
Kyoto University
···
On 20 Nov 2007, at 00:10, Une Bévue wrote:
Alex Gutteridge <alexg@kuicr.kyoto-u.ac.jp> wrote:
igraph version 0.9.0 has been released!
does it install successfully on Mac OS X 10.4.11 ???
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, unbewusst.s...@weltanschauung.com.invalid (Une Bévue) wrote:
Une Bévue <unbewusst.s...@weltanschauung.com.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}"
> ----------------------------------------------------------------------
--
Une Bévue
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 !
···
Alex Gutteridge <alexg@kuicr.kyoto-u.ac.jp> wrote:
Should be enough. Let me know if it still gives you problems and I'll
hit it again.
--
Une Bévue
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, csardi.gabor@gmail.com wrote:
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, unbewusst.s...@weltanschauung.com.invalid (Une > Bévue) wrote:
Une Bévue <unbewusst.s...@weltanschauung.com.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}"
----------------------------------------------------------------------
--
Une Bévue
Alex Gutteridge
Bioinformatics Center
Kyoto University