alexandria-book-collection-manager
alexandria-book-collection-manager copied to clipboard
Cannot install Alexandria on Ubuntu 20.04.4 LTS
The procedure exits with an exit code 1. I also installed Ruby with ruby-full
How can I solve the problem?
here is what I obtain:
fabio@fabio-casa:~$ sudo gem install alexandria-book-collection-manager
Fetching erubi-1.10.0.gem
Fetching gobject-introspection-3.5.1.gem
Fetching gettext-3.4.3.gem
Fetching pkg-config-1.4.7.gem
Fetching native-package-installer-1.1.5.gem
Fetching glib2-3.5.1.gem
Fetching locale-2.1.3.gem
Fetching text-1.3.1.gem
Fetching gstreamer-3.5.1.gem
Fetching gio2-3.5.1.gem
Fetching atk-3.5.1.gem
Fetching red-colors-0.3.0.gem
Fetching cairo-1.17.5.gem
Fetching cairo-gobject-3.5.1.gem
Fetching pango-3.5.1.gem
Fetching gdk_pixbuf2-3.5.1.gem
Fetching unf-0.1.4.gem
Fetching gdk3-3.5.1.gem
Fetching gtk3-3.5.1.gem
Fetching htmlentities-4.3.4.gem
Fetching image_size-3.0.2.gem
Fetching scrub_rb-1.0.1.gem
Fetching unf_ext-0.0.8.2.gem
Fetching alexandria-book-collection-manager-0.7.9.gem
Fetching marc-1.1.1.gem
Fetching nokogiri-1.13.8-x86_64-linux.gem
Fetching psych-4.0.4.gem
Fetching zoom-0.5.0.gem
Successfully installed erubi-1.10.0
Successfully installed locale-2.1.3
Successfully installed text-1.3.1
Successfully installed gettext-3.4.3
Successfully installed pkg-config-1.4.7
Successfully installed native-package-installer-1.1.5
Building native extensions. This could take a while...
ERROR: Error installing alexandria-book-collection-manager:
ERROR: Failed to build gem native extension.
current directory: /var/lib/gems/2.7.0/gems/glib2-3.5.1/ext/glib2
/usr/bin/ruby2.7 -I /usr/lib/ruby/2.7.0 -r ./siteconf20220725-10168-1trlcr6.rb extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h
You might have to install separate package for the ruby development
environment, ruby-dev or ruby-devel for example.
extconf failed, exit code 1
Gem files will remain installed in /var/lib/gems/2.7.0/gems/glib2-3.5.1 for inspection.
Results logged to /var/lib/gems/2.7.0/extensions/x86_64-linux/2.7.0/glib2-3.5.1/gem_make.out
Can you try just installing the glib2
gem? If that fails, please file an issue at the ruby-gnome project: https://github.com/ruby-gnome/ruby-gnome/issues
Maybe trying
sudo apt install build-essential patch ruby-dev zlib1g-dev liblzma-dev
Closing this since the problem seems to be in installing glib2
and there's no response on that from the original submitter.