php icon indicating copy to clipboard operation
php copied to clipboard

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

Open bohdan-coderiver opened this issue 1 year ago • 11 comments

When I run the 'vercel build' command, I received an error like the one in the screenshot below. Could someone please explain why is that? Meanwhile vercel and vercel --prod work without any issues.

image

vercel.json { "version": 2, "functions": { "api/index.php": { "runtime": "[email protected]" } }, "routes": [ { "src": "/build/(.*)", "dest": "/public/build/" }, { "src": "/resources/(.*)", "dest": "/public/resources/" }, { "src": "/assets/(.*)", "dest": "/public/assets/" }, { "src": "/favicon/(.*)", "dest": "/public/favicon/" }, { "src": "/(.*)", "dest": "/api/index.php" } ], "env": { "APP_NAME": "personalBlog", "APP_ENV": "production", "APP_DEBUG": "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": "cookie", "VIEW_COMPILED_PATH": "/tmp/views", "SSR_TEMP_PATH": "/tmp/ssr", "NODE_PATH": "node" }, }

bohdan-coderiver avatar Oct 29 '23 15:10 bohdan-coderiver

Hi, I have to update libssl somehow.

f3l1x avatar Nov 21 '23 13:11 f3l1x

Hi, can you try latest build?

f3l1x avatar Jan 24 '24 00:01 f3l1x

I'm having the same issue because default node version is set to 20. It works after changed to 18.

hohin728 avatar Mar 26 '24 06:03 hohin728

I'm having the same issue because default node version is set to 20. It works after changed to 18.

How did you do that?

LuisFernandoLG avatar Mar 28 '24 00:03 LuisFernandoLG

I'm having the same issue because default node version is set to 20. It works after changed to 18.

How did you do that?

Never mind, I found it.

Go to your dashboard on vercel

Project > Settings > General > Node.js Version Change from 20.x to 18.x

image

LuisFernandoLG avatar Mar 28 '24 00:03 LuisFernandoLG

I'm having the same issue because default node version is set to 20. It works after changed to 18.

How did you do that?

Never mind, I found it.

Go to your dashboard on vercel

Project > Settings > General > Node.js Version Change from 20.x to 18.x

image

It works!

qkqpttgf avatar Mar 28 '24 01:03 qkqpttgf

New version 0.7.1 released.

f3l1x avatar Apr 16 '24 06:04 f3l1x

You can also do this in your package.json

    "engines": {
        "node": "18.x"
    },

I have to set the node version to v18 this even with using version 0.7.1 for my runtime by the way

    "functions": {
      "api/index.php": {
          "runtime": "[email protected]"
      }
  },

edjw avatar May 01 '24 08:05 edjw

Yes! It also works for me by changing node version 20.x to 18.x from project setting

appsaeed avatar May 06 '24 18:05 appsaeed

I'm having the same issue because default node version is set to 20. It works after changed to 18.

How did you do that?

Never mind, I found it.

Go to your dashboard on vercel

Project > Settings > General > Node.js Version Change from 20.x to 18.x

image

Thank you. It works for me also.

MMPgenave avatar Jul 03 '24 07:07 MMPgenave

Thanks a lot

aungmyomyat220 avatar Aug 24 '24 02:08 aungmyomyat220