How to remove one of the protobuf compiler that is making conflict? - anaconda

I have installed protobuf using this conda install protobuf==2.6.1 in a conda environment. So once I want to install a software it showing the following error message:
#error This file was generated by a newer version of protoc which is
#error This file was generated by a newer version of protoc which is
^
.build_release/src/caffe/proto/caffe.pb.h:13:2: error: #error incompatible with your Protocol Buffer headers. Please update
#error incompatible with your Protocol Buffer headers. Please update
^
.build_release/src/caffe/proto/caffe.pb.h:14:2: error: #error your headers.
#error your headers.
^
In file included from .build_release/src/caffe/proto/caffe.pb.cc:5:0:
.build_release/src/caffe/proto/caffe.pb.h:23:35: fatal error: google/protobuf/arena.h: No such file or directory
compilation terminated.
Makefile:588: recipe for target '.build_release/src/caffe/proto/caffe.pb.o' failed
make: *** [.build_release/src/caffe/proto/caffe.pb.o] Error 1
I tried to find out which versions of protobuf has been installed
$sudo find / -name protoc
/usr/share/bash-completion/completions/protoc
find: ‘/run/user/1000/gvfs’: Permission denied
/home/ubuntu/anaconda2/pkgs/libprotobuf-3.4.1-h5b8497f_0/bin/protoc
/home/ununtu/anaconda2/envs/testenv/bin/protoc
after uninstalling the protobuf by this command conda uninstall protobuf, even after removing the compiler:
sudo apt-get remove protobuf-compiler
sudo apt-get remove --auto-remove protobuf-compiler
$ protoc --version ===>>> libprotoc 3.4.0
How can I uninstall this libprotoc 3.4.0? Even after removing by this command sudo apt-get autoremove protobuf-compiler libprotobuf-dev and removing successfully, it still shows protoc version as libprotoc 3.4.0. Could someone please help? I only need protobuf==2.6.1. Thanks

I could solve the issue inside the anaconda environment:
conda uninstall libprotobuf

Related

Cannot link gmp: library not found for -lgmp

I'm trying to install fastecdsa on macOS BigSur (M1 chip) by running
(venv) $ pip3 install fastecdsa
and even though I previously installed gmp:
$ brew install gmp
it cant find the lib, no matter what I do
src/curve.h:4:10: fatal error: 'gmp.h' file not found
#include "gmp.h"
Although the error changed when I created a symlink
ln -s /opt/homebrew/include/gmp.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include
and now I get:
ld: library not found for -lgmp
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command '/usr/bin/gcc' failed with exit code 1
I also tried:
passing the path via env CFLAGS, LDFLAGS and both via global env export (export CFLAGS=...)
LDFLAGS=-L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib pip3 install fastecdsa
CFLAGS=-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include pip3 install fastecdsa
xcode-select --install
endlessly brew uninstall gmp and brew install gmp, even brew reinstall gmp and brew unlink gmp
installing rosetta2
turning it off and on again
I can't put my finger on it :(
You may have resolved this by now, but just to say that I ran into something similar, and the solution for me was to tell ld to look in the homebrew library path. Run this/add it to ~/.profile:
export LIBRARY_PATH=$LIBRARY_PATH:/opt/homebrew/lib
export INCLUDE_PATH=$INCLUDE_PATH:/opt/homebrew/include
(I didn't need INCLUDE_PATH in my case, but it looks like you might!)
After that, perhaps your python commands will start working!
enter image description here
use the setup.py to install and modify the setup.py as the image

`gnutls/gnutls.h: No such file or directory` while installing latest `cups`

I am trying to install the latest version of cups 2.3.3, I was following
https://fossies.org/linux/cups/INSTALL.md
After the make command, I got the foll error.
In file included from cups-private.h:21:0,
from auth.c:17:
http-private.h:70:14: fatal error: gnutls/gnutls.h: No such file or directory
# include <gnutls/gnutls.h>
^~~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [../Makedefs:271: auth.o] Error 1
Note that I followed the step
sudo apt-get install autoconf build-essential libavahi-client-dev \
libgnutls28-dev libkrb5-dev libnss-mdns libpam-dev \
libsystemd-dev libusb-1.0-0-dev zlib1g-dev
before going to make.
It seems like you're missing a gnutls related package. Try to search which package you need:
$ apt-file search gnutls/gnutls.h
libgnutls28-dev: /usr/include/gnutls/gnutls.h

Warning During Compilation of Gem5

i am using ubuntu18.04.5 and i have installed all the requisites and successfully compiled gem5 following the guide: https://www.gem5.org/documentation/learning_gem5/introduction/
But during the compilation I get 2 warnings:
*** Summary of Warnings ***
Warning: Header file <png.h> not found.
This host has no libpng library.
Disabling support for PNG framebuffers.
Warning: Couldn't find any HDF5 C++ libraries. Disabling HDF5 support.
How can I fix them?
how will it affect the user experience?
For CentOS 8.3, I got the same warning messages while building gem5 -
***Summary of Warnings***
Warning: Header file <png.h> not found.
This host has no libpng library.
Disabling support for PNG framebuffers.
Warning: Couldn't find any HDF5 C++ libraries. Disabling HDF5 support.
and solved it using the command -
sudo yum install libpng-devel
sudo yum -y install hdf5-devel
For Ubuntu 18.04 or 20.04 using the below command -
sudo apt-get install libhdf5-dev
sudo apt-get install libpng-dev

How do I install libsuinput on Raspberry Pi 10 (Buster)

I'm working on a project that requires libsuinput available here
https://github.com/tuomasjjrasanen/libsuinput
I've downloaded it but when I follow the instructions in the readme
Just run the following commands:
./configure && make && make install
I get the following error
bash: ./configure: No such file or directory
Instructions couldn't be simpler but its just not working. Am I missing something or is the module not compatible with the latest version of Raspberry Pi?
You need to run ./autogen.sh first - it will call autoreconf that will create configure script.
If you get:
pi#raspberrypi:~/libsuinput $ ./autogen.sh
aclocal: warning: couldn't open directory 'm4': No such file or directory
configure.ac:9: error: possibly undefined macro: AC_PROG_LIBTOOL
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
autoreconf: /usr/bin/autoconf failed with exit status: 1
install libtool:
sudo apt-get -y install libtool

RuntimeError: <path> failed executing, please point LLVM_CONFIG to the path for llvm-config

Trying to install llvmlite via pip by running
pip install llvmlite
constantly gives me this error:
RuntimeError: <path> failed executing, please point LLVM_CONFIG to the path for llvm-config
error: command '/Users/sfalk/miniconda3/envs/asr-service/bin/python' failed with exit status 1
----------------------------------------
Now, I am on Python 3.5
$ python --version
Python 3.5.6 :: Anaconda, Inc.
And just running pip install llvmlite will give me this:
RuntimeError: Building llvmlite requires LLVM 7.0.x, 7.1.x or 8.0.x, got '10.0.0'. Be sure to set LLVM_CONFIG to the right executable path.
I installed LLVM 8 via brew
brew install llvm#8
Setting LLVM_CONFIG to either does not work.
/usr/local/opt/llvm#8/bin (were I assumed llvm-config to be), or
/usr/local/opt/llvm#8/Toolchains/LLVM8.0.1.xctoolchain/usr/bin (where I actually found llvm-config to be)
And I keep getting some version of:
RuntimeError: /usr/local/opt/llvm#8/Toolchains/LLVM8.0.1.xctoolchain/usr/bin failed executing, please point LLVM_CONFIG to the path for llvm-config
What am I missing here?
And for those reviewing the post in search for a solution to installing numba, the version released on June 24, 2020 works:
pip install numba==0.50.1
Looks like there is an issue with latest version of llvmlite. Please consider using 0.31.0 version.
>>pip install llvmlite==0.31.0
Collecting llvmlite==0.31.0
Downloading
https://files.pythonhosted.org/packages/10/31/aa315fbc2e0b7777b95ce166b7c988f53e4cdd4c33d06eea24f395539eb4/llvmlite-0.31.0-cp35-cp35m-macosx_10_9_x86_64.whl (15.9MB)
100% |████████████████████████████████| 15.9MB 1.1MB/s
Installing collected packages: llvmlite
Successfully installed llvmlite-0.31.0
You will have to install the required llvm package using and link the executable config
sudo apt install llvm-**X**
and then
sudo pip3 install llvmlite
cd /usr/bin
sudo ln -s llvm-config-**X** llvm-config
This fixed the llvm issue of installing librosa on my raspberry pi (aarch64)
I was facing the same issue.
You will have to install the required llvm package using and link the executable config
sudo apt install llvm-X
and then
sudo pip3 install llvmlite
cd /usr/bin
sudo ln -s llvm-config-X llvm-config
did not work for me but I did notice we had the same output error
RuntimeError: <path> failed executing, please point LLVM_CONFIG to the path for llvm-config
So I thought: "why not point the LLVM_CONFIG to the proper llvm-config?".
And I did this simple fix:
export LLVM_CONFIG=/usr/bin/llvm-config-10

Resources