Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/google-sheets/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby 安装rrrdiff(0.10.1)时出错,捆绑程序无法继续_Ruby_Locale - Fatal编程技术网

Ruby 安装rrrdiff(0.10.1)时出错,捆绑程序无法继续

Ruby 安装rrrdiff(0.10.1)时出错,捆绑程序无法继续,ruby,locale,Ruby,Locale,我在运行bundler时遇到以下错误 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.

我在运行bundler时遇到以下错误

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
我使用
brew安装rsync
安装了
rsync

但在运行bundler时,我仍然得到相同的错误跟踪

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