kylef / heroku-buildpack-swift

Heroku build pack for Swift
BSD 3-Clause "New" or "Revised" License
508 stars 0 forks source link

Error while loading shared libraries at runtime #7

Closed ikenwoo closed 8 years ago

ikenwoo commented 8 years ago

I'm running into an issue when trying to deploy a zewo server.

The app compiles correctly, but when the process tries to start the binary, it crashes with: error while loading shared libraries: libCLibvenice.so: cannot open shared object file: No such file or directory.

If I check the heroku server, I see the .so library in /app/.swift-bin folder so I'm not sure why the binary can't find it.

Any ideas?

ikenwoo commented 8 years ago

Added a pull request to fix this.

funkenstrahlen commented 6 years ago

I just stumbled on this issue because I have a similar problem.

My .swift-lib folder contains libFoundation.so libXCTest.so libdispatch.so libswiftCore.so libswiftGlibc.so libswiftRemoteMirror.so libswiftSwiftOnoneSupport.so

When I try to run my code I get this error: error while loading shared libraries: libatomic.so.1: cannot open shared object file: No such file or directory

I am stuck trying to fix this, because in contrast to @ikenwoo my library is actually missing.