Hello Christophe,
are you requiring rubygems and bundler/setup in your oneproc.rb ?
---8<---
require 'rubygems'
require 'bundler/setup'
require 'ruote'
# ...
--->8---
Best regards,
--
John Mettraux - http://lambda.io/processi
Hello,
if you're still stuck, maybe you could show your Gemfile, Gemfile.lock and
oneproc.rb
Cheers,
have you tried replacing
#!/usr/bin/ruby
by
#!/usr/bin/env ruby
in your oneproc.rb, so that your current ruby is used, not your system ruby.
If oneproc.rb comes from ruote, please tell me where I can fix that.
Thanks in advance,
ruby examples/ruote_quickstart.rb and I do not believe this is a problem with your example, this is a problem with the ruby environment that I cannot see so far: in a way it looks that something is missing somewhere.--
you received this message because you are subscribed to the "ruote users" group.
to post : send email to openwfe...@googlegroups.com
to unsubscribe : send email to openwferu-use...@googlegroups.com
more options : http://groups.google.com/group/openwferu-users?hl=en
OK, ruote_quickstart.rb doesn't have a hashbang line. Nothing to fix for me,
great.
> I used to install ruote many times and had some other problems but all with
> quick fixes ran perfectly.
> This time I do not see where to look at. I cleaned the Gems, the Bundle
> files and so on. i have only one ruby version installed.
what do
---8<---
which bundle
cat `which bundle`
--->8---
yield?
It might be interesting to see what's the first line of the bundle script.
Cheers,
sorry, I'm out of ideas, I never had such an issue with Bundler.
John
yep thanks for your time, I never had it as well, I'll investigate more and let you know if I find the issue.
cheers
Ah yes,
https://github.com/jmettraux/ruote/commit/a35ac57183aa420c259dfe6dcfa77c8b0d8efa20
Many thanks,
> finally I have something running in a ruby 1.8.7p302 and Rails 3.0.10
> environment.
> Note: I advise you to be careful when installing ruby 1.9.2 on Debian
> with rvm, there are missing libraries from the official rvm
> installation (?? disappeared from ruby as I had to run> sudo apt-get -
> y install zlib1g-dev libssl-dev libreadline5-dev libyaml-dev build-
> essential bison checkinstall to have it working...)
Let's see:
$ rvm notes
You _must_ read 'rvm requirements' for additional OS specific
requirements for various rubies, and native-extension gems. Expect
failures until those are met!
$ rvm requirements
Additional Dependencies:
# For Ruby / Ruby HEAD (MRI, Rubinius, & REE), install the
following:
ruby: /usr/bin/apt-get install build-essential openssl libreadline6
libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev
libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev
libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison
subversion
So your point is that one should read the documentation? At least `rvm
notes` is shown during rvm installation.
Sorry for being that harsh, but rvm's documentation is really good and
the installation notes are nearly too noisy...
> Anyway the issue was related to the combination of using rubygems and
> a Gemfile from ruote-on-rails example where the gem is not installed
> locally as pointed to a git repository.
Hmm, perhaps it's time to update ruote on rails. It's a shame I've been
absent from ruote that long, sorry.
Cheers,
Torsten
> I installed and ran successfully this ruote-on-rails e.g. I ran
> processes thru the Rails interface.
> Now I'm trying to run some ruote tests from / within the same
> environment. I took the "first run" example found in your pages, put
> it in a ruby script (let's call it oneproc.rb) and tried from the
> "rails application" directory to run the test in the 2 following ways:
Despite the fact you have solved the problem for yourself, some hints
for fellows how get stuck at the same place: It's always better to
either use a clean slate for such trials or load the existing
environment properly. For the latter, you could have added
require 'config/application'
instead of the other requires, thous loading the same stuff
ruote-on-rails does.
HTH,
Torsten
--
you received this message because you are subscribed to the "ruote users" group.
to post : send email to openwferu-users@googlegroups.com
to unsubscribe : send email to openwferu-users+unsubscribe@googlegroups.com
more options : http://groups.google.com/group/openwferu-users?hl=en
> Please note that solving the "rvm requirements" problem took me about an
> hour when I was indeed trying to solve a*rubygem 'require' problem* in a
> simple ruby script, which took me more than a day, just because rubygems
> is unable to find remote gems when Rails is (because of Bundler?)
Yes, because of Bundler. But you wrote that you required
"bundler/setup", so that you should have had the same environment
(regarding the gems) as in Rails.
> and certainly because I'm very very slow.
> At least, removing the reference to git in the Gemfile solved all my issues.
> All of it obvious to you?
No, unfortunately not. Your issue with Bundler not finding the "git
gems", although bundled, isn't far from obvious for me. I'd like to be
able to help you find the real cause of the problem. As far as I could
see, you were using a system wide ruby installation � perhaps bundler
had troubles with that. But that's a wild guess and I don't really
believe in it.
Thx for _your_ patience with me,
Torsten
>> and certainly because I'm very very slow.
>> At least, removing the reference to git in the Gemfile solved all my issues.
>> All of it obvious to you?
>
> No, unfortunately not. Your issue with Bundler not finding the "git
> gems", although bundled, isn't far from obvious for me.
Oi, sorry, s/isn't/is/
Cheers,
Torsten