小编fra*_*kzk的帖子

错误:脚本php artisan clear-compiled处理带有错误的post-install-cmd事件

我正在尝试使用以下方法创建一个laravel项目:

Nicoles-MacBook-Pro:htdocs nicolekajatt$ composer create-project laravel/laravel guia-telefonica
Run Code Online (Sandbox Code Playgroud)

我得到了这个:

Mcrypt PHP extension required.
Script php artisan clear-compiled handling the post-install-cmd event returned with an error



  [RuntimeException]  
  Error Output:       



create-project [-s|--stability="..."] [--prefer-source] [--prefer-dist] [--repository-url="..."] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progress] [--keep-vcs] [--no-install] [package] [directory] [version]
Run Code Online (Sandbox Code Playgroud)

我已经尝试过这个教程来解决这个问题,但问题仍然存在 http://laravel.io/forum/02-08-2014-difficulty-installing-laravel-getting-error-mcrypt-php-extension-required?page=1

我能做什么?谢谢您的帮助

laravel laravel-4

36
推荐指数
2
解决办法
3万
查看次数

Rails 4:SQLException:没有这样的表:

我在Rails4中运行以下代码:

$ bundle exec rake db:migrate

== 201405270646 AddAttachmentImageToPins:迁移=========================== - change_table(:pins)rake aborted!StandardError:发生错误,此以及所有后续迁移都已取消:

的SQLite3 ::的SQLException:没有这样的表:引脚:ALTER TABLE "销" ADD "image_file_n AME" VARCHAR(255)C:/站点/ pinteresting /分贝/迁移/ 201405270646_add_attachment_im age_to_pins.rb:4:在block in up' c:/Sites/pinteresting/db/migrate/201405270646_add_attachment_image_to_pins.rb:3: in向上" C:在` migrate'任务:TOP => db:migrate(通过使用--trace运行任务来查看完整跟踪)

我无法理解为什么我会收到此错误.

这是我的github:https://github.com/frankzk/pinteresting

谢谢您的帮助

迁移文件:

class AddAttachmentImageToPins < ActiveRecord::Migration
  def self.up
    change_table :pins do |t|
        t.attachment :image
    end
  end


  def self.down
    drop_attached_file :pins, :image
  end
end
Run Code Online (Sandbox Code Playgroud)

ruby-on-rails rails-migrations

3
推荐指数
1
解决办法
7057
查看次数