Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.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 on rails 致命错误:stdio.h:Heroku中没有此类文件或目录_Ruby On Rails_Heroku - Fatal编程技术网

Ruby on rails 致命错误:stdio.h:Heroku中没有此类文件或目录

Ruby on rails 致命错误:stdio.h:Heroku中没有此类文件或目录,ruby-on-rails,heroku,Ruby On Rails,Heroku,我正在将一个在Heroku上运行的旧rails应用程序移植到一个新的Heroku实例。它似乎是正确建造的。当我尝试在bash中运行rails控制台时,我得到: In file included from /app/vendor/ruby-2.4.5/include/ruby-2.4.0/ruby/ruby.h:36:0, from /app/vendor/ruby-2.4.5/include/ruby-2.4.0/ruby.h:33,

我正在将一个在Heroku上运行的旧rails应用程序移植到一个新的Heroku实例。它似乎是正确建造的。当我尝试在bash中运行
rails控制台时,我得到:

In file included from /app/vendor/ruby-2.4.5/include/ruby-2.4.0/ruby/ruby.h:36:0,
                 from /app/vendor/ruby-2.4.5/include/ruby-2.4.0/ruby.h:33,
                 from /app/.ruby_inline/ruby-2.4.0/Inline_Dalli__Ring_ca4ff83feb7b263c9bd4987d8e541e30.c:1:
/app/vendor/ruby-2.4.5/include/ruby-2.4.0/ruby/defines.h:101:10: fatal error: stdio.h: No such file or directory
 #include <stdio.h>
          ^~~~~~~~~
compilation terminated.
在/app/vendor/ruby-2.4.5/include/ruby-2.4.0/ruby/ruby.h:36:0中包含的文件中,
从/app/vendor/ruby-2.4.5/include/ruby-2.4.0/ruby.h:33,
来自/app/.ruby_inline/ruby-2.4.0/inline_Dalli_uring_ca4ff83feb7b263c9bd4987d8e541e30.c:1:
/app/vendor/ruby-2.4.5/include/ruby-2.4.0/ruby/defines.h:101:10:致命错误:stdio.h:没有这样的文件或目录
#包括
^~~~~~~~~
编译终止。
当我尝试运行许多命令(包括bundle和rake)时,我得到了这个结果

我在服务器上使用ruby 2.4.5和rails 5.1.1 heroku-18堆栈

是否有任何构建包可用于修复此问题

我试着用libc6开发工具来构建一个buildpack,但这似乎是一条死胡同

任何建议都将不胜感激