[katello-devel] Trying t install katello
Lukas Zapletal
lzap at redhat.com
Thu Jul 28 11:43:53 UTC 2011
On 07/27/2011 08:06 PM, Bryan Kearney wrote:
> [root at dhcp231-109 ~]# service katello depcheck
Bryan,
this step is not necessary to install Katello. It's just a helper
command... and it's obviously not working :-)
The thing is bundler needs this file to be writeable, but does not write
here with the parameters we use:
# cat /usr/lib/katello/.bundle/config
---
BUNDLE_WITHOUT: development:test
The workaround is:
# chmod 777 /usr/lib/katello/.bundle/config
I have fixed this using copy to a temp dir:
depcheck)
# check if required dependencies from Gemfile are installed
TMPDIR=$(mktemp -d)
pushd $KATELLO_HOME >/dev/null
cp -R .bundle/ $TMPDIR
cp Gemfile* $TMPDIR
popd >/dev/null
pushd $TMPDIR >/dev/null
bundle install --without 'test development' --local
popd >/dev/null
rm -rf $TMPDIR
;;
ALL: If you ever need to check rubygem dependencies without fear just
issue this command. It should read:
Your bundle is complete! Use `bundle show [gemname]` to see where a
bundled gem is installed.
@jrist - could you add this to FAQ? maybe we could move the FAQ to our
wiki...
--
Later,
Lukas Zapletal | E32E400A
RHN Satellite Engineering
Red Hat Czech s.r.o. Brno
More information about the katello-devel
mailing list