2016-07-20 152 views
0
libsndfile.so.1: cannot open shared object file: No such file or directory - /opt/rubies/ruby-2.1.2/lib/ruby/gems/2.1.0/extensions/x86_64-linux/2.1.0-static/ruby-audio-1.6.1/rubyaudio_ext.so (LoadError) 
    /opt/rubies/ruby-2.1.2/lib/ruby/gems/2.1.0/gems/ruby-audio-1.6.1/lib/ruby-audio.rb:6:in `require' 
    /opt/rubies/ruby-2.1.2/lib/ruby/gems/2.1.0/gems/ruby-audio-1.6.1/lib/ruby-audio.rb:6:in `rescue in <top (required)>' 
    /opt/rubies/ruby-2.1.2/lib/ruby/gems/2.1.0/gems/ruby-audio-1.6.1/lib/ruby-audio.rb:1:in `<top (required)>' 
    /opt/rubies/ruby-2.1.2/lib/ruby/gems/2.1.0/gems/json-waveform-0.2.1/lib/json-waveform.rb:3:in `require' 
    /opt/rubies/ruby-2.1.2/lib/ruby/gems/2.1.0/gems/json-waveform-0.2.1/lib/json-waveform.rb:3:in `<top (required)>' 
    /opt/rubies/ruby-2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.6.2/lib/bundler/runtime.rb:76:in `require' 
    /opt/rubies/ruby-2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.6.2/lib/bundler/runtime.rb:76:in `block (2 levels) in require' 
    /opt/rubies/ruby-2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.6.2/lib/bundler/runtime.rb:72:in `each' 
    /opt/rubies/ruby-2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.6.2/lib/bundler/runtime.rb:72:in `block in require' 
    /opt/rubies/ruby-2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.6.2/lib/bundler/runtime.rb:61:in `each' 
    /opt/rubies/ruby-2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.6.2/lib/bundler/runtime.rb:61:in `require' 
    /opt/rubies/ruby-2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.6.2/lib/bundler.rb:132:in `require' 
    /var/app/current/config/application.rb:7:in `<top (required)>' 
    /var/app/current/config/environment.rb:2:in `require' 
    /var/app/current/config/environment.rb:2:in `<top (required)>' 
    config.ru:3:in `require' 
    config.ru:3:in `block in <main> 

但是當我檢查作爲libsndfile.so.1:無法打開共享對象文件:沒有這樣的文件或目錄

"ll /opt/rubies/ruby-2.1.2/lib/ruby/gems/2.1.0/extensions/x86_64-linux/2.1.0-static/ruby-audio-1.6.1/" 

文件存在有在redhat AWS服務器。

我該如何解決這個問題? 感謝

+1

嘗試'易於得到安裝libsndfile1-dev',然後重試 – itsnikolay

+0

你能粘貼您的passenger.conf文件之上? – error2007s

+0

它是aws redhat機器。通過這種方式,如果我嘗試使用「yum install libsndfile1-dev」,給我下面的消息「無包libsndfile1-devel可用」。 我已經從「http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.27.tar.gz」 –

回答

1
ldconfig -p | grep libsndfile.so 

如果沒有找到,則文件中找到您的libsndfile-1.0.27是。

將libsendfile-1.0.27的路徑目錄添加到/etc/ld.so.conf.d中的文件中。

添加文件後,/etc/ld.conf.d運行ldconfig

+0

手動安裝它完美的答案!謝謝 –

相關問題