Difference between revisions of "Talk:Ruby"

From ArchWiki
Jump to: navigation, search
m (Added a link to the relevant wiki section.)
(Managing RubyGems using pacman: Found a resolution to the --no-user-install issue.)
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==Managing RubyGems using pacman==
+
==<s>Managing RubyGems using pacman</s>==
The warning in [[Ruby#Managing_RubyGems_using_pacman]] implies that {{ic|--user-install}} and {{ic|--no-user-install}} options in a PKGBUILD file are bad. However, one of these switches '''must''' be present for a build to succeed. See the following:
+
The warning in [[Ruby#Managing_RubyGems_using_pacman]] implies that the presence of {{ic|--user-install}} and {{ic|--no-user-install}} options in a PKGBUILD file are bad, because they override system-wide defaults in {{ic|/etc/gemrc}}. However, one of these switches '''must''' be present for a build to succeed. See the following:
{{hc|<nowiki>
+
{{bc|<nowiki>
 
$ tail -n 1 /etc/gemrc
 
$ tail -n 1 /etc/gemrc
 
gem: --user-install
 
gem: --user-install
Line 16: Line 16:
 
</nowiki>}}
 
</nowiki>}}
 
[[User:Ichimonji10|Ichimonji10]] ([[User talk:Ichimonji10|talk]]) 04:10, 1 April 2013 (UTC)
 
[[User:Ichimonji10|Ichimonji10]] ([[User talk:Ichimonji10|talk]]) 04:10, 1 April 2013 (UTC)
 +
 +
:Aaaah. Looks like the warning is incorrect. {{ic|--no-user-install}} is necessary for PKGBUILDs, as per the [[Ruby_Gem_Package_Guidelines]].
 +
:[[User:Ichimonji10|Ichimonji10]] ([[User talk:Ichimonji10|talk]]) 13:14, 8 April 2013 (UTC)

Revision as of 13:14, 8 April 2013

Managing RubyGems using pacman

The warning in Ruby#Managing_RubyGems_using_pacman implies that the presence of --user-install and --no-user-install options in a PKGBUILD file are bad, because they override system-wide defaults in /etc/gemrc. However, one of these switches must be present for a build to succeed. See the following:

$ tail -n 1 /etc/gemrc
gem: --user-install
$ gem help install | tail -n 3
  Defaults:
    --both --version '>= 0' --document --no-force
    --install-dir /home/ichimonji10/.gem/ruby/2.0.0
$ curl http://pastebin.com/raw.php?i=xSQVUfDt > PKGBUILD
$ dos2unix PKGBUILD
$ makepkg
...
==> Starting package()...
ERROR:  Use --install-dir or --user-install but not both

Ichimonji10 (talk) 04:10, 1 April 2013 (UTC)

Aaaah. Looks like the warning is incorrect. --no-user-install is necessary for PKGBUILDs, as per the Ruby_Gem_Package_Guidelines.
Ichimonji10 (talk) 13:14, 8 April 2013 (UTC)