![](/img/trans.png)
[英]How to deploy a webservice on Rails 2.3.5/Ruby 1.8.7 to support concurrent requests
[英]How to I install Puma on Ubuntu 16.04 with rails 2.3.5 and Ruby 1.8.7?
我正在尝试在Ubuntu 16.04上部署Fedena 2.3(projectfedena.org),并在Rails 2.3.5上使用Ruby 1.8.7构建它。 我已经能够安装它并与脚本/服务器一起运行,但是现在我正尝试使用Puma + Nginx部署它,并且一旦我运行gem install puma 3.6.2(高于它的任何版本都需要Ruby> 1.8)。 7),它给了我这个错误。 有谁知道我该如何解决?
user@server:~/development$ gem install puma -v 3.6.2
Building native extensions. This could take a while...
ERROR: Error installing puma:
ERROR: Failed to build gem native extension.
/home/user/.rvm/rubies/ruby-1.8.7-head/bin/ruby extconf.rb
checking for BIO_read() in -lcrypto... yes
checking for SSL_CTX_new() in -lssl... yes
checking for openssl/bio.h... yes
creating Makefile
make
gcc -I. -I. -I/home/user/.rvm/rubies/ruby-1.8.7-head/lib/ruby/1.8/x86_64-linux -I. -DHAVE_OPENSSL_BIO_H -fPIC -O2 -fno-tree-dce -fno-optimize-sibling-calls -fPIC -c http11_parser.c
gcc -I. -I. -I/home/user/.rvm/rubies/ruby-1.8.7-head/lib/ruby/1.8/x86_64-linux -I. -DHAVE_OPENSSL_BIO_H -fPIC -O2 -fno-tree-dce -fno-optimize-sibling-calls -fPIC -c puma_http11.c
gcc -I. -I. -I/home/user/.rvm/rubies/ruby-1.8.7-head/lib/ruby/1.8/x86_64-linux -I. -DHAVE_OPENSSL_BIO_H -fPIC -O2 -fno-tree-dce -fno-optimize-sibling-calls -fPIC -c mini_ssl.c
mini_ssl.c:4:26: fatal error: ruby/version.h: No such file or directory
#include <ruby/version.h>
^
compilation terminated.
make: *** [mini_ssl.o] Error 1
Gem files will remain installed in /home/user/.rvm/gems/ruby-1.8.7-head/gems/puma-3.6.2 for inspection.
Results logged to /home/user/.rvm/gems/ruby-1.8.7-head/gems/puma-3.6.2/ext/puma_http11/gem_make.out
正式支持Ruby 1.8.7的最新puma版本为2.16.0
https://github.com/puma/puma/blob/master/History.md#2160--2016-01-27
https://github.com/puma/puma/blob/master/History.md#300--2016-02-25国家
不再支持Ruby 2.0版
运行
gem install puma -v 3.4.0
适用于我的红宝石1.8.7。 尝试安装此彪马版本
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.