gpt4 book ai didi

ruby-on-rails - passenger meet Library not loaded错误: liblzma. 5.dylib

转载 作者:行者123 更新时间:2023-12-04 06:27:40 28 4
gpt4 key购买 nike

我想和乘客一起跑 rails 。

我同时安装了 AWS SDK 1 和 2 gem:

gem 'aws-sdk-v1'
gem 'aws-sdk', '~> 2'

当我使用 AWS sdk 运行时:

s3 = AWS::S3.new

我遇到错误:

LoadError: dlopen(/Users/XXXX/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/nokogiri-1.6.6.2/lib/nokogiri/nokogiri.bundle, 9): 
Library not loaded: /usr/local/lib/liblzma.5.dylib
Referenced from: /Users/XXXX/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/nokogiri-1.6.6.2/lib/nokogiri/nokogiri.bundle
Reason: Incompatible library version: nokogiri.bundle requires version 8.0.0 or later, but liblzma.5.dylib provides version 6.0.0

otool -L 告诉我版本是 8.1.0

$ otool -L /usr/local/lib/liblzma.5.dylib
/usr/local/lib/liblzma.5.dylib:
/usr/local/lib/liblzma.5.dylib (compatibility version 8.0.0, current version 8.1.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1213.0.0)

奇怪的是,当我运行“rails s”时,这个错误没有出现。通过 brew 更新/卸载/重新安装 xz 没有帮助。更新/卸载/重新安装 gem nokogiri 也无济于事。

最佳答案

尝试关注这个 https://github.com/PromyLOPh/pianobar/issues/530#issuecomment-125746641

这是修复:Cannot get ffmpeg to work after installing from homebrew

使用 brew:brew install xz 因为 liblzma 现在在 xz

关于ruby-on-rails - passenger meet Library not loaded错误: liblzma. 5.dylib,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32293619/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com