Following readme on ari - stuck at step 5

17 views
Skip to first unread message

Rich Maclannan

unread,
Jan 26, 2012, 10:00:57 AM1/26/12
to jobsworth
Hi!

I've tried to install jobsworth on both a Ubuntu and a FreeBSD OS, but
am getting stuck at the same point. ARI's readme, at step 5, says
(emphasis mine):

Again _as the user your Apache httpd server runs as:_

...

rvm exec bundle install.

Here's the problem. When I run this as the www user in FreeBSD, I get
the following error.

Fetching source index for http://rubygems.org
Errno::ENOENT: No such file or directory - /usr/local/www.gem/ruby/
1.9.1/cache/rake-0.9.2.2.gem
An error occured while installing rake (0.9.2.2), and Bundler cannot
continue. Make sure that 'gem install rake -v '0.9.2.2'' succeeds
before bundling.

I've done the following

- Allowed the www user to logon
- Installed the rake file as root
- Checked the rvm (1.10.2), bundle (1.0.21), gem (1.8.15), and rake
(0.9.2.2) versions being used by the www user.
- Attempted gem install rake -v '0.9.2.2' without success.

Any help would be gratefully appreciated. I'm prepared to do a bit of
debugging if needs be.

Rich M

Rich Maclannan

unread,
Jan 26, 2012, 10:18:59 AM1/26/12
to jobsworth
I should probably add that this works if I run "rvm exec bundle
install" as the root user, or do a "sudo rvm exec bundle install". But
that's not as the user that Apache runs as...

On Jan 26, 3:00 pm, Rich Maclannan <r...@maclannan.net> wrote:
> Hi!
>
> I've tried to install jobsworth on both a Ubuntu and a FreeBSD OS, but
> am getting stuck at the same point. ARI's readme, at step 5, says
> (emphasis mine):
>
> Again _as the user your Apache httpd server runs as:_
>
> ...
>
> rvm exec bundle install.
>
> Here's the problem. When I run this as the www user in FreeBSD, I get
> the following error.
>
> Fetching source index forhttp://rubygems.org

Rich Maclannan

unread,
Jan 26, 2012, 11:03:05 AM1/26/12
to jobsworth
Right, I've solved this - and it's user error. :-|

I forgot to add the www user as a member of the rvm group, and then do
a chmod g+w on the cache directory in /usr/local/rvm/gems/ruby-1.9.2-
p290.

Sorry everyone!
Reply all
Reply to author
Forward
0 new messages