allegro / php-protobuf

PHP Protobuf - Google's Protocol Buffers for PHP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ERROR: protobuf module is not installed. --allegrophp_out: protoc-gen-allegrophp: Plugin failed with status code 1.

serenaxxsun opened this issue · comments

I run

protoc --plugin=protoc-gen-allegrophp=protoc-gen-php.bat --allegrophp_out=proto_dir proto/info.proto

in windows x64 but error.
my proto file is proto 2 version.

The plugin requires the module to be installed. You haven't so you get protobuf module is not installed..

The plugin requires the module to be installed. You haven't so you get protobuf module is not installed..

you mean the php extension protobuf?
in windows , I have no idea to install the protobuf.dll。。。how can i do?。。。

You follow the standard procedure of installing the module. If you already have protobuf.dll binary you need to place it in the directory where PHP looks up for the extensions (on Linux/Mac you can find this directory by running a command php-config --extension-dir) and placing a line extension=protobuf.dll in a php.ini file.

You follow the standard procedure of installing the module. If you already have protobuf.dll binary you need to place it in the directory where PHP looks up for the extensions (on Linux/Mac you can find this directory by running a command php-config --extension-dir) and placing a line extension=protobuf.dll in a php.ini file.

I have no protobuf.dll and have not install the php extension.
but I don't known how to install in windows x64 and php7.3. in the internet, I find no solution.

I'm not able to help you more as I don't use Windows. I expect if you follow the steps I described you earlier you should be able to install the extension. Still firstly you need to build the extension on Windows.