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

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条回答 默认 最新

    报告相同问题?

    相关推荐 更多相似问题

    悬赏问题

    • ¥15 IP地址聚合什么情况才能同时聚合,什么情况又是先集合两个再加上最后一个
    • ¥15 mysql 选择求解答
    • ¥15 数据挖掘 决策树,文件报错
    • ¥15 编写生产者和消费者程序
    • ¥15 CSDN是个怎么样的平台
    • ¥15 java识别字符串内容并运算(输入为一行字符串,输出为整数)
    • ¥15 eclipse Java项目问题
    • ¥20 用记事本写一个login.jsp ,用以实现登陆界面,并通过post方式向Servlet传送页面数据
    • ¥15 关于链表的问题(为什么要在del函数结束后再创一个变量y)
    • ¥15 井字棋游戏-玩家与电脑