Seems the installation has failed, but not entirely (as you can still call
protoc).
Can you uninstall it and check if a pre-installed one exists in your system
(check "protoc --version" after uninstallation)?


On Wed, Apr 3, 2013 at 5:48 PM, Josh Mahoney <joshamaho...@gmail.com> wrote:

> I'm installing 2.4.1
>
> protoc --version returns:
> protoc: error while loading shared libraries: libprotobuf.so.7: cannot
> open shared object file: No such file or directory
>
> libprotobuf.so.7 does exist in /usr/lib
>
> Thanks,
> Josh
>
>
> On Wednesday, April 3, 2013 5:40:01 PM UTC-7, Feng Xiao wrote:
>
>> Which version of protobuf did you use? Can you check the result of
>> running "protoc --version"?
>>
>> On Wed, Apr 3, 2013 at 5:03 PM, Josh Mahoney <josham...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> After installing protobuf, including the python version, I receive the
>>> following error when attempting to use it:
>>>
>>> Traceback (most recent call last):
>>>   File "/var/www/django_projects/**tcbase/fts/indexupdater/**updater.py",
>>> line 9, in <module>
>>>     from metadata_indexer import metadata_indexer
>>>   File 
>>> "/var/www/django_projects/**tcbase/fts/indexupdater/**metadata_indexer.py",
>>> line 1, in <module>
>>>     import meta_tc2_pb2
>>>   File 
>>> "/var/www/django_projects/**tcbase/fts/indexupdater/meta_**tc2_pb2.py",
>>> line 3, in <module>
>>>     from google.protobuf import descriptor
>>>   File "/usr/lib64/python2.6/site-**packages/protobuf-2.4.1-py2.6-**
>>> linux-x86_64.egg/google/**protobuf/descriptor.py", line 42, in <module>
>>>     from google.protobuf.internal import cpp_message
>>>   File "/usr/lib64/python2.6/site-**packages/protobuf-2.4.1-py2.6-**
>>> linux-x86_64.egg/google/**protobuf/internal/cpp_message.**py", line 38,
>>> in <module>
>>>     from google.protobuf.internal import _net_proto2___python
>>> ImportError: libprotobuf.so.7: cannot open shared object file: No such
>>> file or directory
>>>
>>> The machine runs CentOS 6.3 with python2.6. I installed protobuf with:
>>> ./configure --prefix=/usr
>>> make
>>> make install
>>> cd python
>>> export PROTOCOL_BUFFERS_PYTHON_**IMPLEMENTATION=cpp
>>> python setup.py install
>>>
>>> What other information can I provide you to help determine the issue?
>>>
>>> Thanks for any help.
>>>
>>> - Josh
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Protocol Buffers" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to protobuf+u...@**googlegroups.com.
>>> To post to this group, send email to prot...@googlegroups.com.
>>>
>>> Visit this group at 
>>> http://groups.google.com/**group/protobuf?hl=en<http://groups.google.com/group/protobuf?hl=en>
>>> .
>>> For more options, visit 
>>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
>>> .
>>>
>>>
>>>
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to protobuf+unsubscr...@googlegroups.com.
> To post to this group, send email to protobuf@googlegroups.com.
> Visit this group at http://groups.google.com/group/protobuf?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to