Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

构建DevMBox环境报错:Could not find gem 'minitest-hooks', which is required by gem 'mbox-dev', in locally installed gems.[0m #17

Open
wxh841969240 opened this issue Oct 24, 2022 · 3 comments

Comments

@wxh841969240
Copy link

问题日志:

[2022-10-24 16:09:43] mbox pod install
Setup Workspace Environment
Setup Gemfile.lock
  No valid Gemfile.lock to copy.
Check Bundler Version
  Gemfile.lock not exists.
  �[36m$ gem list -e bundler�[0m
    
    *** LOCAL GEMS ***
    
    bundler (2.2.24, default: 1.17.2)
Using Bundler v2.2.24
Check Bundler Gems
  �[36m$ bundle _2.2.24_ check�[0m
    Resolving dependencies...
    �[31mBundler can't satisfy your Gemfile's dependencies.�[0m
    �[33mInstall missing gems with `bundle install`.�[0m
Setup Gemfile.lock
  No valid Gemfile.lock to copy.
Setup Bundler Gems
  �[36m$ bundle _2.2.24_ update --all�[0m
    Resolving dependencies...
    �[31mBundler could not find compatible versions for gem "minitest-hooks":
      In Gemfile:
        mbox-dev was resolved to 1.1.9, which depends on
          minitest-hooks

    Could not find gem 'minitest-hooks', which is required by gem 'mbox-dev', in
    locally installed gems.�[0m
  �[31m[RuntimeError]�[0m Setup Gems Error
Setup Workspace Environment

�[91m[X] Setup Gems Error�[0m
======================================== 0秒钟 ========================================
The log was saved: ``/Users/wangxiaohui/CrackedApps/myspace/mboxplayground/DevMBox/.mbox/logs/2022-10-24/CLI/16-09-43-775` pod install.verbose.log`

$DevMBox gem list

*** LOCAL GEMS ***

activesupport (5.2.6)
addressable (2.8.0)
algoliasearch (1.27.5)
atomos (0.1.3)
bigdecimal (default: 1.4.1)
bundler (2.2.24, default: 1.17.2)
CFPropertyList (2.3.6)
claide (1.0.3)
cmath (default: 1.0.0)
cocoapods (1.10.1)
cocoapods-core (1.10.1)
cocoapods-deintegrate (1.0.5)
cocoapods-downloader (1.5.1)
cocoapods-plugins (1.0.0)
cocoapods-search (1.0.1)
cocoapods-trunk (1.6.0)
cocoapods-try (1.2.0)
colored2 (3.1.2)
concurrent-ruby (1.1.9)
csv (default: 3.0.9)
date (default: 2.0.0)
dbm (default: 1.0.0)
did_you_mean (1.3.0)
e2mmap (default: 0.1.0)
escape (0.0.4)
etc (default: 1.0.1)
ethon (0.14.0)
fcntl (default: 1.0.0)
ffi (1.15.5, 1.15.4, 1.15.3)
fiddle (default: 1.0.0)
fileutils (default: 1.1.0)
forwardable (default: 1.2.0)
fourflusher (2.3.1)
fuzzy_match (2.0.4)
gh_inspector (1.1.3)
httpclient (2.8.3)
i18n (1.8.10)
io-console (default: 0.4.7)
ipaddr (default: 1.2.2)
irb (default: 1.0.0)
json (default: 2.1.0)
libxml-ruby (3.2.1)
logger (default: 1.3.0)
matrix (default: 0.1.0)
mini_portile2 (2.4.0)
minitest (5.11.3)
minitest-hooks (1.5.0)
molinillo (0.8.0, 0.6.6)
mutex_m (default: 0.1.0)
nanaimo (0.3.0)
nap (1.1.0)
net-telnet (0.2.0)
netrc (0.11.0)
nokogiri (1.10.1)
openssl (default: 2.1.2)
ostruct (default: 0.1.0)
power_assert (1.1.3)
prime (default: 0.1.0)
psych (default: 3.1.0)
public_suffix (4.0.6)
rake (12.3.3)
rdoc (default: 6.1.2.1)
rexml (3.2.5, default: 3.1.9.1)
rss (default: 0.2.7)
ruby-macho (1.4.0)
rubygems-update (3.2.24)
scanf (default: 1.0.0)
sdbm (default: 1.0.0)
shell (default: 0.7)
sqlite3 (1.3.13)
stringio (default: 0.0.2)
strscan (default: 1.0.0)
sync (default: 0.5.0)
test-unit (3.2.9)
thread_safe (0.3.6)
thwait (default: 0.1.0)
tracer (default: 0.1.0)
typhoeus (1.4.0)
tzinfo (1.2.9)
webrick (default: 1.4.4)
xcodeproj (1.21.0, 1.20.0)
xmlrpc (0.3.0)
zlib (default: 1.0.0)
@wxh841969240
Copy link
Author

检查了一下,本地gem的minitest-hooks是安装好的,很奇怪。难道是什么依赖的环境配置出错了?

@wxh841969240
Copy link
Author

额 好像环境变量的问题 gem bundle的全局配置(~/.bundle/config文件)中被添加了一个BUNDLE_PATH的环境变量,使Bundler定位gems的路径被忽略,报找不到已经安装的gems,删掉这个变量以后就可以正常执行 pod install了。另外m1机器需要在前面加arch -x86_64

@Whirlwind
Copy link

首先,这个换成 bundler 2.3.0 即可,其次,哪个全局配置是mbox加的,就是为了实现不污染系统全局gem。最后,M1 机器请不要使用 arch -x86_64 前缀!!!!不要随便看百度上奇奇怪怪的解决方案。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants