SUSE에 SNNS설치시 에러 어떻게 하죠?

sonton의 이미지

안녕하세요 리눅스 초보입니다.
신경망 프로그램인 SNNSv4.2를 SUSE9.0에 설치하려다가 에러가 나서 포기하고 Redhat9.0에 설치해서 사용했었습니다.
요즘 맥을 구해서 OSX를 쓰다보니까 Darwin에다가도 SNNS를 깔고 싶은데 역시나 소스컴파일 능력이 부족해서 엄두가 안나네요. 오기가 생겨서 일단 SUSE9.0에 다시 SNNS를 설치해 보려고 새로 깔았습니다. 소스 컴파일좀 배워보고 싶기도 하고 개인적으로도 수세가 맘에 들어서요..

/home/sonton/bin 에다가 압축을 풀어놓고 리드미에 있는것처럼 $./Configure --prefix=/home/sonton 이라는 명령을 줬습니다. 결과는 다음과 같이..
***********************************************************************
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... (cached) yes
checking for ranlib... ranlib
checking for makedepend... makedepend
checking for bison... bison
checking for version of bison... bison (GNU Bison) 1.75
Written by Robert Corbett and Richard Stallman.

Copyright (C) 2002 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.
checking for xgrabsc... xgrabsc
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking values.h usability... yes
checking values.h presence... yes
checking for values.h... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking return type of signal handlers... void
checking for working memcmp... yes
checking for getcwd... yes
checking for strdup... yes
checking for lrand48... yes
configure: creating ./config.status
config.status: creating Makefile.def
config.status: creating config.h
config.status: config.h is unchanged
***********************************************************************
SNNSv4.2 is now ready to be compiled.

Makefile이 만들어지기는 하지만 make해보면 에러가 나면서 (디렉토리가 없다는둥) 종료가 되어버립니다.
gcc는 3.3.1 이라네요.

출력을 보면..
checking for gcc option to accept ANSI C... none needed
checking for library containing opendir... none required
두가지가 없다고 필요하다는데 수세 YaST에서 비슷한 이름들어있는건 다 깔았는데도 역시 마찬가지네요.

레드헷에서는 저런 에러가 없었던것 같고 한번에 바로 컴파일이 가능했었거든요. 수세랑 레드햇이랑 다른게 뭘까요??

구글 검색에서도 적절한 답을 얻기가 힘들었습니다. SNNS 홈에서두요.. Yacc 와 lex 문제에 대한 지적은 있는데.. 어떻게 해결해야하는지 통 모르겠네요.

고수님들 좀 도와주세요.

sonton의 이미지

설치할때 적어놓은거 보니 레드헷에서는 Makefile은 잘 만들어지는데 컴파일에 오류가 나서 SNNS 홈에 있는 버그픽스를 보고 MAXFLOAT undefined오류를 수정했었군요.

------------------------------
sonton SonTon SOnTOn SONTON

sonton의 이미지

혹시나 해서 config.log 일부를 첨부합니다.이상한 부분만..

configure:2206: gcc -c -g -O2 conftest.c >&5
conftest.c:2: error: parse error before "me"
configure:2209: $? = 1
configure: failed program was:
| #ifndef __cplusplus
| choke me
| #endif

configure:2606: g++ -c -g -O2 conftest.cc >&5
configure: In function `int main()':
configure:2601: error: `exit' undeclared (first use this function)
configure:2601: error: (Each undeclared identifier is reported only once for
each function it appears in.)
configure:2609: $? = 1
configure: failed program was:
| #line 2589 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
|
| int
| main ()
| {
| exit (42);
| ;
| return 0;
| }

configure:2718: gcc -E conftest.c
configure:2720:28: ac_nonexistent.h: No such file or directory
configure:2724: $? = 1
configure: failed program was:
| #line 2709 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #ifdef __cplusplus
| #include <stdlib.h>
| #endif
| /* end confdefs.h. */
| #include <ac_nonexistent.h>

configure:2825: gcc -E conftest.c
configure:2827:28: ac_nonexistent.h: No such file or directory
configure:2831: $? = 1
configure: failed program was:
| #line 2816 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #ifdef __cplusplus
| #include <stdlib.h>
| #endif
| /* end confdefs.h. */
| #include <ac_nonexistent.h>

configure:4381: gcc -o conftest -g -O2 conftest.c >&5
configure:4375:29: missing terminating " character
configure: In function `main':
configure:4376: error: parse error before "Written"
configure:4379: error: `see' undeclared (first use in this function)
configure:4379: error: (Each undeclared identifier is reported only once
configure:4379: error: for each function it appears in.)
configure:4380: error: `not' undeclared (first use in this function)
configure:4380:76: missing terminating " character
configure:4382: error: `ptr' undeclared (first use in this function)
configure:4384: $? = 1
configure: program exited with status 1
configure: failed program was:
| #line 4361 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #ifdef __cplusplus
| #include <stdlib.h>
| #endif
| /* end confdefs.h. */
| #include <stdlib.h>
| main()
| {
| char *version = "bison (GNU Bison) 1.75
| Written by Robert Corbett and Richard Stallman.
|
| Copyright (C) 2002 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.";
| char *ptr;
| ptr = version;
| while (*ptr != '\0') ptr++;
| while (*ptr != ' ' && ptr > version) ptr--;
| ptr++;
| return (atof(ptr) < 1.22);
| }
configure:4404: WARNING: It seems like you have bison version 1.22 or older
configure:4406: WARNING: We try to handle this but better refer to Readme.install

------------------------------
sonton SonTon SOnTOn SONTON

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.