当我在 Linux 上的挂载共享中时,我在启动 ruby 程序或只是 irb 时收到以下错误。只要我不在共享范围内,一切正常。该共享是由 rclone 安装的。也许它的rclone特定。对于 irb,错误是:
/usr/local/lib/site_ruby/2.3.0/rubygems/bundler_version_finder.rb:80:in `pwd': No such file or directory - getcwd (Errno::ENOENT)
from /usr/local/lib/site_ruby/2.3.0/rubygems/bundler_version_finder.rb:80:in `lockfile_contents'
from /usr/local/lib/site_ruby/2.3.0/rubygems/bundler_version_finder.rb:68:in `lockfile_version'
from /usr/local/lib/site_ruby/2.3.0/rubygems/bundler_version_finder.rb:22:in `bundler_version_with_reason'
from /usr/local/lib/site_ruby/2.3.0/rubygems/bundler_version_finder.rb:7:in `bundler_version'
from /usr/local/lib/site_ruby/2.3.0/rubygems/bundler_version_finder.rb:39:in `compatible?'
from /usr/local/lib/site_ruby/2.3.0/rubygems/specification.rb:1042:in `block in find_by_path'
from /usr/local/lib/site_ruby/2.3.0/rubygems/specification.rb:1041:in `each'
from /usr/local/lib/site_ruby/2.3.0/rubygems/specification.rb:1041:in `find'
from /usr/local/lib/site_ruby/2.3.0/rubygems/specification.rb:1041:in `find_by_path'
from /usr/local/lib/site_ruby/2.3.0/rubygems.rb:212:in `try_activate'
from /usr/lib/ruby/2.3.0/irb/locale.rb:150:in `block in search_file'
from /usr/lib/ruby/2.3.0/irb/locale.rb:158:in `block in each_localized_path'
from /usr/lib/ruby/2.3.0/irb/locale.rb:167:in `each_sublocale'
from /usr/lib/ruby/2.3.0/irb/locale.rb:157:in `each_localized_path'
from /usr/lib/ruby/2.3.0/irb/locale.rb:145:in `search_file'
from /usr/lib/ruby/2.3.0/irb/locale.rb:124:in `find'
from /usr/lib/ruby/2.3.0/irb/locale.rb:108:in `load'
from /usr/lib/ruby/2.3.0/irb/locale.rb:32:in `initialize'
from /usr/lib/ruby/2.3.0/irb/init.rb:113:in `new'
from /usr/lib/ruby/2.3.0/irb/init.rb:113:in `init_config'
from /usr/lib/ruby/2.3.0/irb/init.rb:17:in `setup'
from /usr/lib/ruby/2.3.0/irb.rb:378:in `start'
from /usr/bin/irb:11:in `<main>'
有谁知道如何解决这一问题?