簡體   English   中英

Rails部署到Amazon EC2:無法打開庫'libcurl'

[英]Rails deployment to Amazon EC2: Could not open library 'libcurl'

我一直在關注這個railscast,通過橡膠將我的rails應用程序部署到Amazon EC2: http ://railscasts.com/episodes/347-rubber-and-amazon-ec2

我達到了在終端輸入的地步:

cap deploy:cold

然后我收到以下錯誤:

 ** [out :: web01.foo.com] rake aborted!
 ** [out :: web01.foo.com] 
 ** [out :: web01.foo.com] Could not open library 'libcurl': libcurl: cannot open shared object file: No such file or directory.
 ** [out :: web01.foo.com] Could not open library 'libcurl.so': libcurl.so: cannot open shared object file: No such file or directory
 ** [out :: web01.foo.com] 
 ** [out :: web01.foo.com] 
 ** [out :: web01.foo.com] (See full trace by running task with --trace)
 ** [out :: web01.foo.com] 
    command finished in 4322ms
failed: "/bin/bash -l -c 'cd /mnt/sample_app-production/releases/20120905210248 && bundle exec rake RAILS_ENV=production RAILS_GROUPS=assets assets:precompile'" on web01.foo.com

我認為這個問題與'libcurl'有關。 我該如何安裝?

我在Ubuntu Lucid服務器上安裝graphiti時遇到了同樣的問題。

我沒有找到我遇到的錯誤的來源,但做一個簡單的符號鏈接是一個很好的解決方法。

cd /usr/lib
ln -s libcurl.so.4 libcurl.so

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM