Passenger Apache Module安装

编程入门 行业动态 更新时间:2024-10-28 06:21:19
Passenger Apache Module安装 - 安装程序未找到已安装的库(Passenger Apache Module install - installer not finding installed libraries)

我正在尝试在VPS服务器中托管Rails应用程序。 服务器已经安装了Apache,所以我首先尝试安装乘客,然后安装乘客-apache-module。

我已经安装了RVM作为用户,并安装了ruby 1.9.3并将其设置为默认的ruby。 然后,我安装了乘客gem,版本3.0.17,因为我们正在迁移rails应用程序,旧服务器中的乘客版本是3.0.17。 我能够使用命令gem install passenger -v 3.0.17 。

安装乘客后,我继续尝试使用passenger-install-apache2-module命令安装passenger-apache-module 。 我得到这个输出:

Checking for required software... * GNU C++ compiler... not found * Curl development headers with SSL support... not found * OpenSSL development headers... not found * Zlib development headers... not found * Ruby development headers... found * OpenSSL support for Ruby... found * RubyGems... found * Rake... found at /home/federaltitle/.rvm/wrappers/ruby-1.9.3-p448/rake * rack... found * Apache 2... found at /usr/local/apache/bin/httpd * Apache 2 development headers... found at /usr/bin/apxs * Apache Portable Runtime (APR) development headers... found at /usr/local/apache/bin/apr-1-config * Apache Portable Runtime Utility (APU) development headers... found at /usr/local/apache/bin/apu-1-config Some required software is not installed. But don't worry, this installer will tell you how to install them. Press Enter to continue, or Ctrl-C to abort.

当我按Enter键时,我收到此输出:

Installation instructions for required software * To install GNU C++ compiler: Please run yum install gcc-c++ as root. * To install Curl development headers with SSL support: Please run yum install curl-devel as root. * To install OpenSSL development headers: Please run yum install openssl-devel as root. * To install Zlib development headers: Please run yum install zlib-devel as root. If the aforementioned instructions didn't solve your problem, then please take a look at the Users Guide: /home/federaltitle/.rvm/gems/ruby-1.9.3-p448/gems/passenger-3.0.17/doc/Users guide Apache.html

但是,当我尝试以root用户身份yum install gcc-c++消息中提到的库( yum install gcc-c++ , yum install curl-devel , yum install openssl-devel , yum install zlib-devel )时,它说所有的库已经是已安装并且是最新的。

服务器细节

OS - CENTOS 6.4 x86_64

I am trying to host a Rails app, in a VPS server. The server already, has Apache, installed, so I am trying to install passenger first, then passenger-apache-module.

I have installed RVM as the user, and ruby 1.9.3 and set it as the default ruby. Then, I installed passenger gem, version 3.0.17, as we are migrating the rails app, and the passenger version in the old server is 3.0.17. I was able to install passenger gem with the command gem install passenger -v 3.0.17.

After installing passenger, I went ahead and tried to install passenger-apache-module using the passenger-install-apache2-module command. I am getting this output:

Checking for required software... * GNU C++ compiler... not found * Curl development headers with SSL support... not found * OpenSSL development headers... not found * Zlib development headers... not found * Ruby development headers... found * OpenSSL support for Ruby... found * RubyGems... found * Rake... found at /home/federaltitle/.rvm/wrappers/ruby-1.9.3-p448/rake * rack... found * Apache 2... found at /usr/local/apache/bin/httpd * Apache 2 development headers... found at /usr/bin/apxs * Apache Portable Runtime (APR) development headers... found at /usr/local/apache/bin/apr-1-config * Apache Portable Runtime Utility (APU) development headers... found at /usr/local/apache/bin/apu-1-config Some required software is not installed. But don't worry, this installer will tell you how to install them. Press Enter to continue, or Ctrl-C to abort.

When I hit Enter, I am getting this output:

Installation instructions for required software * To install GNU C++ compiler: Please run yum install gcc-c++ as root. * To install Curl development headers with SSL support: Please run yum install curl-devel as root. * To install OpenSSL development headers: Please run yum install openssl-devel as root. * To install Zlib development headers: Please run yum install zlib-devel as root. If the aforementioned instructions didn't solve your problem, then please take a look at the Users Guide: /home/federaltitle/.rvm/gems/ruby-1.9.3-p448/gems/passenger-3.0.17/doc/Users guide Apache.html

But, when I try to install the libraries mentioned in the message (yum install gcc-c++, yum install curl-devel, yum install openssl-devel, yum install zlib-devel) as root user, it is saying all the libraries are already installed and up-to-date.

Server Details

OS - CENTOS 6.4 x86_64

最满意答案

我能够以root身份安装rvm,ruby和passenger,问题得到解决。 当用户完成时,与权限有关。 但是我必须为ruby部分上的用户相关活动做一些变通办法,比如bundle install , rake assets:precompile (必须以root身份执行此操作,因此为本地用户提供sudo权限来执行这些操作)。

I was able to install the rvm, ruby and passenger as root, and the issue was fixed. Something to do with permission, when done as user. But I had to do some workarounds for the user related activities on the ruby part like bundle install, rake assets:precompile (had to do this as root, so gave sudo permission for the local user to perform these).

更多推荐

本文发布于:2023-04-29 10:57:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1336248.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Passenger   Apache   Module

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!