drslump / Protobuf-PHP

PHP implementation of Google's Protocol Buffers with a protoc plugin compiler
http://drslump.github.com/Protobuf-PHP/
MIT License
461 stars 163 forks source link

could not extract the package.xml file from "Protobuf-1.0.tgz" #63

Open langgo opened 8 years ago

langgo commented 8 years ago

when install Protobuf-PHP, I get :

$ sudo pear install Protobuf-1.0.tgz
could not extract the package.xml file from "Protobuf-1.0.tgz"
install failed

how to resolve the problem?

nevernet commented 7 years ago

try to install Protobuf via:

pecl install Protobuf-3.1.0a1
nevernet commented 7 years ago

@langgo there are two ways to solve this issue:

first, use composer package:

{
    "name": "grpc/grpc-idcn",
    "description": "PHP",
    "require": {
        "google/protobuf": "v3.1.0-alpha-1",
        "grpc/grpc": "v1.0.0"
    }
}

add "google/protobuf": "v3.1.0-alpha-1", in composer.json file and then composer install or composer updaate

second way: use Protobuf php extension

see details from https://github.com/google/protobuf/tree/master/php