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

How to install pthreads on ubuntu 14.04? #54

Closed
DieQuelle opened this issue Nov 6, 2015 · 12 comments
Closed

How to install pthreads on ubuntu 14.04? #54

DieQuelle opened this issue Nov 6, 2015 · 12 comments

Comments

@DieQuelle
Copy link

Can you explain me how to isntall pthreads on ubuntu 14.04

Versions:

PHP 5.5.9-1ubuntu4.14 (cli) (built: Oct 28 2015 01:34:46)
Linux eBot 3.13.0-57-generic #95-Ubuntu SMP Fri Jun 19 09:28:15 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
Digital Ocean LEMP Server (pre builded "Application")

PHP Test:
PHP 5.3.1 or newer    -> required  -> [ Yes ] 5.5.9-1ubuntu4.14
Standard PHP Library  -> required  -> [ Yes ]
MySQL                 -> required  -> [ Yes ]
Sockets               -> required  -> [ Yes ]
pthreads              -> required  -> [ No ]

@HalfEatenPie
Copy link

apt-get install libpthread-stubs0-dev

@DieQuelle
Copy link
Author

Does not work for me.
I installed it restarted all services even a reboot wont help.

@rmrhz
Copy link

rmrhz commented Nov 7, 2015

Could you show at least an error log?

@DieQuelle
Copy link
Author

Why error log, the check is in my start post?!

@rmrhz
Copy link

rmrhz commented Nov 8, 2015

After you tried apt-get install libpthread-stubs0-dev

@SkullMasher
Copy link

The Package has been install correctly on my side (debian sid if that matters) and did not solve the problem. The libpthread package are for the libC. I'm pretty sure you need to have the php pthread for the ebot to work.

PHP.net doc about the pthread : https://secure.php.net/manual/en/book.pthreads.php

Will report back once i'm done with making php pthread works.

@SkullMasher
Copy link

So I ended up taking the version of ebot without the pthreads by doing a git checkout master after the initial git clone.

I don't want to recompile php on this server only for the ebot at this time. I would like to have additional information from the maintainer about pthreads in eBot.

I will certainly add/enable zts and pthreads once I got my head around php7 which at this time require a manual php compilation on debian. I do not have time for that at the moment.

@SkullMasher
Copy link

I ended with the server randomly droping 'Can't auth to rcon' after some time. We did no go farther than the knife. I'm assuming the old version is broken or something. Will try the pthread one.

@DieQuelle
Copy link
Author

@SkullMasher
Hey. Nice that somebody has the same problem as me.
After this problems i tried the .deb package which installed the most ressources.

After this i get:

php boostrap.php

-----------------------------------------------------
| Registerung Shutdown function !
| Starting eBot Websocket-Server !
| WebSocket server crashed
-----------------------------------------------------

or via /etc/init.d/ebotv3 start -> status -> not running.

@SkullMasher
Copy link

deb package is vastly outdated I don't know if you can make it work.

Does your package even have some sort of websocket_server.js ? If that's the case you'll have to check for nodejs log.

I'm planning a php migration on this week end. I'll come back to you later about the pthread installation and how it goes.

@DieQuelle
Copy link
Author

Did you find a way to get it working?

@codelpech
Copy link

codelpech commented Aug 6, 2017

Did you find the solution ?

@deStrO deStrO closed this as completed Oct 12, 2023
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

No branches or pull requests

6 participants