Ruby 1.9.3 - Bundler - Graylog2

Posted by Arenstar on Server Fault See other posts from Server Fault or by Arenstar
Published on 2012-10-10T15:15:48Z Indexed on 2012/10/10 15:39 UTC
Read the original article Hit count: 448

Filed under:
|
|

im having a strange problem with bundler.

Using ruby 1.8 the following works fine however not with 1.9

it always results in

Could not find rake-0.9.2.2 in any of the sources
Run `bundle install` to install missing gems.

i dont understand why, but it functions correctly with rvm. I can not however use rvm, this is not a solution to my problem

Install Ruby

cd /usr/local/src
wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.gz
tar xzf ruby-1.9.3-p194.tar.gz && cd ruby-1.9.3-p194
./configure --prefix=/opt/lp/ruby-1.9.3-test
make all && make install

Install Graylog

cd /usr/local/src
wget https://github.com/downloads/Graylog2/graylog2-web-interface/graylog2-web-interface-0.9.6p1.tar.gz
tar xzf graylog2-web-interface-0.9.6p1.tar.gz
cd graylog2-web-interface-0.9.6p1

Setup Graylog

cd /usr/local/src/graylog2-web-interface-0.9.6p1
sed -i "3 i gem 'thin', '~> 1.3.1'" Gemfile
/opt/lp/ruby-1.9.3-test/bin/gem install bundle
/opt/lp/ruby-1.9.3-test/bin/bundle install --path vendor/bundle --binstubs

Begin the Test

cd /usr/local/src/graylog2-web-interface-0.9.6p1
/opt/lp/ruby-1.9.3/bin/bundle exec bin/rake

#Could not find rake-0.9.2.2 in any of the sources
#Run `bundle install` to install missing gems.

cd /usr/local/src/graylog2-web-interface-0.9.6p1
/opt/lp/ruby-1.9.3/bin/bundle exec bin/thin -e production -S test.sock -c . -R config.ru start

#Could not find rake-0.9.2.2 in any of the sources 
#Run `bundle install` to install missing gems.

Where am i going wrong?

© Server Fault or respective owner

Related posts about ruby

Related posts about graylog2