php5.6.32でConfigure Commandを編集するために、./configure ...を実行してみました。
実際に実行したコマンド
./configure --with-mysql=mysqlnd --with-apxs2=/Applications/MAMP/Library/bin/apxs --with-gd --with-jpeg-dir=/Applications/MAMP/Library --with-png-dir=/Applications/MAMP/Library --with-zlib --with-zlib-dir=/Applications/MAMP/Library --with-freetype-dir=/Applications/MAMP/Library --prefix=/Applications/MAMP/bin/php/php5.6.32 --exec-prefix=/Applications/MAMP/bin/php/php5.6.32 --sysconfdir=/Applications/MAMP/bin/php/php5.6.32/conf --with-config-file-path=/Applications/MAMP/bin/php/php5.6.32/conf --enable-ftp --enable-gd-native-ttf --with-bz2=/Applications/MAMP/Library --with-ldap --with-mysqli=mysqlnd --with-t1lib=/Applications/MAMP/Library --enable-mbstring=all --with-curl=/Applications/MAMP/Library --enable-sockets --enable-bcmath --with-imap=shared,/Applications/MAMP/Library/lib/imap-2007f --with-imap-ssl=/Applications/MAMP/Library --enable-soap --with-kerberos --enable-calendar --with-pgsql=shared,/Applications/MAMP/Library/pg --enable-exif --with-libxml-dir=/Applications/MAMP/Library --with-gettext=shared,/Applications/MAMP/Library --with-xsl=/Applications/MAMP/Library --with-pdo-mysql=mysqlnd --with-pdo-pgsql=shared,/Applications/MAMP/Library/pg --with-mcrypt=shared,/Applications/MAMP/Library --with-openssl=/Applications/MAMP/Library --enable-zip --with-iconv=/Applications/MAMP/Library --enable-opcache --enable-intl --with-tidy=shared --with-icu-dir=/Applications/MAMP/Library --enable-wddx --with-libexpat-dir=/Applications/MAMP/Library --with-readline --with-mhash CFLAGS=-arch LDFLAGS=-arch LIBS=-lresolv YACC=/Applications/MAMP/Library/bin/bison CXXFLAGS=-arch
エラー内容(config.logより)
... InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin configure:3886: $? = 0 configure:3875: cc -V >&5 clang: error: argument to '-V' is missing (expected 1 value) clang: error: no input files configure:3886: $? = 1 configure:3875: cc -qversion >&5 clang: error: unknown argument: '-qversion' clang: error: no input files configure:3886: $? = 1 configure:3906: checking whether the C compiler works configure:3928: cc -arch -arch conftest.c -lresolv >&5 clang: error: invalid arch name '-arch -arch' configure:3932: $? = 1 configure:3970: result: no configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:3975: error: in `/Applications/MAMP/bin/php/php5.6.32': configure:3977: error: C compiler cannot create executables ...
いくつかのサイトを調べましたがなかなか解決できずに詰まっています。
どうしたら良いのでしょうか。
環境
macOS Mojave バージョン10.14
cc --version
Apple LLVM version 9.1.0 (clang-902.0.39.2) Target: x86_64-apple-darwin18.0.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
cc -qversion
clang: error: unknown argument: '-qversion' clang: error: no input files
実際に実行したコマンドをそのまま質問本文にご提示ください
申し訳ございません。記載しました。
たぶんもう調べていらっしゃると思いますが
unknown argument: '-qversion'
について調べた結果も追記していただけますか
cc --version と cc -qversion を実行した結果を記載しました。-qversionというのは初めて聞くのですが、この捉え方でいいのでしょうか。。
エラー内容(config.logより) の7行目に
下記のメッセージがあったのでここを調べたのかな?と思って
お聞きしました。
clang: error: unknown argument: '-qversion'
それより前にも
clang: error: argument to '-V' is missing (expected 1 value)
と出ていて
これらのメッセージについてなにか思い当たる点はないでしょうか
>いくつかのサイトを調べましたが
とありましたが、この部分はなにも手がかりはありませんでしたか?
clang: error: unknown argument: '-qversion'
こちらに関しては
https://github.com/tmux/tmux/issues/601
このサイトで拝見しましたが、exportの時点でうまく行かず、
clang: error: argument to '-V' is missing (expected 1 value)
に関しては
https://kotaeta.com/57329792
こちらのサイトを拝見しましたが、gccもきちんと入っているのに依然としてエラーが消えないので、どこを解消すればよいのかわからない状況です。
よくわからず申し訳ございません。
回答1件
あなたの回答
tips
プレビュー