積々RUNMIZZO

日々積み重ね

git cloneした後のbandle installできない奮闘記

git cloneしたファイルをbundle!おりゃ!

$ bundle install --path vendor/bundle

つらつら〜と表示された後

..
..
.
An error occurred while installing ffi (1.10.0), and
Bundler cannot continue.
Make sure that `gem install ffi -v '1.10.0' --source
'https://rubygems.org/'` succeeds before bundling.
..
..
.

まぁ何か起こる予感はしてたので、、

書かれてる通りコマンドしてみる
$ gem install ffi -v '1.10.0' --source'https://rubygems.org/'

..
..
.
ERROR:  While executing gem ... (OptionParser::MissingArgument)
    missing argument: --source
zsh: no such file or directory: https://rubygems.org/

そんなもんねぇよと怒られてるっぽい。。

ってことで先人様の知恵を拝借
【Rails/環境構築(M1)】bundle installで発生した`gem install ffi -v '1.12.2' --sourceエラーの対処方法 - 気ままに気ままのエンジニアブログ

$ rm Gemfile.lock
の後に
$ bundle install --path vendor/bundle

..
..
.
Bundle complete! 22 Gemfile dependencies, 93 gems now installed.
Bundled gems are installed into `./vendor/bundle`
Post-install message from rubyzip:
RubyZip 3.0 is coming!
**********************

The public API of some Rubyzip classes has been modernized to use named
parameters for optional arguments. Please check your usage of the
following classes:
  * `Zip::File`
  * `Zip::Entry`
  * `Zip::InputStream`
  * `Zip::OutputStream`

Please ensure that your Gemfiles and .gemspecs are suitably restrictive
to avoid an unexpected breakage when 3.0 is released (e.g. ~> 2.3.0).
See https://github.com/rubyzip/rubyzip for details. The Changelog also
lists other enhancements and bugfixes that have been implemented since
version 2.3.0.
Post-install message from sass:

Ruby Sass has reached end-of-life and should no longer be used.

* If you use Sass as a command-line tool, we recommend using Dart Sass, the new
  primary implementation: https://sass-lang.com/install

* If you use Sass as a plug-in for a Ruby web framework, we recommend using the
  sassc gem: https://github.com/sass/sassc-ruby#readme

* For more details, please refer to the Sass blog:
  https://sass-lang.com/blog/posts/7828841

Zipがどうこう出てるけど一旦起動するか確かめる。

$ rails s

rbenv: rails: command not found

The `rails' command exists in these Ruby versions:
  2.5.1
  2.6.6
  2.7.3
  3.0.0

railsのバージョンが無いのかな?
$ gem install rails -v 5.2.3←入れたいやつ

..
..
.
Done installing documentation for concurrent-ruby, i18n, thread_safe, tzinfo, activesupport, rack, rack-test, crass, racc, mini_portile2, nokogiri, loofah, rails-html-sanitizer, rails-dom-testing, builder, erubi, actionview, actionpack, activemodel, arel, activerecord, globalid, activejob, mini_mime, mail, actionmailer, nio4r, websocket-extensions, websocket-driver, actioncable, mimemagic, marcel, activestorage, thor, method_source, railties, sprockets, sprockets-rails, rails after 81 seconds
39 gems installed

いけたかな?
rails s
https://i.gyazo.com/32b7f6403735c93c18ecef0ecc21226d.jpg

良かった〜◎
Zipどうこうのところはまた不具合出たらまた書きます〜