cygwin, problem z niektórymi poleceniami

0

Zainstalowałem cygwina na windowsie xp. Nie działają mi w ogóle komendy typu ./configure call chadir. Po wprowadzeniu do cygwina komendy dostaję zwrot command not found jestem troche zielony jeśli chodzi o informatykę może mi ktoś pomóc. Wytłumaczyć czemu się tak dzieje i co powinienem zrobić aby komendy te działały. Z góry dziekuję za pomoc

0

pokaż zrzut ekranu jak to robisz i tego błędu. prawdopodobnie „coś robisz nie tak”.

0

http://geant4.slac.stanford.edu/tutorial/installation/Geant4.9.3.p01/Windows/Geant4_9_3_p01_Windows_Installation.htm

jakbys mógł zerknąć na to co jest pod nagłówkiem "Making Cygwin aware of Microsoft Visual C++" wpisuje te komendy i mam w oknie cygwina command not found. Wiem ze zamiast dysk C daje się /cygdrive/c a oprócz tego nie wiem co mam wprowadzić inaczej niż w tej instrukcji.

0

A zainstalowałeś w cygwinie configure make itp?

0

Ten punkt jest tylko dla użytkowników Visual Studio.
Masz Visual Studio? Bo jak nie, to omiń ten akapit.

0

Mam Visual Studio takie jak w nagłówku.Mam też GNU make 3.81 problemem są wpisywane komendy bo chyba mam wszystko poinstalowane. Z biblioteką Clhep tez mam problem, a także jest ściągnięta.

0

Ten problem udało mi sie rozwiązać teraz mam inny. chcę umieści w Cygwnie bibliotekę CLHEP(mało ważne co to za biblioteka), po jej ściągnięciu i rozpakowaniu zgodnie z instrukcją w oknie cygwina wpisuje komendę "./configure --prefix /cygdrive/c/CLHEP/" niestety zamiast porządanej odpowiedzi otrzymuje tekst "Checking for c++ compiler default output file name.. Configure error c++ compiler cannot create executables. See config.lof for more details.
oto ten log:

contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by CLHEP Configure 2.0.4.5, which was
generated by GNU Autoconf 2.59. Invocation command line was

$ ./Configure --prefix /cygdrive/c/CLHEP/

  1. --------- ##
  2. Platform. ##
  3. --------- ##

hostname = purcha-ce538b66
uname -m = i686
uname -r = 1.7.7(0.230/5/3)
uname -s = CYGWIN_NT-5.1
uname -v = 2010-08-31 09:58

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

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

PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /cygdrive/c/Program Files/Microsoft Visual Studio 9.0/Common7/IDE
PATH: /cygdrive/c/Program Files/Microsoft Visual Studio 9.0/VC/BIN
PATH: /cygdrive/c/Program Files/Microsoft Visual Studio 9.0/Common7/Tools
PATH: /cygdrive/c/WINDOWS/Microsoft.NET/Framework/v3.5
PATH: /cygdrive/c/WINDOWS/Microsoft.NET/Framework/v2.0.50727
PATH: /cygdrive/c/Program Files/Microsoft Visual Studio 9.0/VC/VCPackages
PATH: /cygdrive/c/Program Files/Microsoft Visual Studio 9.0/VC/PlatformSDK/bin
PATH: /usr/bin
PATH: /usr/bin
PATH: /usr/lib/lapack

  1. ----------- ##
  2. Core tests. ##
  3. ----------- ##

Configure:1318: checking build system type
Configure:1336: result: i686-pc-cygwin
Configure:1344: checking host system type
Configure:1358: result: i686-pc-cygwin
Configure:1366: checking target system type
Configure:1380: result: i686-pc-cygwin
Configure:1409: checking for a BSD-compatible install
Configure:1464: result: /usr/bin/install -c
Configure:1475: checking whether build environment is sane
Configure:1518: result: yes
Configure:1583: checking for gawk
Configure:1599: found /usr/bin/gawk
Configure:1609: result: gawk
Configure:1619: checking whether make sets $(MAKE)
Configure:1639: result: yes
Configure:1820: checking for a BSD-compatible install
Configure:1875: result: /usr/bin/install -c
Configure:1886: checking whether ln -s works
Configure:1890: result: yes
Configure:1938: checking for ranlib
Configure:1954: found /usr/bin/ranlib
Configure:1965: result: ranlib
Configure:2142: checking for cl
Configure:2158: found /cygdrive/c/Program Files/Microsoft Visual Studio 9.0/VC/BIN/cl
Configure:2168: result: cl
Configure:2184: checking for C++ compiler version
Configure:2187: cl --version </dev/null >&5
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.30729.01 for 80x86
Copyright (C) Microsoft Corporation. All rights reserved.

cl : Command line warning D9002 : ignoring unknown option '--version'
cl : Command line error D8003 : missing source filename
Configure:2190: $? = 2
Configure:2192: cl -v </dev/null >&5
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.30729.01 for 80x86
Copyright (C) Microsoft Corporation. All rights reserved.

cl : Command line warning D9002 : ignoring unknown option '-v'
cl : Command line error D8003 : missing source filename
Configure:2195: $? = 2
Configure:2197: cl -V </dev/null >&5
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.30729.01 for 80x86
Copyright (C) Microsoft Corporation. All rights reserved.

cl : Command line error D8004 : '/V' requires an argument
Configure:2200: $? = 2
Configure:2223: checking for C++ compiler default output file name
Configure:2226: cl conftest.cc >&5
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.30729.01 for 80x86
Copyright (C) Microsoft Corporation. All rights reserved.

conftest.cc
Microsoft (R) Incremental Linker Version 9.00.30729.01
Copyright (C) Microsoft Corporation. All rights reserved.

/out:conftest.exe
conftest.obj
LINK : fatal error LNK1104: cannot open file 'kernel32.lib'
Configure:2229: $? = 2
Configure: failed program was:
| /* confdefs.h. /
|
| #define PACKAGE_NAME "CLHEP"
| #define PACKAGE_TARNAME "clhep"
| #define PACKAGE_VERSION "2.0.4.5"
| #define PACKAGE_STRING "CLHEP 2.0.4.5"
| #define PACKAGE_BUGREPORT "http://savannah.cern.ch/projects/clhep/ "
| #define PACKAGE "clhep"
| #define VERSION "2.0.4.5"
| /
end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
Configure:2268: error: C++ compiler cannot create executables
See `config.log' for more details.

  1. ---------------- ##
  2. Cache variables. ##
  3. ---------------- ##

ac_cv_build=i686-pc-cygwin
ac_cv_build_alias=i686-pc-cygwin
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_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_host=i686-pc-cygwin
ac_cv_host_alias=i686-pc-cygwin
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CXX=cl
ac_cv_prog_ac_ct_RANLIB=ranlib
ac_cv_prog_make_make_set=yes
ac_cv_target=i686-pc-cygwin
ac_cv_target_alias=i686-pc-cygwin

  1. ----------------- ##
  2. Output variables. ##
  3. ----------------- ##

ACLOCAL='${SHELL} /cygdrive/c/CLHEP/2.0.4.5/CLHEP/missing --run aclocal-1.9'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /cygdrive/c/CLHEP/2.0.4.5/CLHEP/missing --run tar'
AM_CXXFLAGS=''
AM_LDFLAGS=''
AR=''
ARFLAGS=''
AUTOCONF='${SHELL} /cygdrive/c/CLHEP/2.0.4.5/CLHEP/missing --run autoconf'
AUTOHEADER='${SHELL} /cygdrive/c/CLHEP/2.0.4.5/CLHEP/missing --run autoheader'
AUTOMAKE='${SHELL} /cygdrive/c/CLHEP/2.0.4.5/CLHEP/missing --run automake-1.9'
AWK='gawk'
BUILD_SHARED_FALSE=''
BUILD_SHARED_TRUE=''
BUILD_STATIC_FALSE=''
BUILD_STATIC_TRUE=''
BUILD_VISUAL_FALSE=''
BUILD_VISUAL_TRUE=''
COPY_P=''
CPPFLAGS=''
CXX='cl'
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS=''
CYGPATH_W='cygpath -w'
DEFS=''
DEPDIR=''
DIFF_Q=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EXEEXT=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LN_S='ln -s'
LTLIBOBJS=''
MAKEINFO='${SHELL} /cygdrive/c/CLHEP/2.0.4.5/CLHEP/missing --run makeinfo'
MY_LD=''
MY_SHEXTRA=''
MY_SHFLAGS=''
MY_SHLINK=''
MY_SHNAME=''
OBJEXT=''
PACKAGE='clhep'
PACKAGE_BUGREPORT='http://savannah.cern.ch/projects/clhep/ '
PACKAGE_NAME='CLHEP'
PACKAGE_STRING='CLHEP 2.0.4.5'
PACKAGE_TARNAME='clhep'
PACKAGE_VERSION='2.0.4.5'
PATH_SEPARATOR=':'
RANLIB='ranlib'
SET_MAKE=''
SHELL='/bin/sh'
SHEXT=''
STRIP=''
USE_GMAKE_FALSE=''
USE_GMAKE_TRUE=''
VERSION='2.0.4.5'
ac_ct_CXX='cl'
ac_ct_RANLIB='ranlib'
ac_ct_STRIP=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build='i686-pc-cygwin'
build_alias=''
build_cpu='i686'
build_os='cygwin'
build_vendor='pc'
datadir='${prefix}/share'
exec_prefix='NONE'
host='i686-pc-cygwin'
host_alias=''
host_cpu='i686'
host_os='cygwin'
host_vendor='pc'
includedir='${prefix}/include'
infodir='${prefix}/info'
install_sh='/cygdrive/c/CLHEP/2.0.4.5/CLHEP/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
mkdir_p='mkdir -p --'
oldincludedir='/usr/include'
prefix='/cygdrive/c/CLHEP/'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
subdirs=' Units Vector Evaluator GenericFunctions Geometry Random Matrix RandomObjects RefCount Cast Exceptions'
sysconfdir='${prefix}/etc'
target='i686-pc-cygwin'
target_alias=''
target_cpu='i686'
target_os='cygwin'
target_vendor='pc'
use_exceptions='#undef ENABLE_ZOOM_EXCEPTIONS'

  1. ----------- ##
  2. confdefs.h. ##
  3. ----------- ##

#define PACKAGE "clhep"
#define PACKAGE_BUGREPORT "http://savannah.cern.ch/projects/clhep/ "
#define PACKAGE_NAME "CLHEP"
#define PACKAGE_STRING "CLHEP 2.0.4.5"
#define PACKAGE_TARNAME "clhep"
#define PACKAGE_VERSION "2.0.4.5"
#define VERSION "2.0.4.5"

Configure: exit 77

co mam poprawić, aby wszystko działało poprawnie? Z góry dziekuję za pomoc

1 użytkowników online, w tym zalogowanych: 0, gości: 1