|
|
error
|
9.8.2006 15:36
B.B.
|
Zdravím
Mam menší problem ... když chci kompilovat my nějaka kompilace napise po nekterych prikazech :
error: C compiler cannot create executables
nektere kompilace jdou uplne bezchyby .
Vsechny potrebne balicky mam ale proc mi to hazi porad tenhle error ?? |
|
|
Re: error
|
9.8.2006 16:00
Aleš Hakl
|
Co se stane, kdyz udelate:
$ gcc -x c - -o a.out
int main(){
printf("hello world\n");
}
^D
(^D pochopitelne znamena konec souboru, tj. Control-D) Napise to neco zajimaveho? Vyrobi to a.out ? Je mozne jej spustit? Co si predstavujete pod vsechny potrebne balicky? Kde mate configure.log, ktery byste nam mel ukazat (a dokonce vas na to configure upozornuje)? |
|
|
Re: error
|
10.8.2006 10:57
B.B.
|
Stalo se :
root@192:~# $ gcc -x c - -o a.out
-su: $: command not found
root@192:~# int main(){
-su: syntax error near unexpected token `('
root@192:~# printf("hello world\n");
-su: syntax error near unexpected token `"hello world\n"'
root@192:~# }
-su: syntax error near unexpected token `}'
root@192:~# ^D
-su: :s^D: substitution failed
Configure.log :
It was created by GNU Nano configure 1.2.5, which was
generated by GNU Autoconf 2.59. Invocation command line was
$ ./configure CC=c89 CFLAGS=-02 LIBS=-lposix
## --------- ##
## Platform. ##
## --------- ##
hostname = 192
uname -m = i686
uname -r = 2.4.31
uname -s = Linux
uname -v = #6 Sun Jun 5 19:04:47 PDT 2005
/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/sbin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/X11R6/bin
PATH: /usr/games
PATH: /opt/www/htdig/bin
PATH: /usr/lib/java/bin
PATH: /usr/lib/java/jre/bin
PATH: /opt/kde/bin
PATH: /usr/lib/qt/bin
PATH: /usr/share/texmf/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1389: checking for a BSD-compatible install
configure:1444: result: /usr/bin/ginstall -c
configure:1455: checking whether build environment is sane
configure:1498: result: yes
configure:1563: checking for gawk
configure:1579: found /usr/bin/gawk
configure:1589: result: gawk
configure:1599: checking whether make sets $(MAKE)
configure:1619: result: yes
configure:1838: checking for gcc
configure:1864: result: c89
configure:2108: checking for C compiler version
configure:2111: c89 --version </dev/null >&5
./configure: line 2112: c89: command not found
configure:2114: $? = 127
configure:2116: c89 -v </dev/null >&5
./configure: line 2117: c89: command not found
configure:2119: $? = 127
configure:2121: c89 -V </dev/null >&5
./configure: line 2122: c89: command not found
configure:2124: $? = 127
configure:2147: checking for C compiler default output file name
configure:2150: c89 -02 conftest.c -lposix >&5
./configure: line 2151: c89: command not found
configure:2153: $? = 127
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "GNU Nano"
| #define PACKAGE_TARNAME "nano"
| #define PACKAGE_VERSION "1.2.5"
| #define PACKAGE_STRING "GNU Nano 1.2.5"
| #define PACKAGE_BUGREPORT "nano-devel@gnu.org"
| #define PACKAGE "nano"
| #define VERSION "1.2.5"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2192: error: C compiler cannot create executables
See `config.log' for more details.
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_env_CC_set=set
ac_cv_env_CC_value=c89
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value=-02
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_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='/usr/bin/ginstall -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CC=c89
ac_cv_prog_make_make_set=yes
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACLOCAL='${SHELL} /root/Desktop/nano-1.2.5/missing --run aclocal-1.9'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /root/Desktop/nano-1.2.5/missing --run tar'
AUTOCONF='${SHELL} /root/Desktop/nano-1.2.5/missing --run autoconf'
AUTOHEADER='${SHELL} /root/Desktop/nano-1.2.5/missing --run autoheader'
AUTOMAKE='${SHELL} /root/Desktop/nano-1.2.5/missing --run automake-1.9'
AWK='gawk'
CC='c89'
CCDEPMODE=''
CFLAGS='-02'
CPP=''
CPPFLAGS=''
CURSES_LIB=''
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
GLIB_CFLAGS=''
GLIB_CONFIG=''
GLIB_LIBS=''
GMSGFMT=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
INTLLIBS=''
LDFLAGS=''
LIBICONV=''
LIBINTL=''
LIBOBJS=''
LIBS='-lposix'
LTLIBICONV=''
LTLIBINTL=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /root/Desktop/nano-1.2.5/missing --run makeinfo'
MKINSTALLDIRS=''
MSGFMT=''
MSGMERGE=''
OBJEXT=''
PACKAGE='nano'
PACKAGE_BUGREPORT='nano-devel@gnu.org'
PACKAGE_NAME='GNU Nano'
PACKAGE_STRING='GNU Nano 1.2.5'
PACKAGE_TARNAME='nano'
PACKAGE_VERSION='1.2.5'
PATH_SEPARATOR=':'
POSUB=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
USE_NLS=''
VERSION='1.2.5'
XGETTEXT=''
ac_ct_CC='c89'
ac_ct_STRIP=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build=''
build_alias=''
build_cpu=''
build_os=''
build_vendor=''
datadir='${prefix}/share'
exec_prefix='NONE'
host=''
host_alias=''
host_cpu=''
host_os=''
host_vendor=''
includedir='${prefix}/include'
infodir='${prefix}/info'
install_sh='/root/Desktop/nano-1.2.5/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
mkdir_p='mkdir -p --'
oldincludedir='/usr/include'
prefix='NONE'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
#define PACKAGE "nano"
#define PACKAGE_BUGREPORT "nano-devel@gnu.org"
#define PACKAGE_NAME "GNU Nano"
#define PACKAGE_STRING "GNU Nano 1.2.5"
#define PACKAGE_TARNAME "nano"
#define PACKAGE_VERSION "1.2.5"
#define VERSION "1.2.5"
configure: exit 77 |
|
|
Re: error
|
10.8.2006 12:19
Aleš Hakl
|
A obskurni parametry typu CC=c89 a LIBS=-lposix tomu davate presne proc? |
|
|
Re: error
|
10.8.2006 12:23
B.B.
|
Sam preesne nevim delam vsechno podle readme ... jeste si n alinux zvykam. Jeste bych se chtel zeptat jaky je prikaz na editaci souboru v konzoli ( Tedy kdyz nemam spustene xka ) ? ( Slackaware 10.2 , KDE ) |
|
|
Re: error
|
10.8.2006 12:51
Aleš Hakl
|
Tak verte tomu, ze kompilator C se jmenuje gcc ci cc, rozhodne ne c89 (v SUSv2 se pise, ze je to rozhrani pro kompilator C, v SUSv3 neni o nicem takovem ani slovo), taktez libposix je cosi velice podivneho. Tak typuji, ze mate README pro nejaky Solaris.
A na editaci souboru slouzi vas oblibeny textovy editor. Pokud bych tu nejaky jmenoval, strhne se tu obrovsky flame. |
|
|
Re: error
|
10.8.2006 16:06
B.B.
|
No vite editor bych musel zapnout v Xserveru jenze ja potrebuju kdyz ho editovat soubor kdyz xserver neni spusteny :) |
|
|
Re: error
|
10.8.2006 16:31
B.B.
|
Prominte spatne sem pochopil mel sem pouzit nano :D |
|
|
Re: error
|
12.8.2006 19:40
Jan Kelbich
|
Jestli máte nainstalovaný midnight commander, pusťte si mc , pak klávesou <F4> editujte soubor. Lze také spustit mcedit název_souboru . Jinak můžete zkusit vi nebo joe , ale jsou složitější na ovládání.
Bádal
Jan.Kelbich@seznam.cz |
|
|
Re: error
|
10.8.2006 13:42
Aleš Hakl
|
Jeste tak mimochodem, proc vlastne kompilujete GNU Nano? Coz je program ktery je v naprosto libovolne distribuci hned na prvnim CD. |
|
|
Re: error
|
10.8.2006 15:55
Jan Němec
|
$ gcc -x c - -o a.out
#include <stdio.h>
int main(){
printf("hello world\n");
}
^D
by mohlo dopadnout lépe, ne? |
|
|
Re: error
|
12.8.2006 23:29
Aleš Hakl
|
Pro ucely otestovani funkcnosti kompilatoru a inteligence uzivatele to dopadne uplne stejne. :)
|
|
|
|
|
KOMENTARZE
|
Tylko zarejestrowani użytkownicy mogą dopisywać komentarze.
|
|
Szukanie oprogramowania
|
©Pavel Kysilka - 2003-2024 |
maillinuxsoft.cz | Design:
www.megadesign.cz
|