私はCのnew-ishです。JavaScriptでいくつかの行列操作をしようとしていて、CライブラリをNode JSモジュールとして埋め込みたいと思っていました。私はこれを行い、うまく動作している概念実証モジュールを完成させました。UbuntuでMeschachを設定する際の問題16.10 x64
私はマトリックス操作を行うためにhere (mesch12b.tar.gz)からMeschachをダウンロードしました。それは私が必要とするもののための良いオプションのように見えます(しかし、私はCやC++の他のオプションにもオープンしています)。何らかの理由で
、私は./configure
スクリプトを実行すると、それは何も見つけることができません。
$ ./configure
loading cache ./config.cache
checking for acc... no
checking for cc... (cached) no
checking for gcc... (cached) no
checking for cc... (cached) no
configure: error: no acceptable cc found in $PATH
を(私はbuild-essential
は永遠に設置持っていた私のPATHは罰金だとcc
とgcc
が私のシステムで利用できます):
$ which cc
/usr/bin/cc
$ which gcc
/usr/bin/gcc
私はすべてを見渡しましたが、役に立たなかったものは見つかりませんでした。任意のヒント?
UPDATE
私はCC
環境変数を設定した場合、我々は最初の問題を回避するが、より多く生じていることがわかりました。一度に1つずつ試してみるつもりですが、誰かが私が間違っている大事なことを指摘できれば、感謝します。
$ CC=/usr/bin/gcc ./configure
loading cache ./config.cache
checking for acc... /usr/bin/gcc
checking for cc... (cached) /usr/bin/gcc
checking for gcc... (cached) /usr/bin/gcc
checking whether the C compiler (/usr/bin/gcc ) works... yes
checking whether the C compiler (/usr/bin/gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether /usr/bin/gcc accepts -g... yes
checking how to run the C preprocessor... /usr/bin/gcc -E
checking for AIX... no
./configure: 957: ./configure: AC_HPUX: not found
checking for minix/config.h... no
checking for POSIXized ISC... no
checking for ranlib... ranlib
checking for memory.h... yes
checking for ANSI C header files... yes
checking for complex.h... yes
checking for malloc.h... yes
checking for varargs.h... no
checking for size_t... yes
checking for working const... yes
checking whether byte ordering is bigendian... no
computing machine epsilon(s)
/usr/bin/gcc -o macheps dmacheps.c
dmacheps.c:37:1: warning: return type defaults to 'int' [-Wimplicit-int]
main()
^
/usr/bin/gcc -o macheps fmacheps.c
fmacheps.c:37:1: warning: return type defaults to 'int' [-Wimplicit-int]
main()
^
computing M_MAX_INT
/usr/bin/gcc -o maxint maxint.c
maxint.c:27:1: warning: return type defaults to 'int' [-Wimplicit-int]
main()
^
maxint.c: In function 'main':
maxint.c:37:5: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
printf("%d\n", old_i);
^
maxint.c:37:5: warning: incompatible implicit declaration of built-in function 'printf'
maxint.c:37:5: note: include '<stdio.h>' or provide a declaration of 'printf'
checking char \0 vs. float zeros
checking for bcopy... yes
checking for bzero... yes
./configure: 1697: ./configure: Syntax error: "(" unexpected (expecting "fi")
AbednegoもShadrachも必要ですか? –
'config.cache'を削除します。あなたがCコンパイラを持っていないことを記録します。次に、configureスクリプトを再実行します。 –
@JonathanLeffler私はこれをしましたが、役に立たない、悲しいことに。 –