[ 
https://issues.apache.org/jira/browse/DRILL-223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13762179#comment-13762179
 ] 

Jack Weaver commented on DRILL-223:
-----------------------------------

Some food for thought...

The How To Demo page on the wiki 
(https://cwiki.apache.org/confluence/display/DRILL/Demo+HowTo) has Ubuntu use 
apt-get to install the protobuf, but if you are on 12.04 (LTS) this puts 
version 2.4.x on your machine.

That means you'll want to do the install by hand (the recommended install for 
CentOS/OEL/RHEL, etc).  Following that install step gets the correct version, 
but on Ubuntu (12.04 again), you'll also want to run "ldconfig" ($ sudo 
ldconfig) right after installation.  This is due to a stale ld.so.cache 
(sometimes the .so isn't found right after the install.  See the comment thread 
here: https://code.google.com/p/protobuf/issues/detail?id=213).


In this ticket, the [ERROR] result of maven might have been something I ran 
across earlier, but we would want the debug output ($ mvn clean install -X) to 
see what the issue was.  If it was a missing .so, but the right version was 
installed, and the user is on a ubuntu distro, running ldconfig might help.
                
> Update source readme.txt to note protobuf requirement and common error 
> resolution.
> ----------------------------------------------------------------------------------
>
>                 Key: DRILL-223
>                 URL: https://issues.apache.org/jira/browse/DRILL-223
>             Project: Apache Drill
>          Issue Type: Bug
>            Reporter: Jacques Nadeau
>
> If you have no protoc, you'll get the following error:
> Doing "mvn test" or "mvn install", etc. yields:
> [ERROR] Failed to execute goal 
> com.github.igor-petruk.protobuf:protobuf-maven-plugin:0.6.3:run (default) on 
> project common: Cannot execute 'protoc': Cannot run program "protoc": 
> error=2, No such file or directory -> [Help 1]
> Tell people what to do if they have this problem
> Also note what happens if you have the wrong protoc.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to