2013-08-31 39 views
2

我在一个小的amazon linux实例上安装了locomotivecms应用程序。我跑了以下预编译的资产:Amazon Linux上的资产预编译

bundle exec rake assets:precompile 

它已经像是半小时,资产仍然是预编译。以下是我在终端上至今:

[[email protected] locomotivecms]$ bundle exec rake assets:precompile 
/home/ec2-user/.rvm/rubies/ruby-1.9.3-p448/bin/ruby /home/ec2-user/.rvm/gems/ruby-1.9.3-p448/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets 
which: no convert in (/home/ec2-user/.rvm/gems/ruby-1.9.3-p448/bin:/home/ec2-user/.rvm/gems/[email protected]/bin:/home/ec2-user/.rvm/rubies/ruby-1.9.3-p448/bin:/home/ec2-user/.rvm/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/aws/bin:/home/ec2-user/bin) 
which: no identify in (/home/ec2-user/.rvm/gems/ruby-1.9.3-p448/bin:/home/ec2-user/.rvm/gems/[email protected]/bin:/home/ec2-user/.rvm/rubies/ruby-1.9.3-p448/bin:/home/ec2-user/.rvm/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/aws/bin:/home/ec2-user/bin) 
mkdir -p /home/ec2-user/locomotivecms/public/assets 
cp -rp /home/ec2-user/.rvm/gems/ruby-1.9.3-p448/gems/locomotive-tinymce-rails-3.5.8.2/vendor/assets/javascripts/tinymce /home/ec2-user/locomotivecms/public/assets 
mkdir -p /home/ec2-user/locomotivecms/public/assets 
cp -rp /home/ec2-user/.rvm/gems/ruby-1.9.3-p448/gems/locomotive-aloha-rails-0.23.2.2/vendor/assets/javascripts/aloha /home/ec2-user/locomotivecms/public/assets 
which: no convert in (/home/ec2-user/.rvm/gems/ruby-1.9.3-p448/bin:/home/ec2-user/.rvm/gems/[email protected]/bin:/home/ec2-user/.rvm/rubies/ruby-1.9.3-p448/bin:/home/ec2-user/.rvm/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/aws/bin:/home/ec2-user/bin) 
which: no identify in (/home/ec2-user/.rvm/gems/ruby-1.9.3-p448/bin:/home/ec2-user/.rvm/gems/[email protected]/bin:/home/ec2-user/.rvm/rubies/ruby-1.9.3-p448/bin:/home/ec2-user/.rvm/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/aws/bin:/home/ec2-user/bin) 

执行哪些命令意味着时间花在寻找每个文件的可执行耙是得到预编译?

回答

2

好像你没有安装imagemagick。

根据您的发行版,它应该是sudo yum install ImageMagick ImageMagick-develsudo apt-get install imagemagick

您可以通过发出命令convertidentify来测试它是否成功安装。

但是,文档建议您在自己的本地计算机上进行预编译,而不是在远程服务器上进行预编译。意思是,您首先在自己的机器上发出bundle exec rake assets:precompile。这将避免必须在远程服务器上进行预编译。

+0

谢谢。正如你所提到的Imagemagick不见了。安装完成后,我不再看到其中:没有转换,其中:没有标识消息。 – septerr