* Checking for C compiler... Found: yes Location: /usr/bin/cc * Checking for C++ compiler... Found: no * Checking for A download tool like 'wget' or 'curl'... Found: yes Location: /usr/bin/wget * Checking for Curl development headers with SSL support... Found: no Error: Cannot find the `curl-config` command. * Checking for OpenSSL development headers... Found: yes Location: /usr/include/openssl/ssl.h * Checking for Zlib development headers... Found: yes Location: /usr/include/zlib.h * Checking for Rake (associated with /usr/local/ruby-2.4.3/bin/ruby)... Found: yes Location: /usr/local/ruby-2.4.3/bin/ruby /usr/local/ruby-2.4.3/bin/rake * Checking for OpenSSL support for Ruby... Found: yes * Checking for RubyGems... Found: yes * Checking for Ruby development headers... Found: yes Location: /usr/local/ruby-2.4.3/include/ruby-2.4.0/ruby.h * Checking for rack... Found: no
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.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Installation instructions for required software
* To install C++ compiler: Please install it with yum install gcc-c++
* To install Curl development headers with SSL support: Please install it with yum install libcurl-devel
* To install rack: Please make sure RubyGems is installed, then run /usr/local/ruby-2.4.3/bin/ruby /usr/local/ruby-2.4.3/bin/gem install rack
If the aforementioned instructions didn't solve your problem, then please take a look at our documentation for troubleshooting tips: https://www.phusionpassenger.com/library/install/nginx/ https://www.phusionpassenger.com/library/admin/nginx/troubleshooting/
Nginx doesn't support loadable modules such as some other web servers do, so in order to install Nginx with Passenger support, it must be recompiled. Do you want this installer to download, compile and install Nginx for you? 1. Yes: download, compile and install Nginx for me. (recommended) The easiest way to get started. A stock Nginx 1.12.2 with Passenger support, but with no other additional third party modules, will be installed for you to a directory of your choice. 2. No: I want to customize my Nginx installation. (for advanced users) Choose this if you want to compile Nginx with more third party modules besides Passenger, or if you need to pass additional options to Nginx's 'configure' script. This installer will 1) ask you for the location of the Nginx source code, 2) run the 'configure' script according to your instructions, and 3) run 'make install'.
Whichever you choose, if you already have an existing Nginx configuration file, then it will be preserved.
Enter your choice (1 or 2) or press Ctrl-C to abort: 1
輸入 1 之後按下 Enter 就會開始把 Nginx 下載並且安裝摟！如果被詢問安裝目錄，基本上保持預設值就好，只是會跟透過 yum 安裝的位置不太一樣，所以要稍微記一下。