• 締切済み

configureできません

macminiで、 OSはmac os X 10.5を使っています。 tarをした後、 ./configureで設定しようとするのですが、 下記内容がはきだされます。 NOTE: This is a MySQL binary distribution. It's ready to run, you don't need to configure it! To help you a bit, I am now going to create the needed MySQL databases and start the MySQL server for you. If you run into any trouble, please consult the MySQL manual, that you can find in the Docs directory. ./scripts/mysql_install_db: line 204: ./bin/my_print_defaults: cannot execute binary file Neither host 'hoge-no-mac-mini.local' nor 'localhost' could be looked up with ./bin/resolveip Please configure the 'hostname' command to return a correct hostname. If you want to solve this at a later stage, restart this script with the --force option ファイルとかも見てみたのですがどうもよくわかりません。 よろしくお願いします。

みんなの回答

  • narusuji
  • ベストアンサー率40% (4/10)
回答No.1

NOTE: This is a MySQL binary distribution. It's ready to run, you don't need to configure it! NOTE:このMySQLはバイナリです。動く準備が出来ています、configureする必要はありません。 と言われているので./configureする必要は無いのではないでしょうか? ソースからバイナリを作る過程で、./configureとmakeが必要になると思います。 Macを使った事が無いのでよく分かりませんが、間違っていたらごめんなさい。

burafu
質問者

お礼

ありがとうございます。

全文を見る
すると、全ての回答が全文表示されます。

関連するQ&A

  • MySQLのインストール

    freebsdでmysql 4.1.10のインストールをしているのですが、 shell> groupadd mysql shell> useradd -g mysql mysql shell> cd /usr/local shell> gunzip < /path/to/mysql-VERSION-OS.tar.gz | tar xvf - shell> ln -s full-path-to-mysql-VERSION-OS mysql shell> cd mysql shell> scripts/mysql_install_db --user=mysql ↑ ここで /usr/libexec/ld-elf.so.1: Shared object "liblthread.so.2" not found Neither host 'www.xxxxx.co.jp' nor 'localhost' could be looked up with ./bin/resolveip Please configure the 'hostname' command to return a correct hostname. If you want to solve this at a later stage, restart this script with the --force option とでます。これは何がいけないのでしょうか? また、install以前にconfigureも設定しようとするとエラーがでて困ってます。

  • PHPのconfigureでmysqlエラーが

    CentOS 5 x86_64上でapache+php+mysqlのサーバ構築中ですが、どうもうまくいきません。 apacheとphpでconfigureのオプションを付けてインストールしたいので、rpm -eでhttpdとphpをアンインストールしたうえで、apacheとphpをmake installしようとしました。 apacheはうまくinstallできたのですが、phpはconfigureでエラーが出てしまいます。 以前Cent OS 5.2(32bit)でやった時は問題なかったのですが・・・ ↓configure時のエラーメッセージ -------------------- checking for mSQL support... no checking for MSSQL support via FreeTDS... no checking for MySQL support... yes checking for specified location of the MySQL UNIX socket... no checking for MySQL UNIX socket location... /var/lib/mysql/mysql.sock checking for mysql_close in -lmysqlclient... no checking for mysql_error in -lmysqlclient... no configure: error: mysql configure failed. Please check config.log for more information. -------------------- ↓config.logのエラーメッセージ -------------------- configure:60440: checking for mysql_error in -lmysqlclient configure:60459: gcc -o conftest -I/usr/include -g -O2 -Wl,-rpath,/usr/lib/mysql -L/usr/lib/mysql -L/usr/lib -Wl,-rpath,/usr/kerberos/lib64 -L/usr/kerberos/lib64 -Wl,-rpath,/usr -L/usr conftest.c -lmysqlclient -lz -lfreetype -lpng -lz -ljpeg -lcurl -lz -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lssl -lcrypto -ldl -lz -lcurl -ldl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lidn -lssl -lcrypto -lz -lxml2 -lz -lm 1>&5 /usr/bin/ld: skipping incompatible /usr/lib/mysql/libmysqlclient.so when searching for -lmysqlclient /usr/bin/ld: skipping incompatible /usr/lib/mysql/libmysqlclient.a when searching for -lmysqlclient /usr/bin/ld: cannot find -lmysqlclient collect2: ld returned 1 exit status configure: failed program was: #line 60448 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char mysql_error(); -------------------- ↓apacheのconfigure ------------------------- ./configure --enable-layout=Apache --disable-autoindex --disable-status --disable-userdir --enable-modules=so --enable-mods-shared=max --enable-ssl --with-ssl=/usr/share/ssl --enable-rewrite=shared --enable-ext-filter ------------------------- ↓phpのconfigure ------------------------- ./configure --with-apxs2=/usr/local/apache2/bin/apxs --enable-mbstring --enable-mbregex --enable-gd-native-ttf --with-gd --with-ttf --with-jpeg-dir --with-freetype-dir --with-png-dir --with-zlib --with-curl --with-openssl --with-mysql ------------------------- バージョンは apache:2.2.11 php:5.2.10, 5.3.0の両方で試しましたが結果は同じ mysql-5.0.45-7.el5.x86_64 mysql-devel-5.0.45-7.el5.x86_64 です。 どなたかご教授いただけますと助かります・・・

  • MYSQLのデータベース初期化ができません

    SentOS上でMYSQLをインストールしたいのですが、 データベース初期化時に下記のメッセージが出力され、 書籍では作成されると書いてある「var」フォルダが 作成されません。 [root@2 usr]# /usr/local/mysql/bin/mysql_install_db --user=mysql Installing MySQL system tables... OK Filling help tables... OK To start mysqld at boot time you have to copy support-files/mysql.server to the right place for your system PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER ! To do so, start the server, then issue the following commands: /usr/local/mysql/bin/mysqladmin -u root password 'new-password' /usr/local/mysql/bin/mysqladmin -u root -h 2.0.168.192.in-addr.arpa password 'new-password' Alternatively you can run: /usr/local/mysql/bin/mysql_secure_installation which will also give you the option of removing the test databases and anonymous user created by default. This is strongly recommended for production servers. See the manual for more instructions. You can start the MySQL daemon with: cd /usr/local/mysql ; /usr/local/mysql/bin/mysqld_safe & You can test the MySQL daemon with mysql-test-run.pl cd mysql-test ; perl mysql-test-run.pl Please report any problems with the /usr/local/mysql/bin/mysqlbug script! The latest information about MySQL is available on the web at http://www.mysql.com Support MySQL by buying support/licenses at http://shop.mysql.com どなたか対処方が分る方教えて下さい。 よろしくお願いいたします。

  • PHPのconfigureについて

    PHP5.2.6をインストールしようとしているのですが、configureコマンドの所で躓いています 実行しているconfigureオプションは以下の通りです。 ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-gd --with-zlib --enable-bcmath --enable-mbregex --enable-mbstring とすると configure: error: libpng.(a|so) not found. となります。 yum install libpngとすると Package 2:libpng-1.2.10-7.1.el5_3.2.i386 already installed and latest version となるので最新版のようです。 このconfigure: error: libpng.(a|so) not found.を克服する術を教えて頂けると助かります。 何卒よろしくお願いします。

    • ベストアンサー
    • PHP
  • PHPのconfigureのオプションにつきまして

    日頃WindowsメインでLinuxをあまり使わない者です。 今回、とある理由でCentOS5.5にPHP5.2とMySQL4.0の環境を作る必要が出てきました。それで、それらをソースからコンパイルしてインストールしてみたのですが、PHPのmysql_connect()で以下のようなエラーが出て、原因がわからず困っています。 Can't connect to local MySQL server through socket '/tmp/mysql.sock' (13) PHPもMySQLも単体では正常に動いているようです。データベースも作れました。 それで色々調べていたのですが、/tmp/mysql.sockのアクセス権限を777にしたり、 PHPとMySQLが/tmp/mysql.sockを介する設定になっているかを確認しましたが、いずれも問題無さそうです。 それで、phpinfo()の結果をさくらサーバーのそれと比べてみたところ、 Configure Commandのところが全然違うことがわかりました。 今回構築した環境では、 './configure' '--with-apxs2=/usr/sbin/apxs' '--with-mysql=/usr/local/mysql' ですが、 さくらサーバーは、 './configure' '--prefix=/usr/local/php/5.2' '--with-config-file-path=${prefix}/etc' '--with-config-file-scan-dir=${prefix}/etc/conf.d' '--enable-force-cgi-redirect' '--with-openssl=/usr/local/ssl' '--with-zlib=/usr' '--with-curl' '--enable-exif' '--with-pcre-dir=/usr/local' '--with-gd' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr/local' '--with-ttf' '--with-freetype-dir=/usr/local' '--with-gettext=/usr/local' '--with-gmp=/usr/local' '--with-iconv=/usr/local' '--enable-mbstring' '--with-mcrypt' '--with-mysql=/usr/local' '--with-mysqli=/usr/local/bin/mysql_config' '--with-pdo-mysql=/usr/local' '--with-snmp=/usr/local' '--enable-soap' '--with-xsl=/usr/local' '--enable-zip' と非常に多いです。 これらは関係あるでしょうか。初歩的な質問で恐縮ですが、ご存知の方がいらっしゃいましたら、ご教示いただけましたら助かります。 よろしくお願いします。

    • ベストアンサー
    • PHP
  • php-5.3.3のconfigureでエラー

    RHEL6にPHP5.3.3をソースインストール(訳あってrpmを使えない)しようとすると 下記のエラーが出て困ってます。 configure: error: DBA: Could not find necessary header file(s). configureは下記を指定してます。RHEL5.5ではOKだったのに6では通らない。 インストールされているパッケージが原因かと思っているのですが、情報が 見当たらず前に進めません。 同じ状況になった方助言をお願いします。 OS:Red Hat Enterprise Linux Server release 6.0 (Santiago) PHP:php-5.3.3.tar.gz configure:./configure \ --enable-track-vars \ --enable-trans-sid \ --with-mysql=/usr/local/mysql \ --with-gdbm \ --disable-debug --with-apxs2=/usr/local/apache/bin/apxs \ --enable-mbstring \ --enable-mbstr-enc-trans \ --with-mcrypt=/usr/local/lib \ --with-ldap=/usr ※Apache2、mysql、mcryptは正常にインストールされてます。 宜しくお願いします。

  • ./configureがうまくできない

    昨日、Fedora Core 1をワークステーションタイプでインストールしました。 そのPCにシーラカンス本を見ながらPstgresql7.1.1をインストールしようとし、 ./configure --enable-multibyte=EUC_JP --enable-syslog をしたところ。やたら...noという表示が流れ最後に checking types of arguments for accept()... configure: error: could not determine argument types と出てきました。 makeをしてみると、 You need to run the 'configure' program first. See the file と表示されます。 どうすればこの状況を回避できるのでしょうか? よろしくおねがします。

  • サーバーに複数のMySQLをインストールしたい

    はじめまして。 MySQL初心者です。 現在、我がサーバーにはMySQLの4.1系が既にインストールされています。 ここに4.0.26を新たにインストールしたいのですが、 なかなかうまくいきません。 ./configure \ --prefix=/usr/local/mysql4.0 \ --with-charset=ujis \ --with-extra-charsets=all \ --with-mysqld-user=mpc \ --with-tcp-port=3307 \ --with-unix-socket-path=/tmp/mysql4.sock としてmake→make testを実行した時にsuccessfulが最後に出てくれず、 悩んでます。 configureの際に configure: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used. Warning: extra-tools disabled because --enable-thread-safe-client wasn't used という出力がありました。 わかる方がいらっしゃいましたら宜しくお願い申し上げます。

  • 解釈あってますでしょうか?

    以下の文の"If you would like to proceed with this order"という部分ですが、「もし注文を完了したいなら」ということで、 現時点では注文できていないという解釈で合ってますでしょうか? よろしくお願いします。 Thank you for your order, unfortunately we are unable to process the payment details. If you would like to proceed with this order, then please do not hesitate to get in contact with us.

  • postgres9のconfigureでエラー

    Solaris10にpostgres9.0.5をインストールしようとしています。 Solarisには現時点での最新パッチが当たっている状態です(詳細はちょっと不明) 以下のオプションでconfigureを行うと、エラーになります。 ./configure --prefix=/usr/local/postgres --without-readline --enable-thread-safety 以下エラー --------------------------------------------------------------- checking thread safety of required library functions... no configure: error: thread test program failed This platform is not thread-safe. Check the file 'config.log' or compile and run src/test/thread/thread_test for the exact reason. Use --disable-thread-safety to disable thread safety. --------------------------------------------------------------- config.logの中のエラーの内容 --------------------------------------------------------------- configure:28765: checking thread safety of required library functions configure:28798: gcc -m64 -o conftest -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wend if-labels -fno-strict-aliasing -fwrapv -pthreads -pthreads -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -D IN_CONFIGURE conftest.c -lz -lnsl -lsocket -lm -lpthread -lpthread >&5 Undefined first referenced symbol in file sched_yield /var/tmp//ccVp73Io.o collect2: ld returned 1 exit status ld: fatal: symbol referencing errors. No output written to conftest configure:28802: $? = 1 configure: program exited with status 1 --------------------------------------------------------------- thread-safetyを無効にすれば正常にインストールできます。 このエラーを回避するにはどうすればよいでしょうか? あまり参考にはならない情報かもしれませんが、9.0.4/9.1.1でも同様のエラーが出ます。