[ruote:2319] ruote-kit install

6 views
Skip to first unread message

Christophe Malaurie

unread,
May 19, 2010, 11:41:02 AM5/19/10
to ruote
Hi John

couldn't find the thread for ruote-kit and my post is more for
Kenneth. Please feel free to redirect me to the right thread.

Issue with ruote-kit environment (used the full procedure given in the
REAME.doc), after having installed ruote-kit with the root user.

1) Running rackup from the installation directory (somewhere in /var/
lib/gems/1.8/....)
- run rackup as root (using then config.ru and Gemfile provided with
the git distribution) ==> OK, starts with no modification to any file
- run rackup as "user" ==> NOK as the gem 'jeweler' cannot be found
(as it is with root)
- commenting the :test group in the Gemfile , then run rackup as
"user" ==> OK (after giving rights to the "user" for the working
directory)
2) Running rackup from the another directory (after having copied the
2 files config.ru and Gemfile)
- run rackup with root ==> NOK, config.ru:13:in `require': no such
file to load -- lib/ruote-kit (LoadError)
- run rackup with "user" ==> NOK, same error

==> Apart the jeweler issuer for testing (why does it find it with
root?), it looks then the Bundler.setup does not include the ruote-kit
path into the lib path. Any idea on how I could do that?

many thanks

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

Torsten Schönebaum

unread,
May 19, 2010, 6:14:56 PM5/19/10
to openwfe...@googlegroups.com
Am 19.05.2010 17:41, schrieb Christophe Malaurie:

> Issue with ruote-kit environment (used the full procedure given in the
> REAME.doc), after having installed ruote-kit with the root user.
>
> 1) Running rackup from the installation directory (somewhere in /var/
> lib/gems/1.8/....)
> - run rackup as root (using then config.ru and Gemfile provided with
> the git distribution) ==> OK, starts with no modification to any file
> - run rackup as "user" ==> NOK as the gem 'jeweler' cannot be found
> (as it is with root)
> - commenting the :test group in the Gemfile , then run rackup as
> "user" ==> OK (after giving rights to the "user" for the working
> directory)

I see that you have installed RuoteKit as a RubyGem. But you really
shouldn't mess up the directory where the gem's files are stored.
RubyGems are meant to be included as a library.

You just need two files to do that: config.ru and Gemfile. I've posted a
gist with some example contents: http://gist.github.com/406108

Just put those files in an empty directory, call bundle install and
rackup and have a running RuoteKit.

Sorry if the docs are a bit misleading at the moment. I will try to fix
that asap.

HTH,
Torsten

John Mettraux

unread,
May 19, 2010, 7:38:16 PM5/19/10
to openwfe...@googlegroups.com

On Wed, May 19, 2010 at 08:41:02AM -0700, Christophe Malaurie wrote:
>
> Hi John
>
> couldn't find the thread for ruote-kit and my post is more for
> Kenneth. Please feel free to redirect me to the right thread.

Hello Christophe,

I would hate it if there were a right "thread" for ruote-kit. Imagine 1000 messages in 1 thread with the vague title "ruote-kit".

The common rule among mailing lists is 1 thread per issue.

Replying to yourself is 100% OK.


> Issue with ruote-kit environment (used the full procedure given in the
> REAME.doc), after having installed ruote-kit with the root user.
>
> 1) Running rackup from the installation directory (somewhere in /var/
> lib/gems/1.8/....)
> - run rackup as root (using then config.ru and Gemfile provided with
> the git distribution) ==> OK, starts with no modification to any file
> - run rackup as "user" ==> NOK as the gem 'jeweler' cannot be found
> (as it is with root)
> - commenting the :test group in the Gemfile , then run rackup as
> "user" ==> OK (after giving rights to the "user" for the working
> directory)
> 2) Running rackup from the another directory (after having copied the
> 2 files config.ru and Gemfile)
> - run rackup with root ==> NOK, config.ru:13:in `require': no such
> file to load -- lib/ruote-kit (LoadError)
> - run rackup with "user" ==> NOK, same error
>
> ==> Apart the jeweler issuer for testing (why does it find it with
> root?), it looks then the Bundler.setup does not include the ruote-kit
> path into the lib path. Any idea on how I could do that?

(Christophe found a solution and detailed it at

http://groups.google.com/group/openwferu-users/browse_thread/thread/6d3b4b4b234827d2

)


Many thanks,

--
John Mettraux - http://jmettraux.wordpress.com

Christophe Malaurie

unread,
May 20, 2010, 2:43:56 AM5/20/10
to openwfe...@googlegroups.com
Hi John
I posted 2 threads for 2 separate issues.
- one concerning ruote-kit launch (Torsten has replied)
- one concerning another issue with installation.

So please confirm that it is ok for me to poste ruote-kit related issues in the openwfer-users group.
And have a look to the second thread, may be my title is misleading but it concerns another issue that I have fixed, you or Torsten might be interested.
Tx for the reply
Cheers
Christophe

John Mettraux

unread,
May 20, 2010, 3:11:10 AM5/20/10
to openwfe...@googlegroups.com

On Thu, May 20, 2010 at 08:43:56AM +0200, Christophe Malaurie wrote:
>
> I posted 2 threads for 2 separate issues.
> - one concerning ruote-kit launch (Torsten has replied)
> - one concerning another issue with installation.

Oops,

I am sorry.

> So please confirm that it is ok for me to poste ruote-kit related issues in
> the openwfer-users group.

It's totally OK.

> And have a look to the second thread, may be my title is misleading but it
> concerns another issue that I have fixed, you or Torsten might be
> interested.

Many thanks !

Christophe Malaurie

unread,
May 20, 2010, 3:14:50 AM5/20/10
to ruote
Hi Torsten

I did what you said, had still a problem, but I fixed it by commenting
out the following line in config.ru :
#require 'lib/ruote-kit'
If you leave this line when running from any place in your file system
(so just with the 2 files), you'll get and error message.
Tx anyway
Issue fixed
Next topic will be to daemonize (rackup -D) which is not working at
all, but I've seen some threads about it in the rails3 user group.
Cheers
Christophe

On May 20, 12:14 am, Torsten Schönebaum <torsten.schoeneb...@web.de>
wrote:

Torsten Schönebaum

unread,
May 20, 2010, 3:50:50 AM5/20/10
to openwfe...@googlegroups.com
Hi Christophe

Christophe Malaurie wrote:
> I did what you said, had still a problem, but I fixed it by commenting
> out the following line in config.ru :
> #require 'lib/ruote-kit'

Did you read my gist (http://gist.github.com/406108)? There's no such
line in there.

> If you leave this line when running from any place in your file system
> (so just with the 2 files), you'll get and error message.

Sure. Ruby tries to find a file 'lib/ruote-kit.rb' somewhere in its load
path, but there is no such file. There should be 'ruote-kit.rb' in the
load path. But no need to require that, Bundler does that.

> Tx anyway

Never mind. I updated RuoteKit's readme with some more detailed
quickstart instructions. Thanks for the strong hint to do that ;-)

> Next topic will be to daemonize (rackup -D) which is not working at
> all, but I've seen some threads about it in the rails3 user group.

Never tried to use that before. I'm deploying using Passenger and it's
working fine. You'll have to make sure there's a running worker, though.

Bye,
Reply all
Reply to author
Forward
0 new messages