Package Details: gnome-screenruler 0.9.6-6

Git Clone URL: (read-only, click to copy)
Package Base: gnome-screenruler
Description: ScreenRuler lets you measure objects on your screen using six different metrics.
Upstream URL:
Licenses: GPL
Submitter: gborzi
Maintainer: kylesferrazza
Last Packager: kylesferrazza
Votes: 37
Popularity: 0.98
First Submitted: 2010-02-19 23:50
Last Updated: 2018-11-05 07:24

Latest Comments

1 2 3 Next › Last »

lmat commented on 2021-04-14 12:44

Just installed for the first time and ran and I get

/usr/lib/ruby/2.7.0/rubygems/dependency.rb:311:in to_specs': Could not find 'red-colors' (>= 0) among 62 total gem(s) Checked in 'GEM_PATH=/home/lawsa/.gem/ruby/2.7.0:/usr/lib/ruby/gems/2.7.0' , executegem env` for more information

it sort of looks like I need to install the "red-colors" gem? I don't work with ruby, so I don't know how to do that right off, but I'm guessing this shouldn't happen in the first place after a proper installation. Thank you for maintaining this package!

archuser5432 commented on 2020-03-28 09:31

Doesnt build, missing dependency -> ruby-gettext

kzoli429 commented on 2020-01-18 13:10

It does not run. $ screenruler Traceback (most recent call last): 2: from /usr/bin/screenruler:25:in <main>' 1: from /usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:inrequire' /usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require': cannot load such file -- gettext (LoadError)

Unfortunately, neither installing ruby-cairo-gobject nor ruby-locale could make it start.

spearthistle commented on 2019-08-28 15:45

I have been trying to install this AUR for a while now. It started working after I installed the repository "ruby-cairo-gobject".

dviktor commented on 2019-02-12 09:55

With the update of ruby-gettext gnome-screenruler needs ruby-locale now. Please add this dependency

Rogach commented on 2018-10-21 11:21

@somepaulo gnome-screenruler creates a helper method Kernel.loop (with 2 arguments), overriding system-wide Kernel.loop (with 0 arguments), and that system-wide method is used when loading gems - which results in this error. Renaming the helper fixes the issue. Here's the PKGBUILD diff that I applied:

--- PKGBUILD.orig   2018-10-21 14:10:05.210931908 +0300
+++ PKGBUILD    2018-10-21 14:13:59.740510883 +0300
@@ -26,6 +26,10 @@

   # Fix path
   patch -Np0 -i $srcdir/path_patch.diff
+  # Fix Kernel.loop shadowing issue
+  sed -i 's/loop/screenruler_loop/' $srcdir/screenruler/utils/addons_ruby.rb
+  sed -i 's/loop/screenruler_loop/' $srcdir/screenruler/ruler_window.rb

 package() {

somepaulo commented on 2018-04-04 22:34

On the latest and greatest Gnome 3.28 I get this:

~>$ screenruler
Loading libraries...
/usr/share/screenruler/utils/addons_ruby.rb:42: warning: constant ::Fixnum is deprecated
Traceback (most recent call last):
    17: from /usr/bin/screenruler:51:in <main>'
    16: from /usr/share/screenruler/utils/addons_ruby.rb:59:inrequire'
    15: from /usr/share/screenruler/utils/addons_ruby.rb:59:in each'
    14: from /usr/share/screenruler/utils/addons_ruby.rb:59:inblock in require'
    13: from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:39:in require'
    12: from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:128:inrescue in require'
    11: from /usr/lib/ruby/2.5.0/rubygems.rb:213:in try_activate'
    10: from /usr/lib/ruby/2.5.0/rubygems/specification.rb:1063:infind_by_path'
     9: from /usr/lib/ruby/2.5.0/rubygems/specification.rb:1063:in find'
     8: from /usr/lib/ruby/2.5.0/rubygems/specification.rb:1063:ineach'
     7: from /usr/lib/ruby/2.5.0/rubygems/specification.rb:1064:in block in find_by_path'
     6: from /usr/lib/ruby/2.5.0/rubygems/bundler_version_finder.rb:46:incompatible?'
     5: from /usr/lib/ruby/2.5.0/rubygems/bundler_version_finder.rb:12:in bundler_version'
     4: from /usr/lib/ruby/2.5.0/rubygems/bundler_version_finder.rb:29:inbundler_version_with_reason'
     3: from /usr/lib/ruby/2.5.0/rubygems/bundler_version_finder.rb:81:in lockfile_version'
     2: from /usr/lib/ruby/2.5.0/rubygems/bundler_version_finder.rb:93:inlockfile_contents'
     1: from /usr/lib/ruby/2.5.0/rubygems/util.rb:116:in traverse_parents'
/usr/share/screenruler/utils/addons_ruby.rb:62:inloop': wrong number of arguments (given 0, expected 2..3) (ArgumentError)

Thank you for looking into this.

kylesferrazza commented on 2017-07-07 04:34

Please remove the pacgem version of cairo-gobject and let me know if gnome-screenruler works with just a "pacaur -S ruby-cairo-gobject"

paulodiovani commented on 2017-07-04 19:18

There are some missing dependencies. I was able to install with:

pacaur -Sy pacgem
pacgem native-package-installer cairo-gobject
pacaur -Sy gnome-screenruler

drxspace commented on 2017-05-23 17:13

Loading libraries...
/usr/share/screenruler/utils/addons_ruby.rb:42: warning: constant ::Fixnum is deprecated
/usr/lib/ruby/2.4.0/rubygems/dependency.rb:308:in `to_specs': Could not find 'native-package-installer' (>= 0) among 25 total gem(s) (Gem::MissingSpecError)
Checked in 'GEM_PATH=/home/jag/.gem/ruby/2.4.0:/usr/lib/ruby/gems/2.4.0', execute `gem env` for more information
from /usr/lib/ruby/2.4.0/rubygems/specification.rb:1442:in `block in activate_dependencies'
from /usr/lib/ruby/2.4.0/rubygems/specification.rb:1431:in `each'
from /usr/lib/ruby/2.4.0/rubygems/specification.rb:1431:in `activate_dependencies'
from /usr/lib/ruby/2.4.0/rubygems/specification.rb:1413:in `activate'
from /usr/lib/ruby/2.4.0/rubygems/specification.rb:1445:in `block in activate_dependencies'
from /usr/lib/ruby/2.4.0/rubygems/specification.rb:1431:in `each'
from /usr/lib/ruby/2.4.0/rubygems/specification.rb:1431:in `activate_dependencies'
from /usr/lib/ruby/2.4.0/rubygems/specification.rb:1413:in `activate'
from /usr/lib/ruby/2.4.0/rubygems/specification.rb:1445:in `block in activate_dependencies'
from /usr/lib/ruby/2.4.0/rubygems/specification.rb:1431:in `each'
from /usr/lib/ruby/2.4.0/rubygems/specification.rb:1431:in `activate_dependencies'
from /usr/lib/ruby/2.4.0/rubygems/specification.rb:1413:in `activate'
from /usr/lib/ruby/2.4.0/rubygems.rb:220:in `rescue in try_activate'
from /usr/lib/ruby/2.4.0/rubygems.rb:213:in `try_activate'
from /usr/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:126:in `rescue in require'
from /usr/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:40:in `require'
from /usr/share/screenruler/utils/addons_ruby.rb:59:in `block in require'
from /usr/share/screenruler/utils/addons_ruby.rb:59:in `each'
from /usr/share/screenruler/utils/addons_ruby.rb:59:in `require'
from /usr/bin/screenruler:51:in `<main>'

Thank you for your attention to this matter