how to solve the libgnutls.so.28 issue? - linux

yum install autoconf automake gcc
libtasn1-devel zlib zlib-devel trousers
trousers-devel gmp-devel gmp xz texinfo
libnl-devel libnl tcp_wrappers-libs
tcp_wrappers-devel tcp_wrappers dbus
dbus-devel ncurses-devel pam-devel
readline-devel bison bison-devel flex
gcc automake autoconf wget
Install Nettle:
wget http://www.lysator.liu.se/~nisse/archive/nettle-2.7.tar.gz
tar xvf nettle-2.7.tar.gz
cd nettle-2.7
./configure --prefix=/opt/
make && make install
cd ..
Install the latest GnuTLS, this version comes with a fix of security flaw:
wget ftp://ftp.gnutls.org/gcrypt/gnutls/v3.2/gnutls-3.2.12.tar.xz
tar xvf gnutls-3.2.12.tar.xz
cd gnutls-3.2.12
export LD_LIBRARY_PATH=/opt/lib/:/opt/lib64/
NETTLE_CFLAGS="-I/opt/include/" NETTLE_LIBS="-L/opt/lib64/ -lnettle" HOGWEED_CFLAGS="-I/opt/include" HOGWEED_LIBS="-L/opt/lib64/ -lhogweed"
./configure --prefix=/opt/
make && make install
cd ..
Install the Latest LibNL:
wget http://www.carisma.slowglass.com/~tgr/libnl/files/libnl-3.2.24.tar.gz
tar xvf libnl-3.2.24.tar.gz
cd libnl-3.2.24
./configure --prefix=/opt/
make && make install
cd ..
Install Ocserv
The latest version of ocserv is 0.8.0[1], if you want a git version, you might need to compile a recent version of automake and autoconf.
wget ftp://ftp.infradead.org/pub/ocserv/ocserv-0.8.0.tar.xz
tar xvf ocserv-0.8.0.tar.xz
cd ocserv-0.8.0
export LIBGNUTLS_CFLAGS="-I/opt/include/" LIBGNUTLS_LIBS="-L/opt/lib/ -lgnutls" LIBNL3_CFLAGS="-I/opt/include" LIBNL3_LIBS="-L/opt/lib/ -lnl-3 -lnl-route-3"
./configure --prefix=/opt/
make && make install
When I run certtool --generate-privkey --outfile ca-key.pem , I encounter the following error:
[root#arx ~]# certtool --generate-privkey --outfile ca-key.pem
certtool: relocation error: certtool: symbol gnutls_srp_3072_group_prime, version GNUTLS_3_0_0 not defined in file libgnutls.so.28 with link time reference
[root#arx ~]#
How to fix the error?
Thanks.
PS: the os in my linux vps is centos 7. In centos 6, I didn't encounter the error above.

Related

OpenSSH shows a version of OpenSSL but openssl version -v shows the new version i have installed in Ubuntu 14.04

I have a server Ubuntu 14.04 which initially had OpenSSH 6.6 and OpenSSL 1.0.1f installed, and with these commands, i updated openSSH:
sudo apt install -y build-essential libssl-dev zlib1g-dev
wget "https://mirror.edgecast.com/pub/OpenBSD/OpenSSH/portable/openssh-7.4p1.tar.gz"
tar xfz openssh-7.4p1.tar.gz
cd openssh-7.4p1
./configure
make
sudo make install && sudo service ssh restart && ssh -V
After that, i have an output of:
OpenSSH_7.4p1, OpenSSL 1.0.1f
The thing is that i have updated openSSL separately after that, with these commands:
sudo wget "https://www.openssl.org/source/openssl-1.0.2n.tar.gz"
tar xfz openssl-1.0.2n.tar.gz
cd openssl-1.0.2n/
./config
make
sudo make install
After that, i run: openssl version and i get:
OpenSSL 1.0.2n
but ssh -V shows:
OpenSSH_7.4p1, OpenSSL 1.0.1f
Is there a way of having ssh -V returning OpenSSH_7.4p1, OpenSSL 1.0.2n?
Thanks in advance!
System need to know where the new version of openssl is, try :
cd openssl-1.0.2n/
./config --prefix=/usr/local --openssldir=/usr/local/openssl shared
make clean && make && make install
openssl version
echo "/usr/local/ssl/lib" >> /etc/ld.so.conf
ldconfig -v
export LD_LIBRARY_PATH=/usr/local/lib
Then cd into openssh directory, clean and rebuild.
As per OpenSSH INSTALL instructions: openssh-portable/INSTALL at V_7_4_P1 · openssh/openssh-portable · GitHub:
LibreSSL/OpenSSL should be compiled as a position-independent library
(i.e. with -fPIC) otherwise OpenSSH will not be able to link with it.
Update your OpenSSL ./config command to include -fPIC no-shared:
sudo wget "https://www.openssl.org/source/openssl-1.0.2n.tar.gz"
tar xfz openssl-1.0.2n.tar.gz
cd openssl-1.0.2n/
./config -fPIC no-shared
make
sudo make install
You may have to run make clean && make dclean before recompiling and installing OpenSSL.

pkg-config not found when install bluez-alsa

I am trying to install bluez-alsa with:
../configure --enable-aac --enable-ofono --enable-debug
and I am getting the following error:
configure: error: pkg-config is required. See pkg-config.freedesktop.org
I tried installing pkg-config with:
sudo apt-get install pkg-config
as well as with a manual installation:
curl https://pkgconfig.freedesktop.org/releases/pkg-config-0.29.tar.gz -o pkgconfig.tgz
tar -zxf pkgconfig.tgz && cd pkg-config-0.29
./configure && sudo make install
but nothing seems to work. Do I need to set some paths for the configure script?

How do I run the ./configure script on git package?

I am trying to install gnash on debian. I did (as root):
git clone git://git.sv.gnu.org/gnash.git
cd gnash/
./configure
And got:
bash: ./configure: No such file or directory
Gnash :
apt-get install g++ autoconf libtool libgconf2-dev libjemalloc-dev libgif-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libspeex-dev libspeexdsp-dev libagg-dev xulrunner-dev libming-dev libming-util mtasc haxe swfmill libcsound64-dev dejagnu
git clone git://git.sv.gnu.org/gnash.git
cd gnash/
./autogen.sh
./configure
make

Tess4J on Ubuntu Linux, UnsatisfiedLinkError

I am getting a getting an UnsatisfiedLinkError using Tess4j in Tomcat+Ubuntu(Linux)
java.lang.UnsatisfiedLinkError: Error looking up function 'TessBaseAPICreate': /usr/lib/libtesseract.so.3.0.2: undefined symbol: TessBaseAPICreate
at com.sun.jna.Function.<init>(Function.java:208)
at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:536)
at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:513)
at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:499)
Library is installed via apt-get install tesseract-ocr, Tess4j version is 2.0.0, everything seems to work on a MacOS/OracleJDK1.7(64bits), but not in Ubuntu/Linux/OracleJDK1.7(64bits)
Some stackoverflow-search gives clues about wrong versions or library not present, but the library is right there...
ls -al /usr/lib/libtesseract.so.3.0.2
-rw-r--r-- 1 root root 4219544 Feb 25 2012 /usr/lib/libtesseract.so.3.0.2
Someone with a solution or a hint?
Tess4J 2.0 is compatible with Tesseract 3.03RC. Since yours is 3.02, you'd need Tess4J 1.x version.
this may be the version of tesseract is not compatible to ubuntu version
as to me my program runs in win10 and ubuntu 16 has no error ,but when in ubuntu 12.04 this error occurs
maybe I install tesseract by the command
sudo apt-get install tesseract-ocr
but indeed in ubuntu 12 after i install by the flow
sudo apt-get install libpng-dev libjpeg-dev libtiff-dev zlib1g-dev
sudo apt-get install gcc g++
sudo apt-get install autoconf automake libtool checkinstall
Install Leptonica from source. The latest version as of writing is 1.69.
wget http://www.leptonica.org/source/leptonica-1.69.tar.gz (if you can't,download leptonica-1.69.tar.gz from the internet)
tar -zxvf leptonica-1.69.tar.gz
cd leptonica-1.69
./configure
make
sudo checkinstall
sudo ldconfig
Then install Tesseract OCR from source.
wget https://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.02.tar.gz
(maybe you can download tesseract-ocr-3.02.02.tar.gz from the internet and then upload to the server )
tar -zxvf tesseract-ocr-3.02.02.tar.gz
cd tesseract-ocr
./autogen.sh
./configure
make (this may take a while)
sudo make install
sudo ldconfig
after this i solve this problem

needed packages to run autoreconf and configure on debian wheezy

What are the .deb packages needed to run these commands on a debian wheezy Linux?
cd software_that_builds_with_autotools
autoreconf --install &&\
./configure --prefix=/opt/foo/bar &&\
make && make install
I tried installing the following, but it still says it is lacking aclocal:
apt-get install binutils make csh g++ sed gawk autoconf autotools-dev
Can't exec "aclocal": No such file or directory at /usr/share/autoconf/Autom4te/FileUtils.pm line 326.
autoreconf: failed to run aclocal: No such file or directory
Just use
sudo apt-get install binutils make csh g++ sed gawk autoconf automake autotools-dev

Resources