Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to load shared library 'MonoPosixHelper' or one of its dependencies #853

Closed
Spocher opened this issue Jan 21, 2019 · 5 comments · Fixed by #855
Closed

Unable to load shared library 'MonoPosixHelper' or one of its dependencies #853

Spocher opened this issue Jan 21, 2019 · 5 comments · Fixed by #855

Comments

@Spocher
Copy link

Spocher commented Jan 21, 2019

Hello i try using puppeteer-sharp on linux server + asp .net core

And i have this exception:
Unable to load shared library 'MonoPosixHelper' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libMonoPosixHelper: cannot open shared object file: No such file or directory, ( at PuppeteerSharp.Helpers.Linux.LinuxSysCall.FromFilePermissions(FilePermissions value, UInt32& rval)

@kblok
Copy link
Member

kblok commented Jan 21, 2019

@Spocher did you install Mono?

@Spocher
Copy link
Author

Spocher commented Jan 21, 2019

@Spocher did you install Mono?

No, I didn't know it was necessary

@kblok
Copy link
Member

kblok commented Jan 21, 2019

Could you try that? if it's that I'll add it to the readme

@Spocher
Copy link
Author

Spocher commented Jan 21, 2019

Yes, now install

@Spocher
Copy link
Author

Spocher commented Jan 21, 2019

Could you try that? if it's that I'll add it to the readme

Yeah, that solved the problem.
Install mono like https://www.mono-project.com/download/stable/#download-lin-debian

Install Dependencies like https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md:
apt-get install gconf-service libasound2 libatk1.0-0 libatk-bridge2.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget

And create options:
`var options = new LaunchOptions
{
Headless = true,
IgnoreHTTPSErrors = true,
DumpIO = true,
Args = new[]
{
"--no-sandbox",
"--disable-setuid-sandbox",
"--disable-web-security"
}

};`

And it worked. Debian 9 + Asp .Net Core. Cool!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants