Error of installing Google Chrome in Centos 7 - google-chrome

I followed the following steps to install Chrome in my Centos 7 system.
(base) [abc#bogon ~]wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
(base) [abc#bogon ~]sudo yum install ./google-chrome-stable_current_*.rpm
All was OK, but I got the following error while I run "google-chrome &".
(base) [abc#bogon ~]$ google-chrome &
[1] 4679
(base) [abc#bogon ~]$ /usr/bin/google-chrome: symbol lookup error: /usr/bin/google-chrome: undefined symbol: gbm_bo_get_modifier
I could not launch Chrome. How can I fix this error? Thanks.

This is due to a missing symbol in the libgbm library. You will likely need to update the mesa-libgbm package to a later version.
sudo apt update mesa-libgbm
sudo yum update mesa-libgbm
Or the equivalent for your OS.

Related

How can I completely remove MySQL 8 from Redhat Linux so I can install MySQL 5?

I am trying to install MySQL 5 on a machine where there was a previous (unsuccessful) attempt to install MySQL 8.
I installed the repo for MySQL 5:
yum localinstall https://dev.mysql.com/get/mysql57-community-release-el7-9.noarch.rpm
I then ran:
yum install mysql-community-server
I get:
Error: Package: mysql-community-server-5.7.28-1.el7.x86_64 (mysql57-community)
Requires: mysql-community-common(x86-64) = 5.7.28-1.el7
Installed: mysql-community-common-8.0.18-1.el7.x86_64 (#mysql80-community)
mysql-community-common(x86-64) = 8.0.18-1.el7
How to fix this?
If I run...
yum remove mysql mysql-server
I get...
No Match for argument: mysql
No Match for argument: mysql-server
No Packages marked for removal
I needed to remove the old repo, like so...
yum remove mysql-community-common-8.0.18-1.el7.x86_64

mysql_config not found with mysql-community on CentOS 7

I need to install mysqlclient module for python3.6 on my CentOS server via pip.
The instalation breaks with following error: OSError: mysql_config not found.
I've found a solution, to install mysql-devel package, but unfortunately it breaks with following error:
Error: mariadb101u-config conflicts with mysql-community-server-8.0.4-0.1.rc.el7.x86_64
Error: mariadb101u-libs conflicts with mysql-community-libs-8.0.4-0.1.rc.el7.x86_64
Error: mariadb101u-libs conflicts with mysql-community-libs-compat-8.0.4-0.1.rc.el7.x86_64
Error: mariadb101u-common conflicts with mysql-community-common-8.0.4-0.1.rc.el7.x86_64
I cannot remove the mysql-community packages, because the server is running MySQL database based on that.
Is there any way to fix it without removing conflicting packets?
Ok, found an answer:
yum install mariadb-devel gcc python36u-devel
Solution by #Djent worked for me.
But I kept on receiving time out error while installing through yum. If you are having the same problem. You can manually download the package and install it!
On CentOS
wget https://archive.mariadb.org/mariadb-10.1.39/yum/centos7-amd64/rpms/MariaDB-10.1.38-centos73-x86_64-devel.rpm
rpm -i MariaDB-10.1.38-centos73-x86_64-devel.rpm
For other linux OS, you can find mariadb-devel at https://pkgs.org/download/mariadb-devel
First run the command (take note of python version):
sudo yum install python36-devel
Then install mysqlclient using pip.

Install Apache on Debian VPS & unmet dependencies error

I have a VPS and it runs on Debian GNU/Linux 8 (jessie). I try to install Apache, PHP, and MySQL on it. I get the below error:
The following packages have unmet dependencies:
mysql-server : Depends: mysql-server-5.5 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
When I run apt-get -f install, i get below error:
Preconfiguring packages ...
(Reading database ... 39521 files and directories currently installed.)
Preparing to unpack .../mysql-server-5.5_5.5.52-0+deb8u1_amd64.deb ...
Aborting downgrade from (at least) 10.0 to 5.5.
If are sure you want to downgrade to 5.5, remove the file
/var/lib/mysql/debian-*.flag and try installing again.
dpkg: error processing archive /var/cache/apt/archives/mysql-server-5.5_5.5.52-0+deb8u1_amd64.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
E: Sub-process /usr/bin/dpkg returned an error code (1)
I have basic knowledge of Linux, so any suggestion or help. I search online and try to uninstall and remove and reinstall MySQL... but no luck.
from you error output i did a quick apt-cache search to see the version numbers of mysql-server
from what i seen you might have installed mariadb-server-10.0 installed instead of mysql-server
do a dpkg -l | grep mysql and look at the results. you could also try dpkg -l | grep server and look at that output also.
ADDED COMMENT-
did you remove the file that it's asking you to do?
if you need to have both db-servers running i would follow along with this
https://superuser.com/questions/1029228/mysql-and-mariadb-instances-on-the-same-server
if you don't need both dbs, then i would apt-get remove mariadb-.. from your server and then apt-get -f install to get mysql-server installed

google chrome not running on 4.4.10-22.54.amzn1.x86_64 GNU/Linux

OS:4.4.10-22.54.amzn1.x86_64 GNU/Linux
when I type google-chrome, it shows an error
[14033:14033:0604/061453:ERROR:browser_main_loop.cc(271)] Gtk: cannot open display:
I have installed chrome browser with below command
sudo yum -y install google-chrome-stable –skip-broken
Hence even when I run my selenium test ,it shows as
org.openqa.selenium.WebDriverException: unknown error: Chrome failed to start: exited abnormally
[testng] (Driver info: chromedriver=2.2,platform=Linux 4.4.10-22.54.amzn1.x86_64 x86_64) (WARNING: The server did not provide any stacktrace information)
[testng] Command duration or timeout: 21.07 seconds
Any one has any idea,what I'm doing wrong?
Gtk+ dependencies needs to be installed as well.
Follow this blogpost to resolve that.
https://gist.github.com/joekiller/4144838
And also this:
http://itsallabtamil.blogspot.com/2013/02/setting-up-chrome-firefox-ec2-selenium-java.html
Solved: Try these step by step
yum install libgcrypt-devel
wget http://dl.fedoraproject.org/pub/archive/fedora/linux/updates/15/x86_64/libstdc++-4.6.3-2.fc15.x86_64.rpm
wget http://dl.fedoraproject.org/pub/archive/fedora/linux/updates/15/x86_64/libstdc++-devel-4.6.3-2.fc15.x86_64.rpm
wget http://dl.fedoraproject.org/pub/archive/fedora/linux/updates/15/x86_64/cpp-4.6.3-2.fc15.x86_64.rpm
wget http://dl.fedoraproject.org/pub/archive/fedora/linux/updates/15/x86_64/gcc-4.6.3-2.fc15.x86_64.rpm
wget http://dl.fedoraproject.org/pub/archive/fedora/linux/updates/15/x86_64/gcc-c++-4.6.3-2.fc15.x86_64.rpmsudo rpm -Uvh libstdc++-devel-4.6.3-2.fc15.x86_64.rpm cpp-4.6.3-2.fc15.x86_64.rpm gcc-4.6.3-2.fc15.x86_64.rpm gcc-c++-4.6.3-2.fc15.x86_64.rpm
sudo yum remove google-chrome
wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
sudo yum install ./google-chrome-stable_current_*.rpm
google-chrome &
Now finally start your selenium tests.

Problems with install mysql 5.5.20 with homebrew

I installed homebrew and Xcode 4.3.2 with command line tools on Mac Osx Lion and when I now try to install mysql with :
brew install mysql -v
I get the error :
Error: #<BuildError: Failed executing: cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/mysql/5.5.20 -DMYSQL_DATADIR=/usr/local/var/mysql -DINSTALL_MANDIR=/usr/local/Cellar/mysql/5.5.20/share/man -DINSTALL_DOCDIR=/usr/local/Cellar/mysql/5.5.20/share/doc/mysql -DINSTALL_INFODIR=/usr/local/Cellar/mysql/5.5.20/share/info -DINSTALL_MYSQLSHAREDIR=share/mysql -DWITH_SSL=yes -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DSYSCONFDIR=/usr/local/etc -DWITH_UNIT_TESTS=OFF -DWITH_READLINE=yes>
Here you find the full log :
https://gist.github.com/2421381
I checked the logs but there is nothing that can help me for the moment. Brew doctor is also clean and give no errors.
Found the solution with thanks to a reply of visoft on my gist post. This solution worked for me. The problem is coming from Cmake, I need version 2.8.7 instead of 2.8.8, run this code to get it work :
cd /usr/local
brew uninstall cmake
git checkout 948c2769 Library/Formula/cmake.rb
brew install mysql
After this, mysql was installed successfully.