From ArchWiki
Revision as of 18:20, 6 April 2013 by Ichimonji10 (talk | contribs) (Managing RubyGems using pacman: Clarified language.)
Jump to: navigation, search

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
    --both --version '>= 0' --document --no-force
    --install-dir /home/ichimonji10/.gem/ruby/2.0.0
$ curl > PKGBUILD
$ dos2unix PKGBUILD
$ makepkg
==> Starting package()...
ERROR:  Use --install-dir or --user-install but not both

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