Install capyabara-webkit gum on Amazon Linux AMI

I am trying to install capybara-webkit stone on Amazon Linux AMI 2017.09 release.

I tried following the instructions for installing CentOS (possibly the wrong approach):

sudo yum install -y epel-release
sudo yum install -y qt5-qtwebkit-devel

The first package installed perfectly, but qt5-qtwebkit-develgave the following error:

Error: Package: qt5-qtbase-gui-5.6.1-3.el6.x86_64 (epel)
       Requires: libgdk-x11-2.0.so.0()(64bit)
Error: Package: qt5-qtbase-gui-5.6.1-3.el6.x86_64 (epel)
       Requires: libgdk_pixbuf-2.0.so.0()(64bit)
Error: Package: qt5-qtbase-gui-5.6.1-3.el6.x86_64 (epel)
       Requires: libatk-1.0.so.0()(64bit)
Error: Package: qt5-qtbase-gui-5.6.1-3.el6.x86_64 (epel)
       Requires: libgtk-x11-2.0.so.0()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

I cannot resolve dependency libgdk_pixbuf-2.0.so.0on Amazon Linux. I tried to install libX11-devel, but this did not solve the problem.

Of course, it gem install capybara-webkit -v '1.10.1'fails because qt5 is not installed.

I found a blog with instructions for installing capybara with qt-4.8 , I would rather use the latest version and would rather use the package manager instead of linking the package manually.

: capybara-webkit Amazon Linux AMI ?

+4
2

Amazon AMI yum libgtk-x11-2.0.so.0. . CentOS.

$ sudo yum install ftp://ftp.riken.jp/Linux/centos/6/os/x86_64/Packages/hicolor-icon-theme-0.11-1.1.el6.noarch.rpm

$ sudo yum install ftp://ftp.riken.jp/Linux/centos/6/os/x86_64/Packages/atk-1.30.0-1.el6.x86_64.rpm

$ sudo yum install ftp://ftp.riken.jp/Linux/centos/6/os/x86_64/Packages/gdk-pixbuf2-2.24.1-6.el6_7.x86_64.rpm

$ sudo yum install ftp://ftp.riken.jp/Linux/centos/6/os/x86_64/Packages/gtk2-2.24.23-9.el6.x86_64.rpm

PS: https://ubunifu.co/python/installing-libgtk-x11-2-0-so-0-in-amazon-linux-ami-2017-03-1

+1

, , . yum repos,

yum_repository 'centos-base' do
 url 'http://mirror.centos.org/centos/6/os/x86_64/'
 gpgkey 'http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6'
 action :add
end

package 'qt5-qtwebkit-devel'
+1

Source: https://habr.com/ru/post/1690399/


All Articles