Package Details: ruby-build 20221124-1

Git Clone URL: (read-only, click to copy)
Package Base: ruby-build
Description: Compile and install Ruby
Upstream URL:
Licenses: MIT
Submitter: None
Maintainer: saghm
Last Packager: saghm
Votes: 96
Popularity: 0.23
First Submitted: 2011-12-26 13:37 (UTC)
Last Updated: 2022-11-25 21:38 (UTC)

Dependencies (2)

Required by (2)

Sources (1)

Latest Comments

1 2 3 4 Next › Last »

nyi commented on 2022-11-07 10:37 (UTC)

Not so sure if this is the right place, but it might help someone struggling with failing Ruby builds due to the openssl extension.

I got the following now:

The Ruby openssl extension was not compiled.
ERROR: Ruby install aborted due to missing extensions

It seems Ruby doesn't work with OpenSSL 3 yet. Install core/openssl-1.1 and then install Ruby as:

PKG_CONFIG_PATH=/usr/lib/openssl-1.1/pkgconfig rbenv install 3.1.2

just1602 commented on 2020-12-25 21:30 (UTC)

Here the diff you need to apply if you want the latest version and try ruby 3.0.0:

diff --git a/PKGBUILD b/PKGBUILD
index e763ee7..b5a68a9 100644
@@ -3,7 +3,7 @@
 # Contributer: Vincent Demeester <>
 # Contributer: Alex Ogier <>
 pkgdesc="Compile and install Ruby"
@@ -13,7 +13,7 @@ license=('MIT')
 optdepends=('git: install ruby from git')

 build() {
   cd $srcdir

saghm commented on 2020-09-29 17:30 (UTC)

Sorry about the issue! I've pushed a new version that should now be working; let me know if it doesn't

whi-tw commented on 2020-09-29 11:18 (UTC) (edited on 2020-09-29 11:18 (UTC) by whi-tw)

Confirmed working with the same solution as @nyi:

 8  ⋮    │-_file="${pkgname}-v${pkgver}.tar.gz"
    ⋮ 8  │+_file="v${pkgver}.tar.gz"

Xanarion commented on 2020-09-29 08:20 (UTC) (edited on 2020-09-29 08:20 (UTC) by Xanarion)

I don't understand how this would unless you change the build() section to:

build() {
  cd $srcdir
  tar -x --strip-components 1 -zf "v${pkgver}.tar.gz"

If you don't make the change above - you get the error that states:

ruby-build-v20200926.tar.gz: Cannot open: No such file or directory

nyi commented on 2020-09-29 08:15 (UTC)

The downloaded file is now called v20200926.tar.gz instead of ruby-build-v20200926.tar.gz.

You can fix the build by changing the following line in PKGBUILD:

- _file="${pkgname}-v${pkgver}.tar.gz"
+ _file="v${pkgver}.tar.gz"

kfl62 commented on 2020-09-29 05:18 (UTC)

==> Starting build()... tar (child): ruby-build-v20200926.tar.gz: Cannot open: No such file or directory tar (child): Error is not recoverable: exiting now tar: Child returned status 2 tar: Error is not recoverable: exiting now ==> ERROR: A failure occurred in build(). Aborting... error making: ruby-build

saghm commented on 2020-09-29 02:01 (UTC)

Hello! I've fixed the URL so that it's clickable. The _file variable is used when mksrcinfo is used to create the .SRCINFO for the package, so even though it's not used in the PKGBUILD, it's useful to leave in.

FabioLolix commented on 2020-08-19 17:40 (UTC)

Hello, the url need to be 'clickable' which isn't at the moment and _file is a pointless custom variable

saghm commented on 2020-04-02 16:34 (UTC)

Just pushed the update; apologies for the delay