bundle install issue with libv8 and rails

前端 未结 6 513

I\'m having issues with the libv8 gem with ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin10.8.0]. gem install libv8 works fine and I have



        
6条回答
  •  南笙
    南笙 (楼主)
    2020-12-11 07:37

    I had a similar problem deploying from an x86 dev box to an x86_64 server (using capistrano)

    When I did the deployment, I got the same 'Could not find libv8-3.3.10.4 in any of the sources' message. This is because running 'bundle pack' on an x86 machine only copies the x86 gem into the /vendor/cache directory!

    I fixed this by explicitly adding the linux x86_64 gem file to the /vendor/cache directory, so that it would agree with the deployment server architecture. Deployment ran fine after that.

提交回复
热议问题