Laravel作曲家:无法加载库

时间:2018-04-19 09:39:53

标签: php bash laravel laravel-5 composer-php

我从作曲家那里得到了这个错误:

Failed loading /usr/lib/php/20151012/ioncube_loader_lin_7.1.so: /usr/lib/php/20151012/ioncube_loader_lin_7.1.so: undefined symbol: zend_interrupt_function

我已经执行了命令composer update但是这个问题仍然存在..我甚至不知道它来自哪里或为什么我得到它...我甚至没有得到它正确的错误信息..我该如何解决这个问题?

更新

PHP版本:7.0.28-0ubuntu0.16.04.1

composer.json:

{
    "name": "laravel/laravel",
    "description": "The Laravel Framework.",
    "keywords": ["framework", "laravel"],
    "license": "MIT",
    "type": "project",
    "require": {
        "php": ">=7.0.0",
        "barryvdh/laravel-cors": "^0.11.0",
        "fideloper/proxy": "~3.3",
        "laravel/framework": "5.5.*",
        "laravel/tinker": "~1.0",
        "zanysoft/laravel-zip": "^1.0",
        "guzzlehttp/guzzle": "^6.3"
    },
    "require-dev": {
        "filp/whoops": "~2.0",
        "fzaninotto/faker": "~1.4",
        "mockery/mockery": "~1.0",
        "phpunit/phpunit": "~6.0",
        "symfony/thanks": "^1.0"
    },
    "autoload": {
        "classmap": [
            "database/seeds",
            "database/factories"
        ],
        "psr-4": {
            "App\\": "app/"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "Tests\\": "tests/"
        }
    },
    "extra": {
        "laravel": {
            "dont-discover": [
            ]
        }
    },
    "scripts": {
        "post-root-package-install": [
            "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
        ],
        "post-create-project-cmd": [
            "@php artisan key:generate"
        ],
        "post-autoload-dump": [
            "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
            "@php artisan package:discover"
        ]
    },
    "config": {
        "preferred-install": "dist",
        "sort-packages": true,
        "optimize-autoloader": true
    }
}

亲切的问候

1 个答案:

答案 0 :(得分:0)

Composer Update无法帮助您安装ionCube。

ionCube Loader是一个PHP扩展,它使PHP能够执行使用ionCube编码器编码的文件。

以下是在Ubuntu 16.04上安装ionCube的详细指南。 https://www.digitalocean.com/community/tutorials/how-to-install-ioncube-on-ubuntu-16-04