Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Oct 2019 00:55:10 +0000 (UTC)
From:      Velcro Leaf <velcroleaf@rocketmail.com>
To:        "ruby@FreeBSD.org" <ruby@FreeBSD.org>
Subject:   ruby26-gems-3.0.6 installation
Message-ID:  <684373591.1481932.1569977710491@mail.yahoo.com>
References:  <684373591.1481932.1569977710491.ref@mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
When installing the ruby26-gems-3.0.6 port on FreeBSD, starting from /usr/p=
orts/devel/ruby-gems, a regular "make" worked just fine.=C2=A0 But a "make =
install" failed, due to a missing file.

As it turns out, I've had to do some stupid things with a server that ran o=
ut of filesystem space on /usr, so /usr/ports is actually a soft link to so=
mewhere else on the machine.

The problem was that the file /usr/ports/devel/ruby-gems/work/stage/usr/loc=
al/bin/gem26 was not getting deposited properly, because it was sucking in =
the full canonical directory when locating it under the work directory.=C2=
=A0 The fix was to do this from the ruby-gems directory:

mv -i work/stage/[stupid location]/usr/local/bin/gem26 work/stage/usr/local=
/bin

After that, everything worked fine.=C2=A0 I know this is weird case, but I'=
ve never run into it before, so even if the current config is technically a=
cceptable in general FreeBSD terms, it does seem to be doing something that=
 other ports don't.=C2=A0 It breaks the "It Just Works" convention when upd=
ating via portupgrade and such, so it took a while to realize where the pro=
blem was.=C2=A0 Also while ruby-gems in uninstalled, portupgrade is gone, a=
long with its associated tools, so it's a nontrivial error if you expect to=
 just portupgrade -a and have a good day.

Anyway, thought you might like to know, and thanks for your contribution to=
 the world of FreeBSD and generally making life better for nerds.

-Leif



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?684373591.1481932.1569977710491>