VirtualBoxにてUbuntu環境を整えて構文解析ツールKNPをインストールしようとすると
次のようなエラーがでました。皆様のお知恵を拝借させてください。
(base) <usr>@<usr>VirtualBox:~/knp-4.19$ make make: *** ターゲットが指定されておらず, makefile も見つかりません. 中止.
./configure コマンドにて確認すると、C compiler works... no(1)となっており
gccがうまく動作していないと考え、gccのインストール先を確認しましたが
問題なさそうでした(2)。
※missing: Unknown についてもよく理解しておりません。。。
よろしくお願い致します。
(1)
(base) <usr>@<usr>-VirtualBox:~/knp-4.19$ ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes /home/<usr>/knp-4.19/missing: Unknown `--is-lightweight' option Try `/home/<usr>/knp-4.19/missing --help' for more information configure: WARNING: 'missing' script is too old or missing checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking for gcc... /usr/local/bin/ccache-gcc checking whether the C compiler works... no configure: error: in `/home/<usr>/knp-4.19': configure: error: C compiler cannot create executables See `config.log' for more details
(2)which gcc にて確認。下記のディレクトリにインストールされていることを確認しました。profileも編集し、PATHの設定もしております。
makeも問題なさそうです。
(base) <usr>@<usr>-VirtualBox:~/knp-4.19$ which gcc /usr/bin/gcc
gccのインストール状態を確認しました。
(base)<usr>@<usr>-VirtualBox:~$ gcc --version gcc (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0 Copyright (C) 2017 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
makeの動作確認もしてみました。
(base) <usr>@<usr>-VirtualBox:~$ make --version GNU Make 4.1 このプログラムは x86_64-pc-linux-gnu 用にビルドされました Copyright (C) 1988-2014 Free Software Foundation, Inc. ライセンス GPLv3+: GNU GPL バージョン 3 以降 <http://gnu.org/licenses/gpl.html> これはフリーソフトウェアです: 自由に変更および配布できます. 法律の許す限り、 無保証 です.
回答2件
あなたの回答
tips
プレビュー