php icon indicating copy to clipboard operation
php copied to clipboard

error shared libraries: libssl.so

Open tiagofrancafernandes opened this issue 1 year ago • 4 comments

Question

All builds on Vercel returns the error:

php: error while loading shared libraries: libssl.so.10: cannot open shared object file: No such file or directory

image

tiagofrancafernandes avatar Aug 08 '24 19:08 tiagofrancafernandes

Same here, i cant get it to work. Hopefully we will get a solution.

Mashiane avatar Aug 25 '24 13:08 Mashiane

same :point_up:

my vercel.json

{
    "version": 2,
    "builds": [
        { "src": "/api/index.php", "use": "vercel-php@latest" },
        { "src": "/public/**", "use": "@vercel/static" }
    ],
    "routes": [
        {
            "src": "/(css|js)/(.*)",
            "dest": "public/$1/$2"
        },
        {
            "src": "/(.*)",
            "dest": "/api/index.php"
        }
    ],
    "env": {
        "APP_NAME": "Vercel Laravel",
        "APP_ENV": "production",
        "APP_DEBUG": "false",
        "APP_URL": "https://php-laravel.vercel.app",
        "VERCEL_DEMO_MODE": "true",
        "APP_CONFIG_CACHE": "/tmp/config.php",
        "APP_EVENTS_CACHE": "/tmp/events.php",
        "APP_PACKAGES_CACHE": "/tmp/packages.php",
        "APP_ROUTES_CACHE": "/tmp/routes.php",
        "APP_SERVICES_CACHE": "/tmp/services.php",
        "CACHE_DRIVER": "array",
        "LOG_CHANNEL": "stderr",
        "SESSION_DRIVER": "array",
        "VIEW_COMPILED_PATH": "/tmp/views",
        "SSR_TEMP_PATH": "/tmp/ssr",
        "NODE_PATH": "node"
    }
}

nadar avatar Aug 29 '24 12:08 nadar

change your node.js version guys to 18.x, it will work. Make sure to edit a file on your repo or source after applying the changes so that it can redeploy. @nadar @Mashiane @tiagofrancafernandes

thedoggybrad avatar Aug 30 '24 07:08 thedoggybrad

I am doing my best to fix support of newer Node.js. I will keep you in loop.

f3l1x avatar Aug 30 '24 07:08 f3l1x

Hi, it should be fixed, can you try version 0.7.2?

https://example-php-8-3.vercel.app/

f3l1x avatar Sep 30 '24 09:09 f3l1x