]> AND Public Git Repository - simgrid.git/blobdiff - examples/ruby/MasterSlave.tesh
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
let the binding examples work without the funky symlinks. This is a step further...
[simgrid.git] / examples / ruby / MasterSlave.tesh
index da92c498c114c073920aace2e51f2447dc1cd183..3a38d3fedf7f80864fe513a6c043b3a3c0334514 100644 (file)
@@ -1,5 +1,9 @@
 # MasterSlave Ruby Example
-$ ruby MasterSlave.rb
+
+# This setenv and the -I arg are mandatory until the make install only
+! setenv RUBYLIB=../../lib
+
+$ ruby -I ../../src/bindings/ruby MasterSlave.rb
 > [Tremblay:Master:(1) 0.000000] [ruby/INFO] args[0]=20
 > [Tremblay:Master:(1) 0.000000] [ruby/INFO] args[1]=50000000
 > [Tremblay:Master:(1) 0.000000] [ruby/INFO] args[2]=1000000