Using Webdriver with Chrome -- missing Shared Libraries - linux

I am trying to run webdriver, but I keep getting the following error:
[ec2-user#ip-172-30-0-41 ~]$ sudo ./chromedriver
./chromedriver: error while loading shared libraries:
libgconf-2.so.4: cannot open shared object file: No such file or directory
Is there a way to yum this missing dependencies? Or what seems to be the issue here? This is using the Amazon Linux AMI 2014.09.1 (HVM) Distribution.

chrome driver can't run by itself. You can run it via code only

Related

AWS EC2 Linux: Cannot open shared object file

I am trying to get (specific versions of) Chrome and Chromedriver (and ultimately Selenium) running on an AWS EC2 Linux instance that was handed over to me for testing. Following the first four steps of this guide, I
navigated into my /tmp directory,
ran sudo wget https://chromedriver.storage.googleapis.com/102.0.5005.61/chromedriver_linux64.zip,
unzipped chromedriver,
and moved chromedriver into my /usr/bin.
However, when I go to inspect chromedriver - version for a sanity check, I get the following error:
chromedriver: error while loading shared libraries: libxcb.so.1: cannot open shared object file: No such file or directory
Several posts on this and other sites documenting similar quandaries (error while loading shared libraries: <...>) suggest that maybe this error is due to the absence of libxcb from my instance, but I am such a novice that I'm just not sure (I don't even know what libxcb is for). Hoping to get some feedback on how to proceed. If any other info about my instance would be helpful, feel free to let me know. Thanks!
If you type yum whatprovides libxcb.so.1 you will see the name and version of the library that provides the file you are missing.
Generally, I found out that libX11 provides most libraries needed for chrome and chromedriver. So try:
sudo yum install -y libX11
and then repeat the above steps.

error while loading shared libraries: libgfortran.so.3: cannot open shared object file: No such file or directory

I am running a Fortran model on a linux server (CentOS8). When I run the .exe file (./pgd.exe) compiled by make, I got the error message:
./pgd.exe: error while loading shared libraries: libgfortran.so.3: cannot open shared object file: No such file or directory
And if I type where gfortran, I got nothing. But if I type whereis libgfortran.so.3, I got
libgfortran.so: /usr/lib64/libgfortran.so.5.
Since this is a server used by many users, I cannot ask the admin to degrade the libgfortran.so.5 to version 3, how can I do to ensure the model running? I searched that there are some similar questions and potential solutions are like sudo apt-get install libgfortran3. But I don't know how to install libgfortran3 under my account since I am not the admin and couldn't use sudo. Thanks!
The application ("pgd.exe") has been compiled with an older version of gfortran where the runtime library is not compatible with the runtime library provided by centos 8. There are a number of solutions, such as
Recompile the application with the version of gfortran provided in centos8.
Copy the old libgfortran.so.3 somewhere, set LD_LIBRARY_PATH to point there so that the application finds it.
Bundle the application and whatever libraries it needs as a container.

error opening executable file on ssh - error while loading shared libraries

I am trying to run tor on Ubuntu with terminal (using SSH). Whenever I am trying to open the executable file I am getting this error:
./tor: error while loading shared libraries: libevent-2.1.so.7:
cannot open shared object file: No such file or directory
I have tried to re-install the packages and nothing going well, also tried to link the library and that also did nothing. Whenever I am trying to create another executable file it runs okay, the problem is only with this tor file.
Further details:
$ ldd ./tor | grep libevent
libevent-2.1.so.7 => not found
$ ls -l /usr/lib/libevent*
No such file or directory
Can anyone guide me on how to solve it? Any help would be really appreciated.

Installation Pymol error

I am trying to install pymol on Centos 6.5. After running setup.sh it looks everything is fine. But when I launch pymol I obtain this error:
/opt/pymol/pymol.exe: error while loading shared libraries: libGLU.so.1: cannot open shared object file: No such file or directory
Any help,please?
I am quite new in linux as you may notice...
Follow te instrucctions here and also check that you have installed libGLU, on Ubuntu this library is called libglu1-mesa.

Error in loading shared libraries

I am working on arch linux. To create an archiso, i needed libpcre.so.0. for that i installed pcre using
pacman -S pcre.
Now when i restarted my system httpd i.e. my Apache server didn't start at boot time. So when i entered
rc.d restart httpd
it gave me the following error.
usr/sbin/httpd.worker: Error while loading shared libraries: libpcre.so.0 :Cannot open
shared object file. No such file or directories.
Please can anyone tell me the solution to this. Thank you
goto "System -> Administration -> Synaptic Package Manager"
Install the packages "libpcrecpp0" and "libpcre++0"
It should work Easily then !!!

Resources