2
Go to list of users who liked
1
More than 1 year has passed since last update.
はじめに
Windows
でRuby
のインストールと言えばRubyInstaller
ですが、Crystal
をインストールするにはScoop
が必要なので、本格的に移行してみました。
bundle でハマった
Gemfile
でパッケージ管理が楽々が魅力のRuby
、しかしnative extensions
のインストールでエラーが発生。
Fetchinggemmetadatafromhttps://rubygems.org/.....Resolvingdependencies...Fetchingdebase0.2.5.beta2Installingdebase0.2.5.beta2withnativeextensions...Anerroroccurredwhileinstallingdebase(0.2.5.beta2),andBundlercannotcontinue.
ああ、MSYS2 and MINGW development toolchain
入れてないや。
ridk install でハマった
いつもお世話になっておりますridk
、いつものごとくridk install
っと。
ちょっと待って!、Cドライブ直下C:\msys64
にインストールしようとしている。
Scoop
のメリットは、ユーザディレクトリ直下のscoopフォルダ
にパッケージを入れることで環境を汚さない(汚れるのか?)ことだよ。
1-MSYS2baseinstallation2-MSYS2systemupdate(optional)3-MSYS2andMINGWdevelopmenttoolchainWhichcomponentsshallbeinstalled?IfunsurepressENTER[1,3]>sh-lctrueMSYS2seemstobeproperlyinstalledInstallMSYS2andMINGWdevelopmenttoolchain...>pacman-S--needed--noconfirmautoconfautogenautomake-wrapperdiffutilsfilegawkgreplibtoolm4makepatchsedtexinfotexinfo-texwgetmingw-w64-x86_64-binutilsmingw-w64-x86_64-crt-gitmingw-w64-x86_64-gccmingw-w64-x86_64-gcc-libsmingw-w64-x86_64-headers-gitmingw-w64-x86_64-libmangle-gitmingw-w64-x86_64-libwinpthread-gitmingw-w64-x86_64-makemingw-w64-x86_64-tools-gitmingw-w64-x86_64-winpthreads-gitpkgconfmingw-w64-x86_64-pkgconf
ここでは、pacman以降のコマンドをコピーしておき、ridk
は中止。
MinGW64 でハマった
user@XXXMINGW64~$pacman-S--needed--noconfirmautoconfautogenautomake-wrapperdiffutilsfilegawkgreplibtoolm4makepatchsedtexinfotexinfo-texwgetmingw-w64-x86_64-binutilsmingw-w64-x86_64-crt-gitmingw-w64-x86_64-gccmingw-w64-x86_64-gcc-libsmingw-w64-x86_64-headers-gitmingw-w64-x86_64-libmangle-gitmingw-w64-x86_64-libwinpthread-gitmingw-w64-x86_64-makemingw-w64-x86_64-tools-gitmingw-w64-x86_64-winpthreads-gitpkgconfmingw-w64-x86_64-pkgconfwarning:databasefilefor'clangarm64'doesnotexist(use'-Sy'todownload)warning:file-5.43-1isuptodate--skippingwarning:grep-1~3.0-6isuptodate--skippingwarning:sed-4.9-1isuptodate--skippingwarning:wget-1.21.3-2isuptodate--skippingerror:failedtopreparetransaction(couldnotfinddatabase)
Scoop
でインストールしたMinGW64
にコピペしたらエラー、'-Sy'
使えと言われる。
'-S'
の換わりに'-Sy'
を使用して無事インストール終了
最初のbundle
も無事インストール終了
まとめ
- scoop による ruby の環境構築に成功した
- 折れない心が重要だ
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme