Ich versuche ./configure
mod_wsgi aus dem Quellcode per these instructions. Insgesamt versuche ich Django mit Python3 und Apache auf einer Google Cloud Compute Engine zu arbeiten. Es verwendet Debian 9. Ich installierte Python 3.6 von Anaconda in /home/dhampton/anaconda3
.Fehler beim Konfigurieren von mod_wsgi aus dem Quellcode
Ich laufe in den folgenden Fehler:
[email protected]:~/mod_wsgi-4.5.20$ ./configure
checking for apxs2... no
checking for apxs... no
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/home/dhampton/mod_wsgi-4.5.20':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
[email protected]:~/mod_wsgi-4.5.20$
Hier finden Sie, was in der config.log
Datei:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure
## --------- ##
## Platform. ##
## --------- ##
hostname = blog-instance-1
uname -m = x86_64
uname -r = 4.9.0-4-amd64
uname -s = Linux
uname -v = #1 SMP Debian 4.9.51-1 (2017-09-28)
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /home/dhampton/anaconda3/bin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/local/games
PATH: /usr/games
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1889: checking for apxs2
configure:1923: result: no
configure:1889: checking for apxs
configure:1923: result: no
configure:2009: checking for gcc
configure:2039: result: no
configure:2102: checking for cc
configure:2149: result: no
configure:2205: checking for cl.exe
configure:2235: result: no
configure:2259: error: in `/home/dhampton/mod_wsgi-4.5.20':
configure:2261: error: no acceptable C compiler found in $PATH
See `config.log' for more details
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
## ----------------- ##
## Output variables. ##
## ----------------- ##
APXS='apxs'
CC=''
CFLAGS=''
CPPFLAGS=''
DEFS=''
DESTDIR=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EXEEXT=''
LDFLAGS=''
LDLIBS=''
LIBEXECDIR=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
OBJEXT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_URL=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PYTHON=''
SHELL='/bin/bash'
ac_ct_CC=''
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='NONE'
host_alias=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
configure: exit 1
Jede Hilfe sehr geschätzt wird. Vielen Dank.
scheint, als ob Sie nicht einen C-Compiler installiert haben, versuchen Sie, https://gcc.gnu.org/ – doze
@doze zu installieren. Das führte zu der Antwort. Ich habe nicht das '--installed flag 'auf apt verwendet, als ich versuchte zu überprüfen, ob Apache2 installiert war. Installieren von Apache installiert gcc und jetzt passiert es diesen Schritt. Vielen Dank. Wie kann ich Ihnen eine Antwort geben? –
froh, dass war hilfreich, ich werde es als Antwort posten – doze