Note that there are some explanatory texts on larger screens.

plurals
  1. POsaltstack: brew module - couldn't find HOME environment?
    primarykey
    data
    text
    <ul> <li>os: MacOS</li> <li>osarch: x86_64</li> <li>osrelease: 10.9</li> <li>path: /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin</li> </ul> <p>$ salt --versions-report</p> <pre><code> Salt: 0.17.2 Python: 2.7.6 (default, Nov 19 2013, 02:02:54) Jinja2: 2.7.1 M2Crypto: 0.21.1 msgpack-python: 0.4.0 msgpack-pure: Not Installed pycrypto: 2.6.1 PyYAML: 3.10 PyZMQ: 14.0.0 ZMQ: 3.2.4 </code></pre> <p>$ sudo salt '*' pkg.list_pkgs</p> <pre><code>MacBook-Pro.local: ---------- from: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/pathname.rb:853:in,/usr/local/Library/Homebrew/global.rb:25:in,/usr/local/Library/Homebrew/global.rb:44,/usr/local/Library/brew.rb:17,/usr/local/Library/brew.rb:17:in /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/pathname.rb:853:in: `expand_path': </code></pre> <p>$ sudo salt '*' pkg.list_upgrades</p> <pre><code>MacBook-Pro.local: - /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/pathname.rb:853:in `expand_path': couldn't find HOME environment -- expanding `~/Library/Caches/Homebrew' (ArgumentError) - from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/pathname.rb:853:in `expand_path' - from /usr/local/Library/Homebrew/global.rb:25:in `cache' - from /usr/local/Library/Homebrew/global.rb:44 - from /usr/local/Library/brew.rb:17:in `require' - from /usr/local/Library/brew.rb:17 </code></pre> <p>but running <code>brew</code> from the command line is working fine:</p> <p>$ brew list --versions</p> <pre><code>cairo 1.12.16 ccze 0.2.1 cmake 2.8.12.1 curl 7.33.0 fontconfig 2.11.0 </code></pre> <p>$ brew outdated</p> <pre><code>freetype (2.5.0.1 &lt; 2.5.1) imagemagick (6.8.7-0 &lt; 6.8.7-7) libpng (1.5.14 &lt; 1.5.17) passenger (4.0.24 &lt; 4.0.26) pixman (0.32.2 &lt; 0.32.4) zeromq (3.2.4 &lt; 4.0.3) </code></pre> <p>I suspect that it caused by a different versions of Ruby:</p> <pre><code>$ /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -v ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin13.0] $(which ruby) -v ruby 2.0.0p247 (2013-06-27 revision 41674) [universal.x86_64-darwin13] </code></pre> <p>$ brew doctor</p> <pre><code>Your system is ready to brew. </code></pre> <p>Try to expand from the command line still works:</p> <pre><code>$ /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -ve 'p ENV["HOME"]' ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin13.0] "/Users/quanta" $ /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -ve 'p File.expand_path("~")' ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin13.0] "/Users/quanta" </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload