./configureの後にmakeができない

このQ&Aのポイント
  • `./configure` コマンドの実行後に `make` コマンドがエラーとなり、インストールできない状況です。質問者はXautoclickというマウスのクリック連打ソフトをインストールしようとしていますが、`./configure` の実行時にいくつかのエラーが表示されているようです。
  • エラーメッセージを見ると、`g++` コンパイラが見つからないため、C++のコードはコンパイルできないとされています。また、X11が見つからないため、それに依存するコンポーネントもビルドされません。
  • これらのエラーを解決するためには、以下の手順を試すことができます。まず、`g++` コンパイラをインストールしてみてください。その後、X11の開発パッケージをインストールすることで、X11に必要なヘッダーファイルとライブラリを取得できます。インストールが完了したら、再度 `./configure` を実行し、`make` を行うことができるはずです。
回答を見る
  • ベストアンサー

`./configure` の次に `make` ができない

xautoclick というマウスのクリック連打ソフトをインストールするため、下記のサイトから .tar.gz 形式のアーカイブをダウンロードしました。 http://xautoclick.sourceforge.net/ そしてデスクトップ上で展開し、同梱の INSTALL ドキュメントに従ってシェルから (root でログインした後に) `./configure` と入力しました。 次に `make` と入力したのですが、 「make: `all' に対して行うべき事はありません.」 というエラーメッセージが表示され、インストールすることできません。 以下が、シェルの表示メッセージです。 ---------- debian:/home/user/Desktop/xautoclick-0.19-src# ./configure Checking for c compiler ... gcc Checking for c++ compiler ... can't find g++ Checking for gcc as c++ compiler ... no, disabling compilation of all c++ code Checking for GNU Make ... yes, using make Checking for extra headers ... no Checking for extra libraries ... no Checking for gcc support of -MM option ... yes Checking for inttypes.h ... no Checking for stdint.h ... no Checking for unistd.h ... no Checking for malloc.h ... no Checking for X11 header presence ... not found (check if the dev(el) packages are installed Checking for X11 ... no Checking for XTest extension ... no No X11 found. Not building anything that depends on it Debug symbols disabled. All compiler warnings disabled. Cleaning up source tree ... done Generating config.mak ... done. aAutoClick : no cAutoClick : no gAutoClick : no gAutoClick2 : no qtAutoClick : no Installation to /usr/local Now type 'make' to build. debian:/home/user/Desktop/xautoclick-0.19-src# make make: `all' に対して行うべき事はありません. ---------- `./configure` のところで失敗しているようなのですが、何を改善すればよいのでしょうか? "Checking for..." のところで "no" と表示されたものは、インストールしなければならないということなのでしょうか? ご教示ください。宜しくお願い致します。

質問者が選んだベストアンサー

  • ベストアンサー
  • adkori
  • ベストアンサー率31% (221/705)
回答No.2

#1です。 だいたいうまくいったようですが、debianであれば $ apt-get install build-essential fakeroot devscripts で基本的な開発環境は揃うと思いますよ。

_--_--_-_-
質問者

お礼

再度ご回答有難うございます。 apt というコマンドがあるのですね。早速実行しました。 これから活用していきたいと思います。とても参考になりました。

その他の回答 (1)

  • adkori
  • ベストアンサー率31% (221/705)
回答No.1

メッセージを見る限り、開発環境がインストールされていないようですが? ディストリビューションが不明ですが、基本的な開発環境をインストールしてから もう一度試してみましょう。

_--_--_-_-
質問者

お礼

大変申し訳ありません。ディストリビューションを書き忘れてしまいました。 Debian GNU/Linux 4.0 を使っています。 開発環境というのは、具体的には "Checking for..." のところでチェックされるようなツール類のことでしょうか? とりあえず、Synaptic パッケージマネージャで g++ や X11 extension などと検索し、出てきたものを片っ端からインストールしました。 そうしたところ、どうやらさっきよりは上手く行ったようです。 make も進み、`./gautoclick` と入力するとソフトも起動するようなので、結構成功しているようです。 ご回答有難うございました。

_--_--_-_-
質問者

補足

お礼には書き切れなかった補足です。 現在の ./configure 実行時の表示メッセージは以下のようになっています。 ---------- debian:/home/user/Desktop/xautoclick-0.19-src# ./configure Checking for c compiler ... gcc Checking for c++ compiler ... g++ Checking for GNU Make ... yes, using make Checking for extra headers ... no Checking for extra libraries ... no Checking for gcc support of -MM option ... yes Checking for g++ support of -MM option ... yes Checking for inttypes.h ... yes Checking for unistd.h ... yes Checking for malloc.h ... yes Checking for X11 header presence ... yes (using /usr/include) Checking for X11 ... yes (using -L/usr/X11R6/lib -lX11 -lXext) Checking for XTest extension ... yes Checking for gtk-config ... gtk-config Checking for GTK cflags ... -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include Checking for GTK libs ... -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm Checking for glib-config ... glib-config Checking for glib cflags ... -I/usr/include/glib-1.2 -I/usr/lib/glib/include Checking for glib libs ... -L/usr/lib -lglib Checking for pkg-config ... pkg-config Checking for GTK+ 2.0 ... yes Checking for GTK+ 2.0 cflags ... -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 Checking for GTK+ 2.0 libs ... -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXfixes -lpango-1.0 -lcairo -lX11 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 Checking for glib 2.0 cflags ... -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include Checking for glib 2.0 libs ... -lglib-2.0 Checking for Qt 3.x header files ... not found Debug symbols disabled. All compiler warnings disabled. Cleaning up source tree ... done Generating config.mak ... done. aAutoClick : yes cAutoClick : yes gAutoClick : yes gAutoClick2 : yes qtAutoClick : no Installation to /usr/local Now type 'make' to build. debian:/home/user/Desktop/xautoclick-0.19-src# make __BUILD_GTK1__=yes make -C . gautoclick make[1]: ディレクトリ `/home/user/Desktop/xautoclick-0.19-src' に入ります (以下略) ----------

関連するQ&A

  • GCCでライブラリが足りない

    はじめまして。 LindowsOS4.0を使っています。 コンパイルができずに困っています。 GCCとMAKEをインストールしました(Lindowsはどちらも入っていないのです。Debian/Woodyベースと言われています)。 gcc 2.95.4 make 3.79.1 which gcc とすると、/usr/bin/gcc と表示されます。 で、./configure すると、 ..... checking whether the C compiler works ... no と表示されコンパイルエラーになります。 configure.log を見ると、 ------------------- checking for gcc configure:916: checking whether the C compiler (gcc ) works configure:932: gcc -o conftest conftest.c 1>&5 /usr/bin/ld: cannot open crt1.o: No such file or directory collect2: ld returned 1 exit status configure: failed program was: #line 927 "configure" #include "confdefs.h" main(){return(0);} --------------------- とか --------------------- checking for gcc configure:905: checking whether the C compiler (gcc ) works configure:921: gcc -o conftest conftest.c 1>&5 /usr/bin/ld: cannot open crt1.o: No such file or directory collect2: ld returned 1 exit status configure: failed program was: #line 916 "configure" #include "confdefs.h" main(){return(0);} ---------------------- とかなっています。 confdefs.hというのは何かのライブラリなのでしょうか?これが無いとconfigureできないのでしょうか?? よろしくお願いいたします。

  • ./configureの次にmakeが出来ません

    ubuntu8.04を使っているLinux初心者です。 rcssbase-11.1.0.tar.gz というものをインストールしたいのですが、makeを行うと、'all'に対して行うべき事はありませんと出ます。 ./configureの段階でうまくいっていないのだとは思うのですが、何をどう改善すればいいのか分かりません。実行メッセージのどの部分を載せたらいいのか分からないので、怪しいかなと思う所(noやerrorが出た所)を載せます。 .......... checking whether the C++ compiler works... yes checking whether we are cross compiling... no checking for the pthreads library -lpthreads... no checking whether pthreads work without any flags... no checking whether pthreads work with -Kthread... no checking whether pthreads work with -kthread... no checking for the pthreads library -llthread... no checking whether pthreads work with -pthread... yes checking dl.h usability... no checking dl.h presence... no checking for dl.h... no checking sys/dl.h usability... no checking sys/dl.h presence... no checking for sys/dl.h... no checking dld.h usability... no checking dld.h presence... no checking for dld.h... no checking mach-o/dyld.h usability... no checking mach-o/dyld.h presence... no checking for mach-o/dyld.h... no checking ltdl.h usability... no checking ltdl.h presence... no checking for ltdl.h... no checking for cvs... no config.status: creating config.h config.status: config.h is unchanged .......... あと、config.logを表示させたらこんな表示がありました。 /usr/bin/uname -p = unknown /bin/uname -X = unknown /bin/arch = unknown /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown configure:8221: result: no /usr/bin/ld: cannot find -lsocket configure:8916: result: no /usr/bin/ld: cannot find -lposix4 ac_cv_func_shl_load=no ac_cv_header_dl_h=no ac_cv_header_dld_h=no ac_cv_header_errno_h=yes ac_cv_header_ltdl_h=no conftest.c:10:28: error: ac_nonexistent.h: No such file or directory conftest.c:10:28: error: ac_nonexistent.h: No such file or directory conftest.cpp:11:28: error: ac_nonexistent.h: No such file or directory conftest.cpp:11:28: error: ac_nonexistent.h: No such file or directory conftest.cpp:69: error: '_Bool' does not name a type conftest.cpp:73: error: 'ac__type_new_' was not declared in this scope conftest.cpp:73: error: expected primary-expression before ')' token conftest.cpp:73: error: expected `)' before numeric constant conftest.cpp:75: error: 'ac__type_new_' was not declared in this scope conftest.cpp:106:16: error: dl.h: No such file or directory conftest.cpp:73:16: error: dl.h: No such file or directory conftest.cpp:106:20: error: sys/dl.h: No such file or directory conftest.cpp:73:20: error: sys/dl.h: No such file or directory conftest.cpp:106:17: error: dld.h: No such file or directory conftest.cpp:73:17: error: dld.h: No such file or directory conftest.cpp:106:25: error: mach-o/dyld.h: No such file or directory conftest.cpp:73:25: error: mach-o/dyld.h: No such file or directory conftest.cpp:115:18: error: ltdl.h: No such file or directory conftest.cpp:82:18: error: ltdl.h: No such file or directory conftest.cpp:82:28: error: ac_nonexistent.h: No such file or directory ........ (dl.h...noなどの表示がありますが、これは何ですか?(すみません、検索してみてもよく分からなかったので)noというのは絶対にあってはいけないのですか?) 情報が足りなすぎるかもしれませんが、よろしくお願いします。

  • make でエラー

    勉強中の身です。 環境 fedora 2 postgresqlをインストールして (postgresql-8.2.1) make コンパイルがうまくいきません [postgres@localhost postgresql-8.2.1]$ ./configure checking build system type... i686-pc-linux-gnuoldld checking host system type... i686-pc-linux-gnuoldld checking which template to use... linux checking whether to build with 64-bit integer date/time support... no checking whether NLS is wanted... no checking for default port number... 5432 checking for gcc... no checking for cc... no configure: error: no acceptable C compiler found in $PATH See `config.log' for more details. [postgres@localhost postgresql-8.2.1]$ make You need to run the 'configure' program first. See the file 'INSTALL' for installation instructions. make: *** [all] エラー 1 $ make とすると上記のようにエラーがでます。 ./configure -オプション が必要なのでしょうか? よろしくおねがいします。

  • bind導入の際の./configureコマンドについて

    某参考書にDNSサーバー構築の導入にあたって以下のコマンドが書いてあり 入力してみるもエラーが出てしまいます。 (opensslは導入しています。ipv6は使う予定がないとのことでnoになっています。) 見ても全く意味がわからないのですが、分かる方がいれば教えて欲しいです。 [ @localhost bind-9.2.3]$ ./configure \ --prefix=/usr/local/named \ --sysconfdir=/etc \ --with-openssl=no \ --enable-ipv6=no \ checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking whether make sets ${MAKE}... yes checking for ranlib... ranlib checking for a BSD-compatible install... /usr/bin/install -c checking for ar... /usr/bin/ar checking for etags... no checking for emacs-etags... no checking for perl5... no checking for perl... /usr/bin/perl checking for gcc... no checking for cc... no checking for cc... no checking for cl... no configure: error: no acceptable C compiler found in $PATH 宜しくお願い致します。

  • audacityをmakeしたいのですが

    以下の環境で audacityをmakeしたいのですが uname -a Linux localhost.localdomain 2.6.9-89.0.18.EL #1 Tue Dec 15 14:01:55 EST 2009 i686 i686 i386 GNU/Linux configureすると以下のエラーになってしまいます libwx_baseがないのが、原警告: libwx_base2.4_0-2.4.2-6mdv2009.0.i586.rpm: V3 DSA signature: NOKEY, key ID 78d019f5 エラー: Failed dependencies: libc.so.6(GLIBC_2.4) is needed by libwx_base2.4_0-2.4.2-6mdv2009.0.i586 libc.so.6(GLIBC_2.7) is needed by libwx_base2.4_0-2.4.2-6mdv2009.0.i586 rtld(GNU_HASH) is needed by libwx_base2.4_0-2.4.2-6mdv2009.0.i586 rpmlib(PayloadIsLzma) <= 4.4.6-1 is needed by libwx_base2.4_0-2.4.2-6mdv2009.0.i586 因との記載もみかけたのですが rpmを入れようとすると依存関係でエラーになってしまいます (configureエラー以下につけます)対処アドバイス頂けないでしょうか? audacity-src-1.2.6]# ./configure --without-vorbis 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 how to run the C preprocessor... gcc -E checking for egrep... grep -E checking whether gcc needs -traditional... no 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... g++ -E checking for a BSD-compatible install... /usr/bin/install -c checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for ANSI C header files... yes 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 sndfile.h usability... no checking sndfile.h presence... no checking for sndfile.h... no checking for lib-src/libmad/frame.h... no checking for lib-src/libvorbis/include/vorbis/vorbisenc.h... no checking for lib-src/libid3tag/frame.h... no checking for lib-src/libsamplerate/src/samplerate.h... no checking for lib-src/libresample/include/libresample.h... yes checking for lib-src/soundtouch/include/SoundTouch.h... yes checking for lib-src/libflac/include/FLAC/all.h... no checking mad.h usability... no checking mad.h presence... no checking for mad.h... no checking vorbis/vorbisenc.h usability... yes checking vorbis/vorbisenc.h presence... yes checking for vorbis/vorbisenc.h... yes checking id3tag.h usability... no checking id3tag.h presence... no checking for id3tag.h... no checking FLAC/all.h usability... no checking FLAC/all.h presence... no checking for FLAC/all.h... no --- Configuring soundtouch --- Configuring libsndfile --- Configuring libresample checking for zip... /usr/bin/zip checking for wx-config... no configure: error: "Could not find wx-config: is wxWidgets installed? is wx-config in your path?" [root@localhost audacity-src-1.2.6]# 警告: libwx_base2.4_0-2.4.2-6mdv2009.0.i586.rpm: V3 DSA signature: NOKEY, key ID 78d019f5 エラー: Failed dependencies: libc.so.6(GLIBC_2.4) is needed by libwx_base2.4_0-2.4.2-6mdv2009.0.i586 libc.so.6(GLIBC_2.7) is needed by libwx_base2.4_0-2.4.2-6mdv2009.0.i586 rtld(GNU_HASH) is needed by libwx_base2.4_0-2.4.2-6mdv2009.0.i586 rpmlib(PayloadIsLzma) <= 4.4.6-1 is needed by libwx_base2.4_0-2.4.2-6mdv2009.0.i586

  • debian arm fsniperのインストール

    buffuloのLS-XHLシリーズにdebianを入れ、fsniperをインストールしようと思っていますが ./configureでエラーが出ます。 root@XXX:/fsniper-1.3.1# ./configure checking whether to enable maintainer-specific portions of Makefiles... no checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking for style of include used by make... GNU 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 ISO C89... none needed checking dependency style of gcc... gcc3 checking for library containing strerror... none required checking for ranlib... ranlib checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for gcc... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking dependency style of gcc... (cached) gcc3 checking for a BSD-compatible install... /usr/bin/install -c checking for magic_open in -lmagic... no configure: error: libmagic not found 何か前進するための知恵をお借りできませんでしょうか? よろしくお願い致します。

  • MySQLのコンパイル

    MySQL-5.0.16をインストールし、下記のようにconfigureを実行したところ、「C compiler が見つからない」旨のメッセージが出て先へ進めません。 yum で gcc や cc のインストールを試みてもうまくいきません。 どなたか、良いアドバイスをお願いします。 OSはFedoraCore4の英語バージョンです。 [root@Linux mysql-5.0.16]# ./configure --prefix=/usr/local/mysql --with-charset=ujis --with-extra-charset=all ------------------------------------------------- checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu 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 "character sets"... default: ujis, collation: ujis_japanese_ci; compiled in: ujis latin1 utf8 checking whether to compile national Unicode collations... yes checking whether build environment is sane... yes checking whether make sets $(MAKE)... (cached) yes checking for gawk... (cached) gawk checking for gcc... no checking for cc... no checking for cc... no checking for cl... no configure: error: no acceptable C compiler found in $PATH See `config.log' for more details. ----------------------------------------------------

  • phpのインストール

    fedora core1にphp4。3。6をインストール中です。 makeのターゲットの指定とはどうやったらいいのですか? [root@ocn src]# cd php-4.3.6 [root@ocn php-4.3.6]# ./configure --with-pgsql \ > --enable-mbstring \ > --enable-mbregex \ > --with-apxs=/opt/apache/bin/apxs creating cache ./config.cache checking host system type... i686-pc-linux-gnu checking for gcc... gcc checking whetherthe C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking whether gcc and cc understand -c and -o together... yes checking how to run the C preprocessor... gcc -E checking for AIX... no checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking for re2c... exit 0; checking for ranlib... ranlib checking whether ln -s works... yes checking for mawk... no checking for gawk... gawk checking for bison... no checking for byacc... no configure: warning: You will need bison if you want to regenerate the PHP parsers. checking for flex... lex checking for yywrap in -ll... no checking lex output file root... ./configure: line 2425: lex: command not found configure: error: cannot find output from lex; giving up You have new mail in /var/spool/mail/root [root@ocn php-4.3.6]# make make: *** ターゲットが指定されておらず、makefile が見つかりません. 中止。

  • redhat9でxineをインストールしようとして・・・

    redhat9でxineをインストールしようとしています。 xine-lib-1.0で「./configure」を実行すると、下記のエラーがでます。 checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu 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 for style of include used by make... GNU checking for gcc... no checking for cc... no checking for cc... no checking for cl... no configure: error: no acceptable C compiler found in $PATH See `config.log' for more details. gccがインストールされていないのかなと思い、「rpm -qa | grep gcc」とすると、 compat-gcc-7.3-2.96.118 libgcc-3.2.2-5 compat-gcc-c++-7.3-2.96.118 とでますので、パスが通ってないと思うのですが、違うのでしょうか?それともインストールされてないのでしょうか?ちなみに「echo $PATH」とすると /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin:/usr/lib と出ます。

  • vpopmailのインストール

    qmail関連ツールでvpopmailを入れようとしたところ./configureの部分で 詰まってしまいインストール出来ない状態です。 ./configure --enable-logging=p       --enable-relay-clear-minutes=30       --enable-roaming-users=y       --enable-tcpserver-file=/etc/tcpserver.d/smtp       --enable-default-domain=       --enable-hardquota=100000000 下記のメッセージが出てエラーになってしまいます。 --- loading cache ./config.cache checking for a BSD compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking whether make sets ${MAKE}... yes checking for working aclocal... missing checking for working autoconf... missing checking for working automake... missing checking for working autoheader... missing checking for working makeinfo... found checking host system type... i386-unknown-freebsd4.7 checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for ranlib... ranlib checking for POSIXized ISC... no checking how to run the C preprocessor... gcc -E checking for AIX... no No vpopmail user found. Please add the vchkpw group and vpopmail user. Then run configure again yes configure: error: No vpopmail user. --- No vpopmail user. <= ユーザーが作成されていない? # adduser -u 2009 -g vchkpw -d /usr/local/vpopmail -s /bin/false vpopmail ↑一応作ってあるのですが...