ruby-install
ruby-install copied to clipboard
Ubuntu 16.04 and rubinius fails to install, missing apt dependency
Running Ubuntu 16.04 (Xenial) there is no longer a ruby1.9.1-dev packaged in the archive, see this error:
[adam:~] 54s $ ruby-install rbx 3.43
>>> Installing rbx 3.43 into /home/adam/.rubies/rbx-3.43 ...
>>> Installing dependencies for rbx 3.43 ...
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package ruby1.9.1-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'ruby1.9.1-dev' has no installation candidate
The available ruby interpreter now is ruby 2.3.0
which you can get by installing ruby
package.
In order to support prior versions of Ubuntu we'd need to probably check /etc/lsb-release
and add the package dependency accordingly.
I ran into this problem and more, trying to ruby-install rbx
on Ubuntu 19.10, and now Debian stable. It appears that rubinius has updated their build system (per https://github.com/postmodern/ruby-install/issues/342#issuecomment-481897733) and there is significant breakage, at least on Debian-based systems. ruby1.9.1-dev
and llvm-3.5-dev
no longer exist on modern Debians.
rwh@debian:~$ ruby-install rbx
>>> Updating rbx versions ...
>>> Installing rbx 4.15 into /home/rwh/.rubies/rbx-4.15 ...
>>> Installing dependencies for rbx 4.15 ...
[sudo] password for rwh:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package ruby1.9.1-dev
E: Couldn't find any package by glob 'ruby1.9.1-dev'
E: Couldn't find any package by regex 'ruby1.9.1-dev'
E: Unable to locate package llvm-3.5-dev
E: Couldn't find any package by glob 'llvm-3.5-dev'
E: Couldn't find any package by regex 'llvm-3.5-dev'
!!! Installing dependencies failed!
/usr/local/share/ruby-install/rbx/dependencies.txt
apt: gcc g++ automake flex bison ruby1.9.1-dev llvm-3.5-dev libedit-dev zlib1g-dev libyaml-dev libssl-dev libgdbm-dev libreadline-dev libncurses5-dev
Possible fixes: ruby2.5-dev
is in Debian stable. Metapackages which point to it: ruby-dev
and ruby-all-dev
. Ubuntu 19.10 supports more, as I recall. Likewise for LLVM. But I am reproducing on Debian stable now. For LLVM, there is llvm-6.0-dev
llvm-7-dev
and llvm-dev
.
With ruby-dev
and llvm-dev
and clang
, I get rbx successfully installed:
Successfully installed Rubinius 4.15
Add '/home/rwh/.rubies/rbx-4.15/bin' to your PATH. Available commands are:
rbx, ruby, rake, gem, irb, rdoc, ri
1. Run Ruby files with 'rbx path/to/file.rb'
2. Start IRB by running 'rbx' with no arguments
>>> Successfully installed rbx 4.15 into /home/rwh/.rubies/rbx-4.15
Rubinius support was removed due to inactivity (see #435). Closing this.