Comments (4)
My OS and ENV versions:
user@bieli:~$ uname -a
Linux desktop 3.5.0-30-generic #51-Ubuntu SMP Tue May 14 18:49:52 UTC 2013 i686 athlon i686 GNU/Linux
user@bieli:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 13.04
Release: 13.04
Codename: raring
user@bieli:~$ php -v
PHP 5.4.9-4ubuntu2.3 (cli) (built: Sep 4 2013 19:37:07)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
user@bieli:~$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-linux-gnu/4.7/lto-wrapper
Target: i686-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.7.3-1ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-4.7/README.Bugs --enable-languages=c,c++,go,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.7 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.7 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --with-system-zlib --enable-objc-gc --enable-targets=all --with-cloog --enable-cloog-backend=ppl --disable-cloog-version-check --disable-ppl-version-check --enable-multiarch --disable-werror --with-arch-32=i686 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=i686-linux-gnu --host=i686-linux-gnu --target=i686-linux-gnu
Thread model: posix
gcc version 4.7.3 (Ubuntu/Linaro 4.7.3-1ubuntu1)
user@bieli:~$ phpize --version
Configuring for:
PHP Api Version: 20100412
Zend Module Api No: 20100525
Zend Extension Api No: 220100525
user@bieli:~$ dpkg -l | grep php5-dev
ii php5-dev 5.4.9-4ubuntu2.3 i386 Files for PHP5 module development
from php-protobuf.
Hi @bieli please help me i want to install php-protobuf in xamp on window.but i have no idea how it will be installed .when i run protoc-php.php its show "requires protobuf extension installed to run". how can i install this extension ??
Thanks
from php-protobuf.
@PunitSaharan I assume you know how to compile a extension, then your PHP version maybe too low. Because protoc-php.php uses namespaces, so PHP lower than 5.3 will run into this problem.
If not, then your problem has nothing to do with protobuf, but you do not know how to compile a PHP extension.
cd php-protobuf-master
phpize
./configure
make
sudo make install
vim /path/to/your/php.ini
add one line
extension=protobuf.so
from php-protobuf.
Fixed in #74.
from php-protobuf.
Related Issues (20)
- How to generate the CodeGeneratorResponse.php file? HOT 2
- How to define namespace using protoc?
- Error while installation, step 3 Build and install the PHP extension. HOT 2
- ERROR: The protoc command in your system is too old. Minimum required version is 2.6.0 but found 2.5.0 HOT 1
- Does this extension have a Windows version HOT 1
- make: *** [protobuf.lo] Error 1 HOT 7
- 64-bit integers on x86 HOT 2
- Can it be encoded as a binary stream? HOT 1
- Why change null to another value? HOT 4
- read Protocol Buffers delimited HOT 2
- ERROR: Unable to find the protoc command. Please make sure it's installed and available in the path. HOT 1
- ERROR: protobuf module is not installed. --allegrophp_out: protoc-gen-allegrophp: Plugin failed with status code 1. HOT 5
- Does php-protobuf support extend HOT 1
- Add support for extensions
- --allegrophp_out: protoc-gen-allegrophp: Plugin failed with status code 127. HOT 10
- How do we send request and receive response with this? HOT 1
- Can't be compiled for > PHP 7 on Windows 7 x64 HOT 4
- one question --php_out: protoc-gen-php: Plugin output is unparseable: This is a stub file for IDEs, don't use it directly! HOT 1
- php8.0 编译不成功 HOT 1
- Macbook m1 chip php5.6.31 wrong HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-protobuf.