Обсуждение: WTF

Поиск
Список
Период
Сортировка

WTF

От
admin@noksfishes.com.ua
Дата:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by PostgreSQL configure 9.2.6, which was
generated by GNU Autoconf 2.63.  Invocation command line was

  S ./configure

## --------- ##
## Platform. ##
## --------- ##

hostname =3D officepdb
uname -m =3D x86_64
uname -r =3D 3.2.0-4-amd64
uname -s =3D Linux
uname -v =3D #1 SMP Debian 3.2.51-1

/usr/bin/uname -p =3D unknown
/bin/uname -X     =3D unknown

/bin/arch              =3D unknown
/usr/bin/arch -k       =3D unknown
/usr/convex/getsysinfo =3D unknown
/usr/bin/hostinfo      =3D unknown
/bin/machine           =3D unknown
/usr/bin/oslevel       =3D unknown
/bin/universe          =3D unknown

PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2066: checking build system type
configure:2084: result: x86_64-unknown-linux-gnu
configure:2106: checking host system type
configure:2121: result: x86_64-unknown-linux-gnu
configure:2145: checking which template to use
configure:2235: result: linux
configure:2342: checking whether to build with 64-bit integer date/time
support
configure:2377: result: yes
configure:2384: checking whether NLS is wanted
configure:2418: result: no
configure:2426: checking for default port number
configure:2455: result: 5432
configure:2868: checking for block size
configure:2908: result: 8kB
configure:2920: checking for segment size
configure:2953: result: 1GB
configure:2965: checking for WAL block size
configure:3006: result: 8kB
configure:3018: checking for WAL segment size
configure:3059: result: 16MB
configure:3161: checking for gcc
configure:3191: result: no
configure:3161: checking for cc
configure:3191: result: no
configure:3213: error: in `/home/rootparser/install/postgresql-9.2.6':
configure:3216: error: no acceptable C compiler found in SPATH
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=3Dx86_64-unknown-linux-gnu
ac_cv_env_CC_set=3D
ac_cv_env_CC_value=3D
ac_cv_env_CFLAGS_set=3D
ac_cv_env_CFLAGS_value=3D
ac_cv_env_CPPFLAGS_set=3D
ac_cv_env_CPPFLAGS_value=3D
ac_cv_env_CPP_set=3D
ac_cv_env_CPP_value=3D
ac_cv_env_DOCBOOKSTYLE_set=3D
ac_cv_env_DOCBOOKSTYLE_value=3D
ac_cv_env_LDFLAGS_EX_set=3D
ac_cv_env_LDFLAGS_EX_value=3D
ac_cv_env_LDFLAGS_SL_set=3D
ac_cv_env_LDFLAGS_SL_value=3D
ac_cv_env_LDFLAGS_set=3D
ac_cv_env_LDFLAGS_value=3D
ac_cv_env_LIBS_set=3D
ac_cv_env_LIBS_value=3D
ac_cv_env_build_alias_set=3D
ac_cv_env_build_alias_value=3D
ac_cv_env_host_alias_set=3D
ac_cv_env_target_alias_set=3D
ac_cv_env_target_alias_value=3D
ac_cv_host=3Dx86_64-unknown-linux-gnu

## ----------------- ##
## Output variables. ##
## ----------------- ##

AR=3D''
AWK=3D''
BISON=3D''
BISONFLAGS=3D''
CC=3D''
CFLAGS=3D''
COLLATEINDEX=3D''
CPP=3D''
CPPFLAGS=3D''
DEFS=3D''
DLLTOOL=3D''
DLLWRAP=3D''
DOCBOOKSTYLE=3D''
DTRACE=3D''
DTRACEFLAGS=3D''
ECHO_C=3D''
ECHO_N=3D'-n'
ECHO_T=3D''
EGREP=3D''
ELF_SYS=3D''
EXEEXT=3D''
FLEX=3D''
FLEXFLAGS=3D''
GCC=3D''
GCOV=3D''
GENHTML=3D''
GREP=3D''
HAVE_IPV6=3D''
HAVE_POSIX_SIGNALS=3D''
INCLUDES=3D''
JADE=3D''
LCOV=3D''
LD=3D''
LDAP_LIBS_BE=3D''
LDAP_LIBS_FE=3D''
LDFLAGS=3D''
LDFLAGS_EX=3D''
LDFLAGS_SL=3D''
LIBOBJS=3D''
LIBS=3D''
LN_S=3D''
LTLIBOBJS=3D''
MKDIR_P=3D''
MSGFMT=3D''
MSGMERGE=3D''
NSGMLS=3D''
OBJEXT=3D''
OSSP_UUID_LIBS=3D''
OSX=3D''
PACKAGE_BUGREPORT=3D'pgsql-bugs@postgresql.org'
PACKAGE_NAME=3D'PostgreSQL'
PACKAGE_STRING=3D'PostgreSQL 9.2.6'
PACKAGE_TARNAME=3D'postgresql'
PACKAGE_VERSION=3D'9.2.6'
PATH_SEPARATOR=3D':'
PERL=3D''
PG_MAJORVERSION=3D'9.2'
PORTNAME=3D'linux'
PTHREAD_CC=3D''
PTHREAD_CFLAGS=3D''
PTHREAD_LIBS=3D''
PYTHON=3D''
RANLIB=3D''
TRIP=3D''
STRIP_SHARED_LIB=3D''
STRIP_STATIC_LIB=3D''
SUN_STUDIO_CC=3D''
TAR=3D''
TAS=3D''
TCLSH=3D''
TCL_CONFIG_SH=3D''
TCL_INCLUDE_SPEC=3D''
TCL_LIBS=3D''
TCL_LIB_FILE=3D''
TCL_LIB_SPEC=3D''
TCL_SHARED_BUILD=3D''
TCL_SHLIB_LD_LIBS=3D''
WANTED_LANGUAGES=3D''
WINDRES=3D''
XGETTEXT=3D''
XML2_CONFIG=3D''
XSLTPROC=3D''
ZIC=3D''
ac_ct_CC=3D''
acx_pthread_config=3D''
autodepend=3D''
build=3D'x86_64-unknown-linux-gnu'
build_alias=3D''
build_cpu=3D'x86_64'
build_os=3D'linux-gnu'
build_vendor=3D'unknown'
configure_args=3D''
datadir=3D'S{datarootdir}'
datarootdir=3D'S{prefix}/share'
default_port=3D'5432'
docdir=3D'S{datarootdir}/doc/S{PACKAGE_TARNAME}'
dvidir=3D'S{docdir}'
enable_coverage=3D'no'
enable_debug=3D'no'
enable_dtrace=3D'no'
enable_nls=3D'no'
enable_rpath=3D'yes'
enable_shared=3D'yes'
enable_thread_safety=3D''
exec_prefix=3D'NONE'
have_docbook=3D''
have_win32_dbghelp=3D''
host=3D'x86_64-unknown-linux-gnu'
host_alias=3D''
host_cpu=3D'x86_64'
host_os=3D'linux-gnu'
host_vendor=3D'unknown'
htmldir=3D'S{docdir}'
includedir=3D'S{prefix}/include'
infodir=3D'S{datarootdir}/info'
krb_srvtab=3D''
ld_R_works=3D''
libdir=3D'S{exec_prefix}/lib'
libexecdir=3D'S{exec_prefix}/libexec'
localedir=3D'S{datarootdir}/locale'
localstatedir=3D'S{prefix}/var'
mandir=3D'S{datarootdir}/man'
oldincludedir=3D'/usr/include'
pdfdir=3D'S{docdir}'
perl_archlibexp=3D''
perl_embed_ldflags=3D''
perl_privlibexp=3D''
perl_useshrplib=3D''
prefix=3D'NONE'
program_transform_name=3D's,x,x,'
psdir=3D'S{docdir}'
python_additional_libs=3D''
python_configdir=3D''
ython_includespec=3D''
python_libdir=3D''
python_libspec=3D''
python_majorversion=3D''
python_version=3D''
sbindir=3D'S{exec_prefix}/sbin'
sharedstatedir=3D'S{prefix}/com'
sysconfdir=3D'S{prefix}/etc'
target_alias=3D''
vpath_build=3D''
with_gnu_ld=3D''
with_libxml=3D''
with_libxslt=3D''
with_openssl=3D''
with_ossp_uuid=3D''
with_perl=3D''
with_python=3D''
with_selinux=3D''
with_system_tzdata=3D''
with_tcl=3D''
with_zlib=3D''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_NAME "PostgreSQL"
#define PACKAGE_TARNAME "postgresql"
#define PACKAGE_VERSION "9.2.6"
#define PACKAGE_STRING "PostgreSQL 9.2.6"
#define PACKAGE_BUGREPORT "pgsql-bugs@postgresql.org"
#define PG_VERSION "9.2.6"
#define PG_MAJORVERSION "9.2"
#define USE_INTEGER_DATETIMES 1
#define DEF_PGPORT 5432
#define DEF_PGPORT_STR "5432"
#define BLCKSZ 8192
#define RELSEG_SIZE 131072
#define XLOG_BLCKSZ 8192
#define XLOG_SEG_SIZE (16 * 1024 * 1024)

configure: exit 1

Re: WTF

От
Tom Lane
Дата:
admin@noksfishes.com.ua writes:
> configure:3161: checking for gcc
> configure:3191: result: no
> configure:3161: checking for cc
> configure:3191: result: no
> configure:3213: error: in `/home/rootparser/install/postgresql-9.2.6':
> configure:3216: error: no acceptable C compiler found in SPATH

It appears you don't have a C compiler installed.  It's possible
that you do, but it's too confused to operate because of whatever
is causing "arch" to spit up:

> /bin/arch              = unknown

/bin/arch should work on pretty much any Linux distro I know of.
Weird environment settings perhaps?

            regards, tom lane

Re: WTF

От
Alvaro Herrera
Дата:
Tom Lane wrote:
> admin@noksfishes.com.ua writes:
> > configure:3161: checking for gcc
> > configure:3191: result: no
> > configure:3161: checking for cc
> > configure:3191: result: no
> > configure:3213: error: in `/home/rootparser/install/postgresql-9.2.6':
> > configure:3216: error: no acceptable C compiler found in SPATH
>
> It appears you don't have a C compiler installed.  It's possible
> that you do, but it's too confused to operate because of whatever
> is causing "arch" to spit up:
>
> > /bin/arch              = unknown
>
> /bin/arch should work on pretty much any Linux distro I know of.
> Weird environment settings perhaps?

Uhm.  In my machine, a similar Debian version, I don't have /bin/arch.
I have /usr/bin/arch, but it also spits when passed -k which is what his
log showed.  This is an extract of a working build's config.log:

/bin/arch              = unknown
/usr/bin/arch -k       = unknown


And when run directly in bash,

$ /bin/arch
-bash: /bin/arch: No such file or directory
$ which arch
/usr/bin/arch
$ /usr/bin/arch
x86_64
$ /usr/bin/arch -k
/usr/bin/arch: invalid option -- 'k'
Try `/usr/bin/arch --help' for more information.

So "arch" is not the issue.

$ uname -a
Linux eldon 3.12.8 #4 SMP Thu Jan 16 10:48:05 CLST 2014 x86_64 GNU/Linux

$ cat /etc/debian_version
7.3

--
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

Re: WTF

От
Tom Lane
Дата:
Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> Tom Lane wrote:
>> /bin/arch should work on pretty much any Linux distro I know of.
>> Weird environment settings perhaps?

> Uhm.  In my machine, a similar Debian version, I don't have /bin/arch.
> I have /usr/bin/arch, but it also spits when passed -k which is what his
> log showed.

Huh, OK, I was just surprised by all the "unknown"s --- but on closer
look, a lot of those are clearly only expected to succeed on specific
platforms.

So I think it comes down to "you didn't install a C compiler".  Most
likely there's no development environment at all, and what configure
will complain about next is lack of header files and libraries.

            regards, tom lane

Re: WTF

От
Greg Stark
Дата:
On Mon, Feb 3, 2014 at 9:32 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> So I think it comes down to "you didn't install a C compiler".  Most
> likely there's no development environment at all, and what configure
> will complain about next is lack of header files and libraries.

Fwiw the Debian way to install a development environment is:

apt-get install build-essential
apt-get build-dep postgresql-9.2

(replace 9.2 with whatever version of postgres your version of Debian does have)


--
greg