質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Django

DjangoはPythonで書かれた、オープンソースウェブアプリケーションのフレームワークです。複雑なデータベースを扱うウェブサイトを開発する際に必要な労力を減らす為にデザインされました。

Apache

Apacheは、Apache HTTP Serverの略で、最も人気の高いWebサーバソフトウェアの一つです。安定性が高いオープンソースソフトウェアとして商用サイトから自宅サーバまで、多くのプラットフォーム向けに開発・配布されています。サーバーソフトウェアの不具合(NCSA httpd)を修正するパッチ(a patch)を集積、一つ独立したソフトウェアとして開発されました。

Python 3.x

Python 3はPythonプログラミング言語の最新バージョンであり、2008年12月3日にリリースされました。

AWS(Amazon Web Services)

Amazon Web Services (AWS)は、仮想空間を機軸とした、クラスター状のコンピュータ・ネットワーク・データベース・ストーレッジ・サポートツールをAWSというインフラから提供する商用サービスです。

Q&A

解決済

1回答

3471閲覧

mod_wsgi のインストールについて

Hir

総合スコア15

Django

DjangoはPythonで書かれた、オープンソースウェブアプリケーションのフレームワークです。複雑なデータベースを扱うウェブサイトを開発する際に必要な労力を減らす為にデザインされました。

Apache

Apacheは、Apache HTTP Serverの略で、最も人気の高いWebサーバソフトウェアの一つです。安定性が高いオープンソースソフトウェアとして商用サイトから自宅サーバまで、多くのプラットフォーム向けに開発・配布されています。サーバーソフトウェアの不具合(NCSA httpd)を修正するパッチ(a patch)を集積、一つ独立したソフトウェアとして開発されました。

Python 3.x

Python 3はPythonプログラミング言語の最新バージョンであり、2008年12月3日にリリースされました。

AWS(Amazon Web Services)

Amazon Web Services (AWS)は、仮想空間を機軸とした、クラスター状のコンピュータ・ネットワーク・データベース・ストーレッジ・サポートツールをAWSというインフラから提供する商用サービスです。

0グッド

0クリップ

投稿2018/05/01 18:24

現在Djangoを使用したWebサーバをami-8fbab2f3上に構築しようとしています。

以下のサイトに従ってインストールしています。
https://docs.djangoproject.com/en/2.0/topics/install/#install-apache-and-mod-wsgi

Pythonは3.6.5を以下のサイトを参考にインストールしました。
https://www.saintsouth.net/blog/construct-python36-venv-on-centos-and-aws/

ビルド環境構築とソースコードダウンロードを以下のようにコマンドを変更して実行しました。PostgreSQLにしたのは、Django公式ドキュメントで推奨されていたからです。
sudo yum groupinstall 'Development tools'
sudo yum install openssl-devel postgresql

mkdir -p ~/src
curl -L https://www.python.org/ftp/python/3.6.5/Python-3.6.5.tar.xz
-o ~/src/Python-3.6.5.tar.xz

apacheのインストールは以下のコマンドを実行しました。
sudo yum install httpd
sudo yum install httpd-devel

mod_wsgiのインストールは以下のサイトの手順に従いました。
http://modwsgi.readthedocs.io/en/develop/user-guides/quick-installation-guide.html

ここでの以下のコマンドの実行結果についてこれは正常なのでしょうか?
[ec2-user@ip-xxx mod_wsgi-4.6.4]$ ./configure
checking for apxs2... no
checking for apxs... /usr/bin/apxs
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for prctl... yes
checking Apache version... 2.4.6
checking for python... /usr/bin/python
configure: creating ./config.status
config.status: creating Makefile

正とする出力結果が見つからなかったため教えていただければと思います。
以下の出力結果が気になっています。
checking for apxs2... no
checking whether we are cross compiling... no
問題なければmakeコマンドの投入をしようと思っています。
よろしくお願いします。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

ベストアンサー

回答

たぶん問題ないと思います。

ここと質問で載せてあったコンフィグの実行中メッセージの内容を比較しましたが、

checking for prctl... yes

checking for prctl... no
の1つだけ違いがありました。

念のため、コンフィグファイルの中の
コメントも読んでおくといいですね。


checking for apxs2... no

The configure script will attempt to identify the Apache installation to use by searching in various standard locations for the Apache build tools included with your distribution called “apxs2” or “apxs”.

どちらか1つがインストール済みであればAApacheのインストールが特定できる

checking for apxs2... no
(このあとにapxsを確認 存在しているのでNoで可)
checking for apxs... /usr/bin/apxs
(OK)

checking whether we are cross compiling... no

macosx.html を見ると同じく (ちなみにこれが一番説明がわかりやすいです。)

This should yield output similar to:

checking for apxs2... no
checking for apxs... /usr/sbin/apxs
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no  <<==同じ
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for prctl... no
checking Apache version... 2.4.18
checking for python... /usr/bin/python
configure: creating ./config.status
config.status: creating Makefile

となってます。

このあとはmakeしてください。


こちらの英語サイト、不親切ですね。

このあとにSystem RequirementsのBuilding The Source Codeで
makeできなかったら、Installation Issues を見ろと書いてあります。

そこで Configuration IssuesApplication Issuesを見てとあって、その先には

you see Installation Issues and Application Issues.

とあります。きわめて不親切な、ふざけたサイトなので、
1回は無限ループ感を味わうことになるでしょう。


もしmakeを失敗したら

./configure --with-apxs=/usr/local/apache/bin/apxs
--with-python=/usr/local/bin/python

を参考に --with-apxs(apxs2であれば bin/apxs)や
--with-pythonオプションをつけてください。
もちろんapxs(apxs2)もPythonも実在するパスを指定してください。

投稿2018/05/01 20:17

kawakawa2018

総合スコア1195

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問