Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails 3. Could not find libv8-3.3.10.4 in any of the sources

I'm trying to run cap deploy for the first time but I get this error...

[11.12.13.140] sh -c 'cd /var/www/releases/20120302151641 && bundle install --gemfile /var/www/releases/20120302151641/Gemfile --path /var/www/shared/bundle --deployment --quiet --without development test'
** [out :: 11.12.13.140] Some gems seem to be missing from your vendor/cache directory.
** [out :: 11.12.13.140] Could not find libv8-3.3.10.4 in any of the sources

I have this on my Gemfile gem 'libv8', '3.3.10.4'

I packaged my gems in the vendor/cache directory and I do have this gem libv8-3.3.10.4-x86_64-linux

Why do I keep on getting this error? How can I fix it?

like image 919
leonel Avatar asked Feb 02 '23 07:02

leonel


2 Answers

Do gem install --version '=3.3.10.4' libv8 on the target machine.

like image 134
Michael Durrant Avatar answered Feb 14 '23 15:02

Michael Durrant


Are you sure you need packaging? Capistrano does bundle install for me, so I just did

rm -rf vendor/cache
bundle install

and problem gone because now gems compiled on the target machine.

If you still need packaging see this question for fine-grainded solution.

like image 24
jibiel Avatar answered Feb 14 '23 17:02

jibiel