[問題] Ngspice安裝不起來

如果您覺得您的問題不屬於 debian desktop 或是 debian server 版的範圍內,請在這裡發問。

版主: mufa

[問題] Ngspice安裝不起來

文章uranus0206 » 週五 12月 16, 2005 12:43 am

root@0[ng-spice-rework-17]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether .gobal keyword has been enabled... no
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking for C compiler default output file name... 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 style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
----------------------------------------------------------------------------------------------------------
看config.iog卻看不懂哪裡出問題
我gcc從2.75~3.4都安裝了

-----------------------------------------------------------------------------------------------------------
conftest.c:2: error: syntax error before "me"
configure:3024: $? = 1
configure: failed program was:
| #ifndef __cplusplus
| choke me
| #endif
configure:3165: checking for style of include used by make
configure:3193: result: GNU
configure:3221: checking dependency style of gcc
configure:3304: result: gcc3
configure:3344: checking how to run the C preprocessor
configure:3379: gcc -E conftest.c
In file included from /usr/include/bits/posix1_lim.h:130,
from /usr/include/limits.h:144,
from /usr/lib/gcc-lib/i486-linux/3.3.5/include/limits.h:122,
from /usr/lib/gcc-lib/i486-linux/3.3.5/include/syslimits.h:7,
from /usr/lib/gcc-lib/i486-linux/3.3.5/include/limits.h:11,
from conftest.c:12:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
configure:3385: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "ng-spice-rework"
| #define PACKAGE_TARNAME "ng-spice-rework"
| #define PACKAGE_VERSION "17"
| #define PACKAGE_STRING "ng-spice-rework 17"
| #define PACKAGE_BUGREPORT "ngspice-bugs@lists.sourceforge.net"
| #define PACKAGE "ng-spice-rework"
| #define VERSION "17"
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3379: gcc -E conftest.c
In file included from /usr/include/bits/posix1_lim.h:130,
from /usr/include/limits.h:144,
from /usr/lib/gcc-lib/i486-linux/3.3.5/include/limits.h:122,
from /usr/lib/gcc-lib/i486-linux/3.3.5/include/syslimits.h:7,
from /usr/lib/gcc-lib/i486-linux/3.3.5/include/limits.h:11,
from conftest.c:12:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
configure:3385: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "ng-spice-rework"
| #define PACKAGE_TARNAME "ng-spice-rework"
| #define PACKAGE_VERSION "17"
| #define PACKAGE_STRING "ng-spice-rework 17"
| #define PACKAGE_BUGREPORT "ngspice-bugs@lists.sourceforge.net"
| #define PACKAGE "ng-spice-rework"
| #define VERSION "17"
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3379: gcc -E -traditional-cpp conftest.c
In file included from /usr/include/features.h:295,
from /usr/include/assert.h:36,
from conftest.c:14:
/usr/include/sys/cdefs.h:31: #error "You need a ISO C conforming compiler to use the glibc headers"
configure:3385: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "ng-spice-rework"
| #define PACKAGE_TARNAME "ng-spice-rework"
| #define PACKAGE_VERSION "17"
| #define PACKAGE_STRING "ng-spice-rework 17"
| #define PACKAGE_BUGREPORT "ngspice-bugs@lists.sourceforge.net"
| #define PACKAGE "ng-spice-rework"
| #define VERSION "17"
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3379: gcc -E -traditional-cpp conftest.c
In file included from /usr/include/features.h:295,
from /usr/include/assert.h:36,
from conftest.c:14:
/usr/include/sys/cdefs.h:31: #error "You need a ISO C conforming compiler to use the glibc headers"
configure:3385: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "ng-spice-rework"
| #define PACKAGE_TARNAME "ng-spice-rework"
| #define PACKAGE_VERSION "17"
| #define PACKAGE_STRING "ng-spice-rework 17"
| #define PACKAGE_BUGREPORT "ngspice-bugs@lists.sourceforge.net"
| #define PACKAGE "ng-spice-rework"
| #define VERSION "17"
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3379: /lib/cpp conftest.c
In file included from /usr/include/bits/posix1_lim.h:130,
from /usr/include/limits.h:144,
from /usr/lib/gcc-lib/i486-linux/3.3.5/include/limits.h:122,
from /usr/lib/gcc-lib/i486-linux/3.3.5/include/syslimits.h:7,
from /usr/lib/gcc-lib/i486-linux/3.3.5/include/limits.h:11,
from conftest.c:12:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
configure:3385: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "ng-spice-rework"
| #define PACKAGE_TARNAME "ng-spice-rework"
| #define PACKAGE_VERSION "17"
| #define PACKAGE_STRING "ng-spice-rework 17"
| #define PACKAGE_BUGREPORT "ngspice-bugs@lists.sourceforge.net"
| #define PACKAGE "ng-spice-rework"
| #define VERSION "17"
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3379: /lib/cpp conftest.c
In file included from /usr/include/bits/posix1_lim.h:130,
from /usr/include/limits.h:144,
from /usr/lib/gcc-lib/i486-linux/3.3.5/include/limits.h:122,
from /usr/lib/gcc-lib/i486-linux/3.3.5/include/syslimits.h:7,
from /usr/lib/gcc-lib/i486-linux/3.3.5/include/limits.h:11,
from conftest.c:12:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
configure:3385: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "ng-spice-rework"
| #define PACKAGE_TARNAME "ng-spice-rework"
| #define PACKAGE_VERSION "17"
| #define PACKAGE_STRING "ng-spice-rework 17"
| #define PACKAGE_BUGREPORT "ngspice-bugs@lists.sourceforge.net"
| #define PACKAGE "ng-spice-rework"
| #define VERSION "17"
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3462: result: /lib/cpp
configure:3486: /lib/cpp conftest.c
In file included from /usr/include/bits/posix1_lim.h:130,
from /usr/include/limits.h:144,
from /usr/lib/gcc-lib/i486-linux/3.3.5/include/limits.h:122,
from /usr/lib/gcc-lib/i486-linux/3.3.5/include/syslimits.h:7,
from /usr/lib/gcc-lib/i486-linux/3.3.5/include/limits.h:11,
from conftest.c:12:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
configure:3492: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "ng-spice-rework"
| #define PACKAGE_TARNAME "ng-spice-rework"
| #define PACKAGE_VERSION "17"
| #define PACKAGE_STRING "ng-spice-rework 17"
| #define PACKAGE_BUGREPORT "ngspice-bugs@lists.sourceforge.net"
| #define PACKAGE "ng-spice-rework"
| #define VERSION "17"
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3486: /lib/cpp conftest.c
In file included from /usr/include/bits/posix1_lim.h:130,
from /usr/include/limits.h:144,
from /usr/lib/gcc-lib/i486-linux/3.3.5/include/limits.h:122,
from /usr/lib/gcc-lib/i486-linux/3.3.5/include/syslimits.h:7,
from /usr/lib/gcc-lib/i486-linux/3.3.5/include/limits.h:11,
from conftest.c:12:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
configure:3492: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "ng-spice-rework"
| #define PACKAGE_TARNAME "ng-spice-rework"
| #define PACKAGE_VERSION "17"
| #define PACKAGE_STRING "ng-spice-rework 17"
| #define PACKAGE_BUGREPORT "ngspice-bugs@lists.sourceforge.net"
| #define PACKAGE "ng-spice-rework"
| #define VERSION "17"
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3561: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
================================================
這是出錯的地方
uranus0206
可愛的小學生
可愛的小學生
 
文章: 56
註冊時間: 週二 11月 15, 2005 4:18 pm

Re: [問題] Ngspice安裝不起來

文章訪客 » 週五 12月 16, 2005 9:39 am

check weather you have g++ installed or not
peace

uranus0206 寫:root@0[ng-spice-rework-17]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether .gobal keyword has been enabled... no
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking for C compiler default output file name... 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 style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
----------------------------------------------------------------------------------------------------------
看config.iog卻看不懂哪裡出問題
我gcc從2.75~3.4都安裝了

-----------------------------------------------------------------------------------------------------------
conftest.c:2: error: syntax error before "me"
configure:3024: $? = 1
configure: failed program was:
| #ifndef __cplusplus
| choke me
| #endif
configure:3165: checking for style of include used by make
configure:3193: result: GNU
configure:3221: checking dependency style of gcc
configure:3304: result: gcc3
configure:3344: checking how to run the C preprocessor
configure:3379: gcc -E conftest.c
In file included from /usr/include/bits/posix1_lim.h:130,
from /usr/include/limits.h:144,
from /usr/lib/gcc-lib/i486-linux/3.3.5/include/limits.h:122,
from /usr/lib/gcc-lib/i486-linux/3.3.5/include/syslimits.h:7,
from /usr/lib/gcc-lib/i486-linux/3.3.5/include/limits.h:11,
from conftest.c:12:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
configure:3385: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "ng-spice-rework"
| #define PACKAGE_TARNAME "ng-spice-rework"
| #define PACKAGE_VERSION "17"
| #define PACKAGE_STRING "ng-spice-rework 17"
| #define PACKAGE_BUGREPORT "ngspice-bugs@lists.sourceforge.net"
| #define PACKAGE "ng-spice-rework"
| #define VERSION "17"
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3379: gcc -E conftest.c
In file included from /usr/include/bits/posix1_lim.h:130,
from /usr/include/limits.h:144,
from /usr/lib/gcc-lib/i486-linux/3.3.5/include/limits.h:122,
from /usr/lib/gcc-lib/i486-linux/3.3.5/include/syslimits.h:7,
from /usr/lib/gcc-lib/i486-linux/3.3.5/include/limits.h:11,
from conftest.c:12:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
configure:3385: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "ng-spice-rework"
| #define PACKAGE_TARNAME "ng-spice-rework"
| #define PACKAGE_VERSION "17"
| #define PACKAGE_STRING "ng-spice-rework 17"
| #define PACKAGE_BUGREPORT "ngspice-bugs@lists.sourceforge.net"
| #define PACKAGE "ng-spice-rework"
| #define VERSION "17"
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3379: gcc -E -traditional-cpp conftest.c
In file included from /usr/include/features.h:295,
from /usr/include/assert.h:36,
from conftest.c:14:
/usr/include/sys/cdefs.h:31: #error "You need a ISO C conforming compiler to use the glibc headers"
configure:3385: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "ng-spice-rework"
| #define PACKAGE_TARNAME "ng-spice-rework"
| #define PACKAGE_VERSION "17"
| #define PACKAGE_STRING "ng-spice-rework 17"
| #define PACKAGE_BUGREPORT "ngspice-bugs@lists.sourceforge.net"
| #define PACKAGE "ng-spice-rework"
| #define VERSION "17"
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3379: gcc -E -traditional-cpp conftest.c
In file included from /usr/include/features.h:295,
from /usr/include/assert.h:36,
from conftest.c:14:
/usr/include/sys/cdefs.h:31: #error "You need a ISO C conforming compiler to use the glibc headers"
configure:3385: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "ng-spice-rework"
| #define PACKAGE_TARNAME "ng-spice-rework"
| #define PACKAGE_VERSION "17"
| #define PACKAGE_STRING "ng-spice-rework 17"
| #define PACKAGE_BUGREPORT "ngspice-bugs@lists.sourceforge.net"
| #define PACKAGE "ng-spice-rework"
| #define VERSION "17"
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3379: /lib/cpp conftest.c
In file included from /usr/include/bits/posix1_lim.h:130,
from /usr/include/limits.h:144,
from /usr/lib/gcc-lib/i486-linux/3.3.5/include/limits.h:122,
from /usr/lib/gcc-lib/i486-linux/3.3.5/include/syslimits.h:7,
from /usr/lib/gcc-lib/i486-linux/3.3.5/include/limits.h:11,
from conftest.c:12:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
configure:3385: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "ng-spice-rework"
| #define PACKAGE_TARNAME "ng-spice-rework"
| #define PACKAGE_VERSION "17"
| #define PACKAGE_STRING "ng-spice-rework 17"
| #define PACKAGE_BUGREPORT "ngspice-bugs@lists.sourceforge.net"
| #define PACKAGE "ng-spice-rework"
| #define VERSION "17"
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3379: /lib/cpp conftest.c
In file included from /usr/include/bits/posix1_lim.h:130,
from /usr/include/limits.h:144,
from /usr/lib/gcc-lib/i486-linux/3.3.5/include/limits.h:122,
from /usr/lib/gcc-lib/i486-linux/3.3.5/include/syslimits.h:7,
from /usr/lib/gcc-lib/i486-linux/3.3.5/include/limits.h:11,
from conftest.c:12:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
configure:3385: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "ng-spice-rework"
| #define PACKAGE_TARNAME "ng-spice-rework"
| #define PACKAGE_VERSION "17"
| #define PACKAGE_STRING "ng-spice-rework 17"
| #define PACKAGE_BUGREPORT "ngspice-bugs@lists.sourceforge.net"
| #define PACKAGE "ng-spice-rework"
| #define VERSION "17"
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3462: result: /lib/cpp
configure:3486: /lib/cpp conftest.c
In file included from /usr/include/bits/posix1_lim.h:130,
from /usr/include/limits.h:144,
from /usr/lib/gcc-lib/i486-linux/3.3.5/include/limits.h:122,
from /usr/lib/gcc-lib/i486-linux/3.3.5/include/syslimits.h:7,
from /usr/lib/gcc-lib/i486-linux/3.3.5/include/limits.h:11,
from conftest.c:12:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
configure:3492: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "ng-spice-rework"
| #define PACKAGE_TARNAME "ng-spice-rework"
| #define PACKAGE_VERSION "17"
| #define PACKAGE_STRING "ng-spice-rework 17"
| #define PACKAGE_BUGREPORT "ngspice-bugs@lists.sourceforge.net"
| #define PACKAGE "ng-spice-rework"
| #define VERSION "17"
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3486: /lib/cpp conftest.c
In file included from /usr/include/bits/posix1_lim.h:130,
from /usr/include/limits.h:144,
from /usr/lib/gcc-lib/i486-linux/3.3.5/include/limits.h:122,
from /usr/lib/gcc-lib/i486-linux/3.3.5/include/syslimits.h:7,
from /usr/lib/gcc-lib/i486-linux/3.3.5/include/limits.h:11,
from conftest.c:12:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
configure:3492: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "ng-spice-rework"
| #define PACKAGE_TARNAME "ng-spice-rework"
| #define PACKAGE_VERSION "17"
| #define PACKAGE_STRING "ng-spice-rework 17"
| #define PACKAGE_BUGREPORT "ngspice-bugs@lists.sourceforge.net"
| #define PACKAGE "ng-spice-rework"
| #define VERSION "17"
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3561: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
================================================
這是出錯的地方
訪客
 

文章uranus0206 » 週五 12月 16, 2005 12:23 pm

g++和f其lib都裝了還是不行
uranus0206
可愛的小學生
可愛的小學生
 
文章: 56
註冊時間: 週二 11月 15, 2005 4:18 pm


回到 debian misc

誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 1 位訪客