mise deploy:dev failed: 55.68 Installing selenium-webdriver 4.40.0 89.52 Installing…
- User
mise deploy:dev failed: 55.68 Installing selenium-webdriver 4.40.0 89.52 Installing tailwindcss-ruby 4.1.18 (aarch64-linux-gnu) 89.93 Gem::Ext::BuildError: ERROR: Failed to build gem native extension. 89.93 89.93 current directory: /usr/local/bundle/ruby/4.0.0/gems/psych-5.3.1/ext/psych 89.93 /usr/local/bin/ruby extconf.rb 89.93 checking for pkg-config for yaml-0.1... not found 89.93 checking for yaml.h... no 89.93 yaml.h not found 89.93 *** extconf.rb failed *** 89.93 Could not create Makefile due to some reason, probably lack of necessary 89.93 libraries and/or headers. Check the mkmf.log file for more details. You may 89.93 need configuration options. 89.93 89.93 Provided configuration options: 89.93 --with-opt-dir 89.93 --without-opt-dir 89.93 --with-opt-include={opt-dir}/lib 89.93 --without-opt-lib 89.93 --with-make-prog 89.93 --without-make-prog 89.93 --srcdir=. 89.93 --curdir 89.93 --ruby=/usr/local/bin/{yaml-0.1-dir}/include 89.93 --without-yaml-0.1-include 89.93 --with-yaml-0.1-lib={libyaml-dir}/include 89.93 --without-libyaml-include 89.93 --with-libyaml-lib=${libyaml-dir}/lib 89.93 --without-libyaml-lib 89.93 89.93 To see why this extension failed to compile, please check the mkmf.log which can 89.93 be found here: 89.93 89.93 /usr/local/bundle/ruby/4.0.0/extensions/aarch64-linux/4.0.0/psych-5.3.1/mkmf.log 89.93 89.93 extconf failed, exit code 1 89.93 89.93 Gem files will remain installed in /usr/local/bundle/ruby/4.0.0/gems/psych-5.3.1 89.93 for inspection. 89.93 Results logged to 89.93 /usr/local/bundle/ruby/4.0.0/extensions/aarch64-linux/4.0.0/psych-5.3.1/gem_make.out 89.93
Assistant
The build is failing because the
psychgem (Ruby's YAML library) needs thelibyamldevelopment headers to compile. Let me check your Dockerfile and fix it.Assistant
I found the issue! The
developmentstage in your Dockerfile is missinglibyaml-dev, which is required to compile thepsychgem. The production build stage has it (line 35), but the development stage doesn't.Let me fix this:
- User
[Request interrupted by user]
- User
just add it later - that way we donÄt need to rerun the expensive step on a slow line!
Assistant
Good thinking! Let me revert that change and add
libyaml-devright before thebundle installstep instead:Assistant
Perfect! I've added
libyaml-devas a separate step right beforebundle install. This way Docker's layer cache won't invalidate the expensive earlier steps (Docker CLI install, etc.). Now you can rebuild and it'll only re-run from that point forward.