问题描述
运行捆绑程序时出现以下错误。
Using rr 1.2.1
Fetching rrdiff 0.10.1
Installing rrdiff 0.10.1 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /Users/sanjeewa/.rvm/gems/ruby-2.7.1/gems/rrdiff-0.10.1/ext/rrdiff
/Users/sanjeewa/.rvm/rubies/ruby-2.7.1/bin/ruby -I /Users/sanjeewa/.rvm/rubies/ruby-2.7.1/lib/ruby/site_ruby/2.7.0 -r ./siteconf20201105-95846-1n93gcc.rb extconf.rb
checking for -lrsync... no
*** extconf.rb Failed ***
Could not create Makefile due to some reason,probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided configuration options:
--with-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/Users/sanjeewa/.rvm/rubies/ruby-2.7.1/bin/$(RUBY_BASE_NAME)
--with-rsync-dir
--without-rsync-dir
--with-rsync-include
--without-rsync-include=${rsync-dir}/include
--with-rsync-lib
--without-rsync-lib=${rsync-dir}/lib
--with-rsynclib
--without-rsynclib
extconf.rb:3:in `<main>': unhandled exception
To see why this extension Failed to compile,please check the mkmf.log which can be found here:
/Users/sanjeewa/.rvm/gems/ruby-2.7.1/extensions/x86_64-darwin-19/2.7.0/rrdiff-0.10.1/mkmf.log
extconf Failed,exit code 1
Gem files will remain installed in /Users/sanjeewa/.rvm/gems/ruby-2.7.1/gems/rrdiff-0.10.1 for inspection.
Results logged to /Users/sanjeewa/.rvm/gems/ruby-2.7.1/extensions/x86_64-darwin-19/2.7.0/rrdiff-0.10.1/gem_make.out
An error occurred while installing rrdiff (0.10.1),and Bundler cannot continue.
Make sure that `gem install rrdiff -v '0.10.1' --source 'https://rubygems.org/'` succeeds before bundling.
In Gemfile:
rrdiff
如错误所述,我尝试运行gem install rrdiff -v '0.10.1' --source 'https://rubygems.org/'
。它也以相同的轨迹退出。
ld: library not found for -lrsync
clang: error: linker command Failed with exit code 1 (use -v to see invocation)
我使用rsync
安装了brew install rsync
。
仍然在运行捆绑程序时出现相同的错误跟踪。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)