andreiz / php-zookeeper

A PHP extension for interfacing with Apache ZooKeeper
Other
449 stars 215 forks source link

how to install with php7? #83

Closed HeiHeiHeiHeiHeiHH closed 6 years ago

HeiHeiHeiHeiHeiHH commented 7 years ago

when i do the command 'make', it tells me this:

  the file or dir is not exists : ext/standard/php_smart_str.h

what's wrong with this? or It doesn't support php7 ?

Timandes commented 7 years ago

Try pecl/zookeeper?

HeiHeiHeiHeiHeiHH commented 7 years ago

I did it ,but also show this proble.

Timandes commented 7 years ago

Would you please provide your full output lines of make?

HeiHeiHeiHeiHeiHH commented 7 years ago

qq 20170428110111

HeiHeiHeiHeiHeiHH commented 7 years ago

and cause my php version is 7.0 ,so i did the command phpize7.0 at first

Timandes commented 7 years ago

First, I found an empty line in php_zookeeper.c:38. So, please be sure that you are using the newest version.

Second, if you are using PHP 7.0, it will include <ext/standard/php_smart_string.h> other than <ext/standard/php_smart_str.h>.

HeiHeiHeiHeiHeiHH commented 7 years ago

大哥你好像是国人吧 = = 我就不扯英文了,水平太差。 还是那个问题,我修改了那个<ext/standard/php_smart_sting.h> 虽然make没有卡住了可是,出现了很多错误提示,哦 对了,改了文件是不是也要重新编译一下那个.c 文件 = = qq 20170428141209

Timandes commented 7 years ago
  1. 在我这边的代码中php_zookeeper.c:38是空行,所以确保你使用的是最新版本的代码;

  2. 根据你的截图,你最后的报错提示是“找不到ext/standard/php_smart_str.h”。但是在php-zookeeper的代码里明确给出了,如果你使用的是PHP-7,引用的是ext/standard/php_smart_string.h。我觉着你的PHP版本有些混乱……

Timandes commented 6 years ago

问题是否已经得到解决?

HeiHeiHeiHeiHeiHH commented 6 years ago

Yes....


发件人: Timandes White [notifications@github.com] 发送时间: 2018年1月1日 20:07 收件人: andreiz/php-zookeeper 抄送: 刘忠其; Author 主题: Re: [andreiz/php-zookeeper] how to install with php7? (#83)

问题是否已经得到解决?

― You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/andreiz/php-zookeeper/issues/83#issuecomment-354649996, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AXzClSxI-PiIPLQFueSF-YrhB8R1ZZRRks5tGMp-gaJpZM4NBSxC.

Timandes commented 6 years ago

那可否关闭这个Issue? : )

HeiHeiHeiHeiHeiHH commented 6 years ago

不好意思,已关闭~


发件人: Timandes White [notifications@github.com] 发送时间: 2018年1月2日 18:21 收件人: andreiz/php-zookeeper 抄送: 刘忠其; Author 主题: Re: [andreiz/php-zookeeper] how to install with php7? (#83)

那可否关闭这个Issue? : )

― You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/andreiz/php-zookeeper/issues/83#issuecomment-354736612, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AXzCldoo5oCZuQHzh2ZAsCLKQ-rHFF8Nks5tGgM5gaJpZM4NBSxC.

liron-li commented 6 years ago

能说一下怎么解决的么?我遇到了同样的问题。 @HeiHeiHeiHeiHeiHH

HeiHeiHeiHeiHeiHH commented 6 years ago

装zk的时候, 里面有个东西要再装一次到一个你制定的路径, 然后装这个扩展的时候带进去就可以了。 我记得好像是这个步骤。 原因是少了个libzookeep


发件人: Liron [notifications@github.com] 发送时间: 2018年3月20日 11:04 收件人: andreiz/php-zookeeper 抄送: 刘忠其; State change 主题: Re: [andreiz/php-zookeeper] how to install with php7? (#83)

能说一下怎么解决的么?我遇到了同样的问题。

― You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHubhttps://github.com/andreiz/php-zookeeper/issues/83#issuecomment-374457035, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AXzClcf5vRiVgurSO3Y1qNhHJAl93w74ks5tgHGvgaJpZM4NBSxC.

liron-li commented 6 years ago

@HeiHeiHeiHeiHeiHH 有指定路径的 还是不行。 后来我找到了 php-zookeeper/php-zookeeper 这个项目,然后就一次编译成功了。 这个项目貌似是fork出来的 由 @Timandes 大哥在维护的,不知道这两个项目有什么区别。 @Timandes  能说说为什么要fork出来,而不在原有项目上提PR吗

Timandes commented 6 years ago

因为原作者失联了……我只是接过来管理。但是我实在是能力有限,无法持续开发新功能。

liron-li commented 6 years ago

@Timandes 给大哥点赞 ,开源社区需要您这样的人

sumanchoudhary commented 6 years ago

I am are using PHP 7.0,I have replaced

<ext/standard/php_smart_str.h>

with

<ext/standard/php_smart_string.h>

After change it I have found another error given in screenshot below: image

.

Timandes commented 6 years ago

Would you provide version infos?

sumanchoudhary commented 6 years ago

PHP version info:

image

Timandes commented 6 years ago

What about php-zookeeper?

sumanchoudhary commented 6 years ago

zookeeper-3.4.12

Timandes commented 6 years ago

Version of php-zookeeper. Not zookeeper.