私が間違っていることは何ですか?
ログに表示される最初のエラーは次のとおりです。gcc:エラー:認識されないコマンドラインオプション '-V'
私はグーグルからのいくつかのアドバイスに従おうとしました-しかし何も助けにはなりません....
私はすでにインストールしました:
出力:
root@NAS:/i-data/md0/admin/sshpass-1.06# ./configure
checking for a BSD-compatible install... /ffp/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /ffp/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/i-data/md0/admin/sshpass-1.06':
configure: error: C compiler cannot create executables
See 'config.log' for more details
このファイルには、configureの実行中にコンパイラーによって生成されたメッセージが含まれており、configureが誤りを犯した場合のデバッグに役立ちます。
これは、GNU Autoconf2.69によって生成されたsshpassconfigure 1.06によって作成されました。呼び出しコマンドラインは、
$ ./configure
## --------- ##
## Platform. ##
## --------- ##
hostname = NAS
uname -m = armv5tel
uname -r = 2.6.31.8
uname -s = Linux
uname -v = #2 Fri Mar 11 17:35:20 CST 2016
/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: /ffp/sbin
PATH: /usr/sbin
PATH: /sbin
PATH: /ffp/bin
PATH: /usr/bin
PATH: /bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2254: checking for a BSD-compatible install
configure:2322: result: /ffp/bin/install -c
configure:2333: checking whether build environment is sane
configure:2388: result: yes
configure:2539: checking for a thread-safe mkdir -p
configure:2578: result: /ffp/bin/mkdir -p
configure:2585: checking for gawk
configure:2601: found /ffp/bin/gawk
configure:2612: result: gawk
configure:2623: checking whether make sets $(MAKE)
configure:2645: result: yes
configure:2674: checking whether make supports nested variables
configure:2691: result: yes
configure:2832: checking for style of include used by make
configure:2860: result: GNU
configure:2931: checking for gcc
configure:2947: found /ffp/bin/gcc
configure:2958: result: gcc
configure:3187: checking for C compiler version
configure:3196: gcc --version >&5
gcc (GCC) 4.8.4
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:3207: $? = 0
configure:3196: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/zy-pkgs/ffproot/ffp/bin/../libexec/gcc/arm-ffp-linux-uclibcgnueabi/4.8.4/lto-wrapper
Target: arm-ffp-linux-uclibcgnueabi
Configured with: ../gcc-4.8.4/configure --prefix=/ffp --with-local-prefix=/ffp --build=arm-ffp-linux-uclibcgnueabi --Host=arm-ffp-linux-uclibcgnueabi --disable-nls --enable-shared --enable-languages=c,c++ --enable-__cxa_atexit --enable-c99 --enable-long-long --enable-threads=posix --disable-multilib --with-system-zlib --enable-checking=release --with-float=soft --with-native-system-header-dir=/ffp/include
Thread model: posix
gcc version 4.8.4 (GCC)
configure:3207: $? = 0
configure:3196: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:3207: $? = 1
configure:3196: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'
gcc: fatal error: no input files
compilation terminated.
configure:3207: $? = 1
configure:3227: checking whether the C compiler works
configure:3249: gcc conftest.c >&5
/ffp/bin/ld: cannot find crt1.o: No such file or directory
/ffp/bin/ld: cannot find crti.o: No such file or directory
collect2: error: ld returned 1 exit status
configure:3253: $? = 1
configure:3291: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "sshpass"
| #define PACKAGE_TARNAME "sshpass"
| #define PACKAGE_VERSION "1.06"
| #define PACKAGE_STRING "sshpass 1.06"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "sshpass"
| #define VERSION "1.06"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3296: error: in `/i-data/md0/admin/sshpass-1.06':
configure:3298: error: C compiler cannot create executables
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_CPP_set=
ac_cv_env_CPP_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=
ac_cv_path_install='/ffp/bin/install -c'
ac_cv_path_mkdir=/ffp/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_make_make_set=yes
am_cv_make_support_nested_variables=yes
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACLOCAL='${Shell} /i-data/md0/admin/sshpass-1.06/missing aclocal-1.15'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AM_BACKSLASH='\'
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='1'
AM_V='$(V)'
AUTOCONF='${Shell} /i-data/md0/admin/sshpass-1.06/missing autoconf'
AUTOHEADER='${Shell} /i-data/md0/admin/sshpass-1.06/missing autoheader'
AUTOMAKE='${Shell} /i-data/md0/admin/sshpass-1.06/missing automake-1.15'
AWK='gawk'
CC='gcc'
CCDEPMODE=''
CFLAGS=''
CPP=''
CPPFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
GREP=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
MAKEINFO='${Shell} /i-data/md0/admin/sshpass-1.06/missing makeinfo'
MKDIR_P='/ffp/bin/mkdir -p'
OBJEXT=''
PACKAGE='sshpass'
PACKAGE_BUGREPORT=''
PACKAGE_NAME='sshpass'
PACKAGE_STRING='sshpass 1.06'
PACKAGE_TARNAME='sshpass'
PACKAGE_URL=''
PACKAGE_VERSION='1.06'
PATH_SEPARATOR=':'
SET_MAKE=''
Shell='/ffp/bin/sh'
STRIP=''
VERSION='1.06'
ac_ct_CC='gcc'
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__nodep='_no'
am__quote=''
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
Host_alias=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${Shell} /i-data/md0/admin/sshpass-1.06/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
runstatedir='${localstatedir}/run'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME "sshpass"
#define PACKAGE_TARNAME "sshpass"
#define PACKAGE_VERSION "1.06"
#define PACKAGE_STRING "sshpass 1.06"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
#define PACKAGE "sshpass"
#define VERSION "1.06"
configure: exit 77
私も同様の問題を抱えていました。
ターミナルに次のコマンドを入力して解決しました。
Sudo apt-get install --reinstall build-essential
Sudo apt-get install --reinstall gcc
Sudo dpkg-reconfigure build-essential
Sudo dpkg-gccを再構成します
問題がなかった後。
問題の核心は、C++コンパイラがインストールされていないことです。
Debian/Ubuntuシステムでは、インストールするのと同じくらい簡単です。
Sudo apt install gobjc++