Tôi đang cố gắng cài đặt geoutm bằng cách sử dụng gem install geoutm
. Kho lưu trữ Github không có trang sự cố, vì vậy, tôi đang cố tự khắc phục sự cố rồi gửi yêu cầu kéo. Đây là vấn đề:Làm cách nào để gỡ lỗi vì sao cài đặt gem không thành công?
$ gem install geoutm Fetching: geoutm-1.0.1.gem (100%) Successfully installed geoutm-1.0.1 ERROR: While executing gem ... (TypeError) no implicit conversion of Array into String
Nó nói "cài đặt thành công", nhưng cố gắng yêu cầu lỗi đá quý. Cài đặt tiện ích không hữu ích hơn nhiều:
$ gem install geoutm --verbose HEAD https://rubygems.org/latest_specs.4.8.gz 302 Moved Temporarily HEAD https://s3.amazonaws.com/production.s3.rubygems.org/latest_specs.4.8.gz 200 OK GET https://rubygems.org/latest_specs.4.8.gz 302 Moved Temporarily GET https://s3.amazonaws.com/production.s3.rubygems.org/latest_specs.4.8.gz 200 OK Installing gem geoutm-1.0.1 /home/tomas/.rvm/gems/ruby-2.0.0-p247/gems/geoutm-1.0.1/spec/latlon_spec.rb /home/tomas/.rvm/gems/ruby-2.0.0-p247/gems/geoutm-1.0.1/spec/geoutm_spec.rb /home/tomas/.rvm/gems/ruby-2.0.0-p247/gems/geoutm-1.0.1/spec/spec_helper.rb /home/tomas/.rvm/gems/ruby-2.0.0-p247/gems/geoutm-1.0.1/spec/utm_spec.rb /home/tomas/.rvm/gems/ruby-2.0.0-p247/gems/geoutm-1.0.1/spec/testdata.yaml /home/tomas/.rvm/gems/ruby-2.0.0-p247/gems/geoutm-1.0.1/spec/spec.opts /home/tomas/.rvm/gems/ruby-2.0.0-p247/gems/geoutm-1.0.1/spec/ellipsoid_spec.rb /home/tomas/.rvm/gems/ruby-2.0.0-p247/gems/geoutm-1.0.1/lib/geoutm/utm_zones.rb /home/tomas/.rvm/gems/ruby-2.0.0-p247/gems/geoutm-1.0.1/lib/geoutm/geo_utm_exception.rb /home/tomas/.rvm/gems/ruby-2.0.0-p247/gems/geoutm-1.0.1/lib/geoutm/utm.rb /home/tomas/.rvm/gems/ruby-2.0.0-p247/gems/geoutm-1.0.1/lib/geoutm/ellipsoid.rb /home/tomas/.rvm/gems/ruby-2.0.0-p247/gems/geoutm-1.0.1/lib/geoutm/latlon.rb /home/tomas/.rvm/gems/ruby-2.0.0-p247/gems/geoutm-1.0.1/lib/geoutm.rb /home/tomas/.rvm/gems/ruby-2.0.0-p247/gems/geoutm-1.0.1/LICENCE /home/tomas/.rvm/gems/ruby-2.0.0-p247/gems/geoutm-1.0.1/README.rdoc /home/tomas/.rvm/gems/ruby-2.0.0-p247/gems/geoutm-1.0.1/History.txt Successfully installed geoutm-1.0.1 ERROR: While executing gem ... (TypeError) no implicit conversion of Array into String
Đá quý hoạt động hoàn hảo khi được tải xuống thủ công và sử dụng mà không cần cài đặt.
Vấn đề là tôi không biết cách tìm ra nơi xảy ra lỗi loại. Tôi không thể tìm thấy bất kỳ nhật ký cài đặt hoặc cờ đầu ra chi tiết nào khác. Bất kỳ ý tưởng làm thế nào tôi có thể tìm ra lỗi này?
thử này ' gem check geoutm --debug' hoặc 'gem check geoutm --backtrace' –