Funtoo - How to qutebrowser

From Linux - Help
Jump to navigation Jump to search

Gentoo-power.png Technology should be fun, powerful and free.

'Help to install Qutebrowser on Funtoo and Gentoo.'

First step

I Love to use this vim browser named Qutebrowser but on Gentoo / Funtoo system a simple: emerge --ask qutebrowser will not install the program because of some Python target need by the system, as have install Python3.5 or Python 3.6.

We will install Python3.5 and/or Pyhton3.6:

 $ su -c 'emerge --ask dev-lang/python:3.6' 

Then we tell to our system to use Python3.5 and/or Python3.6:

 $ eselect python list
 [1]   python3.6
 [2]   python3.5
 [3]   python3.4
 [4]   python2.7
 $ su -c 'eselect python set 1'

After you installed Python3.5 and/or Python3.6 we will type:

 $ su -c 'emerge --update --deep --newuse @world'

If you get some issues as this:

 Invalid '-' operator in non-incremental variable 'PYTHON_TARGETS': '-python3_5'
 Invalid '-' operator in non-incremental variable 'PYTHON_TARGETS': '-python3_6'
 Invalid '-' operator in non-incremental variable 'PYTHON_TARGETS': '-python3_5'
 Invalid '-' operator in non-incremental variable 'PYTHON_TARGETS': '-python3_6'

Then add in '/etc/portage/profile/use.stable.mask'

 $ su -c 'vim /etc/portage/profile/use.stable.mask'
 -python_targets_python3_6
 -python_single_target_python3_6

Second step

Now we need to tell portage to use for Qutebrowser one of the latest Python target (as 3.5 or 3.6), with:

 # echo '>=www-client/qutebrowser-1.4.2 -test python_targets_python3_6' >> /etc/portage/package.use

And we need to tell to use some "USE" flags for PyGt5:

 # echo '>=dev-python/PyQt5-5.10.1 webchannel widgets printsupport sql declarative webengine network' >> /etc/portage/package.use

Last step

Now you can emerge qutebrowser:

 $ su -c 'emerge --ask qutebrowser' 

After a long time to compile, it should be installed.

Online resources

Kernel - Funtoo how to's.

Gentoo - Gentoo how to's

Vfio - guide used like examples for the kernel changes.