libssl.so.10: cannot open shared object file: No such file or directory - shell

I am trying to install and use a binary package of a DB software but after setting my environment variables in ~/.profile as following:
export LD_LIBRARY_PATH=/usr/local/DB/lib:$LD_LIBRARY_PATH
export PATH=/usr/local/DB/bin:$PATH
export Data=/path/to/make/db_cluster
I am getting the following error:
libssl.so.10: cannot open shared object file: No such file or directory
Then I used the following instructions:
sudo apt-get update
sudo apt-get install libssl1.0.0 libssl-dev
cd /lib/x86_64-linux-gnu
sudo ln -s libssl.so.1.0.0 libssl.so.10
sudo ln -s libcrypto.so.1.0.0 libcrypto.so.10
but still getting errors regarding it when using for example initdb:
initdb:/lib/x86_64-linux-gnu:libssl.so.10 : versio 'libssl.so.10' not found: (required by home/user/dbfolder/lib/libpq.so.5)
Any help will be appreciate it.

On CentOS 8 the missing lib is included in the compat-openssl10 package, just run:
yum install compat-openssl10
And all works fine...

im in centos,not ubuntu. find libssl.so.10 file first, then cp or ln -s
# whereis libssl.so.10
libssl.so: /usr/lib64/libssl.so.10 /usr/lib64/libssl.so
ln -s /usr/lib64/libssl.so.10 /lib/x86_64-linux-gnu/libssl.so.10
you can look this:
libssl-so-10-cannot-open-shared-object-file-no-such-file-or-directory
libssl.so.10 & libcrypto.so.10 not found
Check the official documentation, use a new system.

Procedure for centos Linux System for the below error:
libssl.so.10: cannot open shared object file: No such file or directory
-Run the command yum provides */libssl*
It will show compatible version library corresponding to your missing library like for libssl.so.10
Install the corresponding package libssl.so.xx by using
yum install libssl.so.xx
In the same way if you get libcrypto.so.10 problem, repeat above steps and replace
libssl with libcrypto
and follow the steps
This will sort out the missing packages problem.

Related

Golang installation

I just followed the installation guide for golang (ubuntu 16).
I extracted the archive at /etc/usr
I added env variable in /home/user/.profile
I just tested a basic go build on the hello world code.
I get the following error:
The program 'go' is currently not installed. You can install it by typing: sudo apt install golang-go
Why does it ask me to install it (again?)?
open the go documentation download
https://go.dev/dl/
choice your os and go version
download then extract the file
extract the file
open the file and open the terminal
6.Add /usr/local/go/bin to the PATH environment variable.
export PATH=$PATH:/usr/local/go/bin
then check the go version
go version
The location of the binary go is not in your path. Ubuntu does not find it and suggests to install it. Add this line to your file /etc/profile, or better $HOME/.profile:
export PATH=$PATH:/usr/local/go/bin
This is documented in the docs: https://golang.org/doc/install#install
If you want to try this solution before editing any files, you can just execute the above command and try to execute the go command in the shell.
There are paths which needs to be set correctly for you go installation to work
GOROOT points to directory where go is installed
export GOROOT=/usr/lib/go
GOPATH points to you workspace directory
export GOPATH=$HOME/go
These paths need to be added in global path variable.
export PATH=$PATH:$GOROOT/bin
You need to put the go executable in your system path. which you can do by
export PATH=$PATH:/etc/usr/go/bin
You can put the same in /home/user/.profile
just use asdf for installation. You can have several version also :D
Docs: https://asdf-vm.com/#/core-manage-asdf
downlaod the installer form enter link description here, choose intaller for linux that suit your device and then you go to your CLI and use wget or curl :
$ wget https://storage.googleapis.com/golang/go1...
and then extract the file to /usr/local :
$ tar -C /usr/local -xzf go1...
add path binary Go to PATH environment variable :
$ echo "export PATH=$PATH:/usr/local/go/bin" >> ~/.bashrc
$ source ~/.bashrc
and then use go version to check if the Go already installed
If You are using linux then open your terminal and run this command.
sudo apt install golang-go
This command will Install Go lang. in your system. ThankYou
Steps for Go installation:
sudo apt-get update && sudo apt-get -y upgrade    
wget https://dl.google.com/go/go1.17.5.linux-amd64.tar.gz
sudo tar -xvf go1.17.5.linux-amd64.tar.gz
sudo mv go /usr/local/
export GOROOT=/usr/local/go
Add in .bashrc
vi .bashrc
export GOPATH="/root/go"
export GOROOT=/usr/local/go
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
Download latest version from https://golang.org/doc/install
tar -xzf go1.15.7.linux-amd64.tar.gz
move to /usr/lib/ to folder with version number
sudo mv go /usr/lib/go-1.15
create symkink link on /usr/bin/
ln -s /usr/lib/go-1.15/bin/go /usr/bin/go

protoc: command not found (Linux)

I am trying to use Protobuf on Linux box. I downloaded the pre-compiled from github.
When I try to compile my .proto file or just check the protobuf version, it says
protoc: command not found.
I tried the same steps on Windows machine using pre-compiled protobuf version and it works fine there.
Install protoc for Linux and Mac
Linux
PROTOC_ZIP=protoc-3.15.8-linux-x86_64.zip
curl -OL https://github.com/google/protobuf/releases/download/v3.15.8/$PROTOC_ZIP
sudo unzip -o $PROTOC_ZIP -d /usr/local bin/protoc
sudo unzip -o $PROTOC_ZIP -d /usr/local include/*
rm -f $PROTOC_ZIP
Mac OS X
brew install protobuf
Alternately, if you don't have Homebrew.
PROTOC_ZIP=protoc-3.15.8-osx-x86_64.zip
curl -OL https://github.com/google/protobuf/releases/download/v3.15.8/$PROTOC_ZIP
sudo unzip -o $PROTOC_ZIP -d /usr/local bin/protoc
sudo unzip -o $PROTOC_ZIP -d /usr/local 'include/*'
rm -f $PROTOC_ZIP
source: http://google.github.io/proto-lens/installing-protoc.html
For Linux Ubuntu 20, only install with snap
snap install protobuf --classic
or via apt, with:
sudo apt install protobuf-compiler
You can try it:
Install grpc and protobuf
brew install grpc protobuf
I know this question is specifically asked for Linux and I could n't find any question as it relates to solving this error on Windows.
This might help people who encounter the same error on windows.
Step 1: Download the windows distribution (protoc-3.5.0-win32.zip) from the link protobuf and unzip locally to a folder
Step 2 : Add the folder path to the path in the system environment variables.
Step 3: close the command prompt, restart the command prompt and try the command protoc
I might be late to the party but I also had "command not found" when trying to run protoc. It turned out it was just missing the execute permission. A quick chmod +x protoc fixed this for me.

Protobuf cannot find shared libraries

I have installed protobuf by using following commands:
./configure
make
make check
make install
However when I run protoc I get following error:
protoc: error while loading shared libraries: libprotoc.so.8: cannot open shared object file: No such file or directory
sudo ldconfig
or
export LD_LIBRARY_PATH=/usr/local/lib
should solve the problem.
You can also use
$ sudo ldconfig # refresh shared library cache.
as stated at the installation page
This issue can be resolved by following these steps:
vim /etc/ld.so.conf
/usr/local/lib(add it in .conf)
This issue can be resolved by following these steps:
sudo make uninstall
sudo make distclean
sudo make clean
./configure --prefix=/usr
This cleans the current installation and installs protobuf at /usr
Run ldconfig to update ld.so.cache after making sure that /usr/local/lib is listed in /etc/ld.so.conf. i.e.
Edit /etc/ld.so.conf and append /usr/local/lib to it and run ldconfig

wkhtmltopdf on Fedora 14

Did anybody ever installed wkhtmltopdf on Fedora 14?
On http://code.google.com/p/wkhtmltopdf/wiki/compilation there is a step by step for Debian. In the comments, there is also something similar to CentOS.
Till now I have installed:
Development Tools
openssl-devel libXrender-devel libXext-devel libXft-devel
QT (qt.x86_64 qt-devel.x86_64 qt-webkit.x86_64)
git
And I have also downloaded wkhtmltopdf from git:
git clone git://github.com/antialize/wkhtmltopdf.git wkhtmltopdf
However, the last steps are driving me crazy. Here's where So I need some help:
Compiling and installing wkhtmltopdf Now all you need to do is compile and install wkhtmltopdf
make && make install
Here's the wkhtmltopdf folder:
NEW UPDATE:
After running cd wkhtmltopdf && qmake-qt4 && make as normal user, here's what I got:
Then, I searched again for some qt packages I should have and ended with this group:
qt-webkit-devel.x86_64 php-qt-devel.x86_64 qt-x11.x86_64 qtnx.x86_64
Then, again, I ran qmake-qt4 && make and this time it passed with no errors.
Finally, I ran sudo make install and it also passed with no errors.
However, when I ran wkhtmltopdf -h it returns:
wkhtmltopdf: error while loading shared libraries: libwkhtmltox.so.0: cannot open shared object file: No such file or directory
So, I decided to go all way compiling QT, following exactly the instructions. At the end, I got the same error:
$ wkhtmltopdf -h
wkhtmltopdf: error while loading shared libraries: libwkhtmltox.so.0: cannot open shared object file: No such file or directory
Any help would be great.
Thanks!
wkhtmltopdf want libwkhtmltox.so.0 lib. But search it into /lib64 directory.
You can :
cd /lib64
ln -s /lib/libwkhtmltox.so.0 libwkhtmltox.so.0
wkhtmltopdf -h
is ok after that.
(sorry for my english...)
You missed the part where you have to run qmake.
cd /lib64
ln -s /lib/libwkhtmltox.so.0 libwkhtmltox.so.0
This also worked on CentOS release 6.2 (Final)
The error :
wkhtmltopdf: error while loading shared libraries: libwkhtmltox.so.0: cannot open shared object file: No such file or directory
can also be caused by the miss of Xorg, then you can install it for example on Debian :
apt-get install xorg

problems at installation of sphinx on mac osx - can't even do the ./configure command

I tried to install sphinx on my Mac (OSX 10.6.7) but at the first installation step, I run into a problem.
According to the installation doku, http://sphinxsearch.com/docs/current.html#installation, one should do the following steps
$ ./configure
$ make
$ install
When I enter ./configure in my terminal, I get the following error message:
$ ./configure
> -bash: ./configure: No such file or directory
So I looked in the folder 'sphinx-2.0.1-beta-osx10.6-i386' and saw that there's no such file such as configure. Also
$ ls -a
> . api doc sphinx-min.conf.in
.. bin example.sql sphinx.conf.in
COPYING contrib log
INSTALL data sphinx-min.conf
When I tried other files such as sphinx-min.conf, I get
$ ./sphinx-min.conf
$ -bash: ./sphinx-min.conf: Permission denied
Also the sudo ./sphinx-min.conf doesn't work
$ sudo ./sphinx-min.conf
$ sudo: ./sphinx-min.conf: command not found
Any ideas?
It seems possible that you have downloaded a binary version, rather than the source code. You should check for binaries in the subdirectory bin.
You should also read the file INSTALL, which probably has installation instructions that go with the distribution you have downloaded.
You should download Source tarball (tar.gz) from http://sphinxsearch.com/downloads/release/ even it has the deceptive linux-penguin icon. After decompression the tarball you can follow the installation steps as http://pat.github.com/ts/en/installing_sphinx.html says.

Resources