sinat_41351261 2021-06-21 10:19 采纳率: 0%
浏览 9

bundle exec rackup 报错

用rvm下载的ruby

bundle exec rackup之后报错,报错内容如下

/home/johanna/.rvm/gems/ruby-2.2.2/gems/ffi-1.9.18/lib/ffi/library.rb:147:in `block in ffi_lib': Could not open library '/home/johanna/twenty-fifty/model/libmodel.so': /home/johanna/twenty-fifty/model/libmodel.so: cannot open shared object file: No such file or directory (LoadError)
	from /home/johanna/.rvm/gems/ruby-2.2.2/gems/ffi-1.9.18/lib/ffi/library.rb:100:in `map'
	from /home/johanna/.rvm/gems/ruby-2.2.2/gems/ffi-1.9.18/lib/ffi/library.rb:100:in `ffi_lib'
	from /home/johanna/twenty-fifty/model/model.rb:102:in `<module:C>'
	from /home/johanna/twenty-fifty/model/model.rb:100:in `<class:Model>'
	from /home/johanna/twenty-fifty/model/model.rb:4:in `<top (required)>'
	from /home/johanna/twenty-fifty/model/data_from_model.rb:1:in `require_relative'
	from /home/johanna/twenty-fifty/model/data_from_model.rb:1:in `<top (required)>'
	from /home/johanna/twenty-fifty/src/server.rb:6:in `require_relative'
	from /home/johanna/twenty-fifty/src/server.rb:6:in `<top (required)>'
	from /home/johanna/twenty-fifty/config.ru:7:in `require'
	from /home/johanna/twenty-fifty/config.ru:7:in `block in <main>'
	from /home/johanna/.rvm/gems/ruby-2.2.2/gems/rack-2.0.3/lib/rack/builder.rb:55:in `instance_eval'
	from /home/johanna/.rvm/gems/ruby-2.2.2/gems/rack-2.0.3/lib/rack/builder.rb:55:in `initialize'
	from /home/johanna/twenty-fifty/config.ru:in `new'
	from /home/johanna/twenty-fifty/config.ru:in `<main>'
	from /home/johanna/.rvm/gems/ruby-2.2.2/gems/rack-2.0.3/lib/rack/builder.rb:49:in `eval'
	from /home/johanna/.rvm/gems/ruby-2.2.2/gems/rack-2.0.3/lib/rack/builder.rb:49:in `new_from_string'
	from /home/johanna/.rvm/gems/ruby-2.2.2/gems/rack-2.0.3/lib/rack/builder.rb:40:in `parse_file'
	from /home/johanna/.rvm/gems/ruby-2.2.2/gems/rack-2.0.3/lib/rack/server.rb:319:in `build_app_and_options_from_config'
	from /home/johanna/.rvm/gems/ruby-2.2.2/gems/rack-2.0.3/lib/rack/server.rb:219:in `app'
	from /home/johanna/.rvm/gems/ruby-2.2.2/gems/rack-2.0.3/lib/rack/server.rb:354:in `wrapped_app'
	from /home/johanna/.rvm/gems/ruby-2.2.2/gems/rack-2.0.3/lib/rack/server.rb:283:in `start'
	from /home/johanna/.rvm/gems/ruby-2.2.2/gems/rack-2.0.3/lib/rack/server.rb:148:in `start'
	from /home/johanna/.rvm/gems/ruby-2.2.2/gems/rack-2.0.3/bin/rackup:4:in `<top (required)>'
	from /home/johanna/.rvm/gems/ruby-2.2.2/bin/rackup:23:in `load'
	from /home/johanna/.rvm/gems/ruby-2.2.2/bin/rackup:23:in `<main>'
	from /home/johanna/.rvm/gems/ruby-2.2.2/bin/ruby_executable_hooks:22:in `eval'
	from /home/johanna/.rvm/gems/ruby-2.2.2/bin/ruby_executable_hooks:22:in `<main>'

可能是ruby版本的问题,但是未找到解决办法

  • 写回答

1条回答 默认 最新

  • 有问必答小助手 2021-06-24 18:18
    关注

    你好,我是有问必答小助手,非常抱歉,本次您提出的有问必答问题,技术专家团超时未为您做出解答

    本次提问扣除的有问必答次数,将会以问答VIP体验卡(1次有问必答机会、商城购买实体图书享受95折优惠)的形式为您补发到账户。

    ​​​​因为有问必答VIP体验卡有效期仅有1天,您在需要使用的时候【私信】联系我,我会为您补发。

    评论

报告相同问题?

悬赏问题

  • ¥15 如何解决ldsc的这条报错/index error
  • ¥15 VS2022+WDK驱动开发环境
  • ¥30 关于#java#的问题,请各位专家解答!
  • ¥30 vue+element根据数据循环生成多个table,如何实现最后一列 平均分合并
  • ¥20 pcf8563时钟芯片不启振
  • ¥20 pip2.40更新pip2.43时报错
  • ¥15 换yum源但仍然用不了httpd
  • ¥50 C# 使用DEVMOD设置打印机首选项
  • ¥15 麒麟V10 arm安装gdal
  • ¥20 OPENVPN连接问题