Movatterモバイル変換


[0]ホーム

URL:


LoginSignup
2

Go to list of users who liked

1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Scoop で Ruby をインストール後ちょっとハマった話

Posted at

はじめに

WindowsRubyのインストールと言えば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 の環境構築に成功した
  • 折れない心が重要だ
2

Go to list of users who liked

1
2

Go to list of comments

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2

Go to list of users who liked

1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?


[8]ページ先頭

©2009-2025 Movatter.jp