• 締切済み

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. ----------------------------------------------------

  • MySQL
  • 回答数2
  • ありがとう数0

みんなの回答

noname#39970
noname#39970
回答No.2

>続いてパスの設定の方法を その前に gcc がどこに入っているのかを確認しないとならないと思う 多分 /usr/bin か /usr/local/bin だと思うけど find /usr | grep gcc とやってgccがどこにあるか確認してみたらどうだろう。 実際にはgccという文字が含まれるファイルが色々出てくるとは思うけど。 パスの設定は 自分で探してね http://www.google.co.jp/search?q=FedoraCore%20path%20%E8%A8%AD%E5%AE%9A&hl=ja&lr=lang_ja

noname#39970
noname#39970
回答No.1

gcc --version で何も出ないならパスが設定されてないと思う。

kataken001
質問者

補足

SAYKAさん 早速のご解答有難うございます。 実行結果は下記の通りです。 続いてパスの設定の方法をお教えいただければ幸いです。 [root@linux /]#gcc --version -bash:gcc:command not found

関連するQ&A

  • 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 と出ます。

  • FedoraCoreでのコンパイル失敗

    FC11でPoundというソフトウェアをインストールしようと思っています。 http://www.eitaro-saba.com/2006/07/pound-のインストール/ 上記のサイトを参考にインストールし ./configure --with-ssl=/usr/include/openssl/ からmakeのコマンドを打ったところで「make: *** ターゲットが指定されておらず, makefile も見つかりません. 中止.」というエラーが発生し、悩んでいます。 ./configure --with-ssl=/usr/include/openssl/を打ったあとは以下のような反応が返ってきています。 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 for a BSD-compatible install... /usr/bin/install -c checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu configure: *** Checking for threads library and/or flags *** 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 for joinable pthread attribute... PTHREAD_CREATE_JOINABLE checking if more special flags are required for pthreads... no checking for cc_r... gcc configure: *** Parsing options *** configure: *** Checking for libraries *** checking for dlopen in -ldl... yes checking for socket in -lsocket... no checking for hstrerror in -lresolv... yes checking for BIO_new in -lcrypto... no Missing OpenSSL (-lcrypto) - aborted どこが問題なのでしょうか?よろしくお願いします。

  • 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 何か前進するための知恵をお借りできませんでしょうか? よろしくお願い致します。

  • fodora10でのソフトウェアのインストール

    linux初心者です。 タイトルの通り、現在使用しているfedora10で、ソフトウェアのインストールができず、困っています。 具体的に言うと、xxx.tar.gzのようなものをインストールしようとすると、./configureのところで #./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 gawk... gawk checking for a BSD-compatible install... /usr/bin/install -c checking whether ln -s works... yes checking for ranlib... ranlib 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 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 wx-config... no configure: error: Please check that wx-config is in path, the directory where wxWindows libraries are installed (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH or equivalent variable and wxWindows is version 2.6.0 or above. のようになり、その後makeをすると # make make: *** ターゲットが指定されておらず, makefile も見つかりません. 中止. となってしまいます。./configure でエラーが出ている様なのですが、よく分かりません。 どなたか知っていましたら解決法を教えていただければありがたいです。お願いします。

  • configreがうまく行きません

    $cd /home/i/ダウンロード/litecoin-0.8.5.1-linux/bin/64/cpuminer-2.2.3 i/ダウンロード/litecoin-0.8.5.1-linux/bin/64/cpuminer-2.2.3$ ./configure checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu 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... gawk checking whether make sets $(MAKE)... yes checking whether to enable maintainer-specific portions of Makefiles... no checking for style of include used by make... GNU checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no 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 gcc option to accept ISO C99... -std=gnu99 checking how to run the C preprocessor... gcc -std=gnu99 -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking whether gcc -std=gnu99 needs -traditional... no checking whether gcc -std=gnu99 and cc understand -c and -o together... yes checking dependency style of gcc -std=gnu99... gcc3 checking for ranlib... ranlib 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 sys/endian.h usability... no checking sys/endian.h presence... no checking for sys/endian.h... no checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes checking syslog.h usability... yes checking syslog.h presence... yes checking for syslog.h... yes checking for sys/sysctl.h... yes checking whether be32dec is declared... no checking whether le32dec is declared... no checking whether be32enc is declared... no checking whether le32enc is declared... no checking for size_t... yes checking for working alloca.h... yes checking for alloca... yes checking for getopt_long... yes checking whether we can compile AVX code... yes checking whether we can compile XOP code... yes checking for json_loads in -ljansson... no checking for pthread_create in -lpthread... yes checking for gawk... (cached) gawk checking for curl-config... /usr/bin/curl-config checking for the version of libcurl... 7.32.0 checking for libcurl >= version 7.10.1... yes checking whether libcurl is usable... yes checking for curl_free... yes configure: creating ./config.status config.status: creating Makefile config.status: creating compat/Makefile config.status: creating compat/jansson/Makefile config.status: creating cpuminer-config.h config.status: cpuminer-config.h is unchanged config.status: executing depfiles commands この中になにかエラーがあるのかもしれませんが何が行けないのかわかりません。 Ubuntu64bitです。 Makefileも作成されません。

  • 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 宜しくお願い致します。

  • 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 ↑一応作ってあるのですが...

  • 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 が見つかりません. 中止。

  • Fedora Core3でApacheのインストール

    お世話になります。 これからLinuxを勉強しようと思い、Fedora Core3 をインストールをしまして、Apache2をFedora Core3の パッケージではなく、他のCDからインストールを しようとしましたら、うまくいかずに困っています。 原因はどのようなことなのでしょうか。 よろしくお願いいたします。 コマンド文はこのようになっていました。 [root@localhost httpd-2.0.50]# ./configure --enable-so checking for chosen layout... Apache checking for working mkdir -p... yes checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu Configuring Apache Portable Runtime library ... checking for APR... reconfig configuring package in srclib/apr now checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu Configuring APR library Platform: i686-pc-linux-gnu checking for working mkdir -p... yes APR Version: 0.9.5 checking for chosen layout... apr 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. configure failed for srclib/apr [root@localhost httpd-2.0.50]# make make: *** ターゲットが指定されておらず、makefile も見つかりません。中止。 [root@localhost httpd-2.0.50]#

  • Apacheのバージョンアップでエラー

    既存Apache2.2.15から2.2.22へマイナーバージョンアップをやってみたのですが、 途中でエラーが表示されてしまいました。 すみません。エラーの理由が分かれば教えていただけないでしょうか。 OSはCentOS6です。 #cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.bk(バックアップ) #/usr/bin/apachectl stop #tar zxvf ./httpd-2.2.22.tar.gz (ダウンロードしたものを展開) #cd httpd-2.2.22 #./configure --prefix=/etc/httpd #./configureまで来て、以下のエラーが表示されました。 又、makeをしようとしても当然configureの設定が終了していないので エラーになっていると思われます。 checking for chosen layout... Apache checking for working mkdir -p... yes checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu Configuring Apache Portable Runtime library ... checking for APR... reconfig configuring package in srclib/apr now checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu Configuring APR library Platform: i686-pc-linux-gnu checking for working mkdir -p... yes APR Version: 1.4.5 checking for chosen layout... apr checking for gcc... no checking for cc... no checking for cl.exe... no configure: error: in `/httpd-2.2.22/srclib/apr': configure: error: no acceptable C compiler found in $PATH See `config.log' for more details. configure failed for srclib/apr [root@web01 httpd-2.2.22]# make make: *** ターゲットが指定されておらず, makefile も見つかりません. 中止. あともう1点教えていただきたいです。 アップグレードが途中で失敗している状態なのですが、configureまでであれば、既存のApacheには 影響していないでしょうか?