Try adding the path to libprotoc.so to the variable LD_LIBRARY _PATH and retry again. On May 21, 2014 9:00 AM, "sam liu" <samliuhad...@gmail.com> wrote:
> Hi Experts, > > I can use Cygwin to build hadoop-1.1.1, however failed on hadoop-2.2, as I > always encountter issue: > > > > > > > > *[INFO] --- hadoop-maven-plugins:2.2.0:protoc (compile-protoc) @ > hadoop-common --- [WARNING] [/home/sam/protobuf-win/bin/protoc, --version] > failed: java.io.IOException: Cannot run program > "/home/sam/protobuf-win/bin/protoc": CreateProcess error=2, The system > cannot find the file specified. [ERROR] stdout: []... ....[ERROR] Failed to > execute goal org.apache.hadoop:hadoop-maven-plugins:2.2.0:protoc > (compile-protoc) on project hadoop-common: > org.apache.maven.plugin.MojoExecutionException: 'protoc --version' did not > return a version -> [Help 1] [ERROR][ERROR] To see the full stack trace of > the errors, re-run Maven with the -e switch.[ERROR] Re-run Maven using the > -X switch to enable full debug logging.* > > *But, actually I can run '$ /home/sam/protobuf-win/bin/protoc --version' > or 'protoc --version', and it will return 'libprotoc 2.5'.* > > Any comments? > > Thanks! >