Closed m-uesaka closed 2 months ago
WSL環境で確認を進めています。 make install_ryeはできましたが、次のmake install で下記のエラーが出て正常に進められません。
error: command 'clang' failed: No such file or directory
---
error: Installation of dependencies failed in venv at /mnt/c/Users/mi_ya/Documents/python/quizScattererRye/quizScatterer/.venv. uv exited with status: exit status: 2
make: *** [Makefile:9: install] Error 1
clangのインストールを試しましたが、こちらもうまくいきませんでした。
Err:1 http://security.ubuntu.com/ubuntu focal-updates/main amd64 libasan5 amd64 9.4.0-1ubuntu1~20.04
404 Not Found [IP: 91.189.91.82 80]
Ign:12 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 lib32stdc++6 amd64 10.3.0-1ubuntu1~20.04
Err:2 http://security.ubuntu.com/ubuntu focal-updates/main amd64 g++-9 amd64 9.4.0-1ubuntu1~20.04
404 Not Found [IP: 91.189.91.82 80]
Err:3 http://security.ubuntu.com/ubuntu focal-updates/main amd64 gcc-9 amd64 9.4.0-1ubuntu1~20.04
404 Not Found [IP: 91.189.91.82 80]
Err:4 http://security.ubuntu.com/ubuntu focal-updates/main amd64 libstdc++-9-dev amd64 9.4.0-1ubuntu1~20.04
404 Not Found [IP: 91.189.91.82 80]
Err:5 http://security.ubuntu.com/ubuntu focal-updates/main amd64 libgcc-9-dev amd64 9.4.0-1ubuntu1~20.04
404 Not Found [IP: 91.189.91.82 80]
Err:6 http://security.ubuntu.com/ubuntu focal-updates/main amd64 cpp-9 amd64 9.4.0-1ubuntu1~20.04
404 Not Found [IP: 91.189.91.82 80]
Err:7 http://security.ubuntu.com/ubuntu focal-updates/main amd64 gcc-9-base amd64 9.4.0-1ubuntu1~20.04
404 Not Found [IP: 91.189.91.82 80]
Err:8 http://security.ubuntu.com/ubuntu focal-updates/universe amd64 libobjc4 amd64 10.3.0-1ubuntu1~20.04
404 Not Found [IP: 91.189.91.82 80]
Err:9 http://security.ubuntu.com/ubuntu focal-updates/universe amd64 libobjc-9-dev amd64 9.4.0-1ubuntu1~20.04
404 Not Found [IP: 91.189.91.82 80]
Err:10 http://security.ubuntu.com/ubuntu focal-updates/main amd64 libc6-i386 amd64 2.31-0ubuntu9.7
404 Not Found [IP: 91.189.91.82 80]
Err:11 http://security.ubuntu.com/ubuntu focal-updates/main amd64 lib32gcc-s1 amd64 10.3.0-1ubuntu1~20.04
404 Not Found [IP: 91.189.91.82 80]
Err:12 http://security.ubuntu.com/ubuntu focal-updates/main amd64 lib32stdc++6 amd64 10.3.0-1ubuntu1~20.04
404 Not Found [IP: 91.189.91.82 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/gcc-9/libasan5_9.4.0-1ubuntu1~20.04_amd64.deb 404 Not Found [IP: 91.189.91.82 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/gcc-9/g++-9_9.4.0-1ubuntu1~20.04_amd64.deb 404 Not Found [IP: 91.189.91.82 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/gcc-9/gcc-9_9.4.0-1ubuntu1~20.04_amd64.deb 404 Not Found [IP: 91.189.91.82 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/gcc-9/libstdc++-9-dev_9.4.0-1ubuntu1~20.04_amd64.deb 404 Not Found [IP: 91.189.91.82 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/gcc-9/libgcc-9-dev_9.4.0-1ubuntu1~20.04_amd64.deb 404 Not Found [IP: 91.189.91.82 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/gcc-9/cpp-9_9.4.0-1ubuntu1~20.04_amd64.deb 404 Not Found [IP: 91.189.91.82 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/gcc-9/gcc-9-base_9.4.0-1ubuntu1~20.04_amd64.deb 404 Not Found [IP: 91.189.91.82 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/universe/g/gcc-10/libobjc4_10.3.0-1ubuntu1~20.04_amd64.deb 404 Not Found [IP: 91.189.91.82 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/universe/g/gcc-9/libobjc-9-dev_9.4.0-1ubuntu1~20.04_amd64.deb 404 Not Found [IP: 91.189.91.82 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/glibc/libc6-i386_2.31-0ubuntu9.7_amd64.deb 404 Not Found [IP: 91.189.91.82 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/gcc-10/lib32gcc-s1_10.3.0-1ubuntu1~20.04_amd64.deb 404 Not Found [IP: 91.189.91.82 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/gcc-10/lib32stdc++6_10.3.0-1ubuntu1~20.04_amd64.deb 404 Not Found [IP: 91.189.91.82 80]
問題切り分けのための質問ですが、上坂さんの環境ではclangコマンドを使えますか?
@miyax0227 こちらは clang
は使えてます.
% clang --version
Apple clang version 15.0.0 (clang-1500.1.0.2.5)
Target: x86_64-apple-darwin23.3.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
上のエラーで実行したのは $ sudo apt install build-essential
とかですかね?
@m-uesaka
clangのインストールはapt update で可能になりました。環境依存の問題でした。
getGensimModel.shの2行目、quizScatterer/gensim_model -> quizscatterer/gensim_model (Sを小文字に)
quizscatterer/gensim_model/.gitkeep を置いてください。 (フォルダ内に適当なファイルがないとgit clone時にフォルダが消えてしまうので。 フォルダが無いとcd quizscatterer/gensim_model で移動できません。 またはgetGensimModel.shでmkdirするという手もあります)
MeCabのパスがうまく通っていないのか、実行時以下のエラーが出ます。
------------------- ERROR DETAILS ------------------------
arguments: -d /usr/local/lib/mecab/dic/mecab-ipadic-neologd
default dictionary path: /mnt/c/Users/mi_ya/Documents/python/quizScattererRye/quizScatterer/.venv/lib/python3.12/site-packages/unidic/dicdir
[ifs] no such file or directory: /mnt/c/Users/mi_ya/Documents/python/quizScattererRye/quizScatterer/.venv/lib/python3.12/site-packages/unidic/dicdir/mecabrc
----------------------------------------------------------
以下のコマンドでmecabrcを作り出すことで回避できました。 デフォルトパスを変更する方法があればその方法の追記、なければ下記コマンドをMakefileに追記でお願いします。
mkdir ./.venv/lib/python3.12/site-packages/unidic/dicdir
touch ./.venv/lib/python3.12/site-packages/unidic/dicdir/mecabrc
@m-uesaka 上記の件はこちらで直しましたので、これでマージします。
やったこと
rye
を導入Makefile
でinstallとformatをできるようにした.チェックしてほしいこと
rye
が導入できれば,README.md
の指示の通り動くこと.