maybe icon indicating copy to clipboard operation
maybe copied to clipboard

Some Windows error stopping me from running the app

Open hyoretsu opened this issue 1 year ago • 5 comments

/usr/lib/ruby/3.0.0/bundler/dsl.rb:360:in block in normalize_options': windows` is not a valid platform. The available options are: [:ruby, :ruby_18, :ruby_19, :ruby_20, :ruby_21, :ruby_22, :ruby_23, :ruby_24, :ruby_25, :ruby_26, :mri, :mri_18, :mri_19, :mri_20, :mri_21, :mri_22, :mri_23, :mri_24, :mri_25, :mri_26, :rbx, :truffleruby, :jruby, :jruby_18, :jruby_19, :mswin, :mswin_18, :mswin_19, :mswin_20, :mswin_21, :mswin_22, :mswin_23, :mswin_24, :mswin_25, :mswin_26, :mswin64, :mswin64_19, :mswin64_20, :mswin64_21, :mswin64_22, :mswin64_23, :mswin64_24, :mswin64_25, :mswin64_26, :mingw, :mingw_18, :mingw_19, :mingw_20, :mingw_21, :mingw_22, :mingw_23, :mingw_24, :mingw_25, :mingw_26, :x64_mingw, :x64_mingw_20, :x64_mingw_21, :x64_mingw_22, :x64_mingw_23, :x64_mingw_24, :x64_mingw_25, :x64_mingw_26] (Bundler::GemfileError)

hyoretsu avatar Feb 05 '24 22:02 hyoretsu

Does it work if you run bundle lock --add-platform x64-mingw-ucrt ?

There is a PR that adds windows support but the above may get you unstuck.

robzolkos avatar Feb 05 '24 22:02 robzolkos

Don't think it did, I got thet same error. I'm actually getting stuck in various steps along the way (Tried running normally, using docker build, docker compose, running as sudo, etc). I get

/snap/ruby/324/lib/ruby/3.3.0/mkmf.rb:480:in `try_do': The compiler failed to generate an executable file.
(RuntimeError)
You have to install development tools first.

On bundle install. Maybe it's because I installed Ruby with Snap.

Just for the record though, I'm not using Windows. I'm trying to run it self-hosted on an EC2 Instance.

hyoretsu avatar Feb 05 '24 22:02 hyoretsu

Ah gotcha. The error message threw me off. Do you get an error building the docker image?

robzolkos avatar Feb 05 '24 22:02 robzolkos

I ended up being able to build the docker image with sudo docker build -t maybe . but when I ran the image I couldn't start it as it was perma exitted. Another time I got something about a secretkey I think, which was invalid.

hyoretsu avatar Feb 05 '24 23:02 hyoretsu

In general I've always stepped devs away from running rails apps in Windows. Instead I recommend using WSL to run Ubuntu on the Windows machine and run the rails app through it. It's generally a simple setup, though I haven't tried with this particular app.

bschrag620 avatar Feb 06 '24 00:02 bschrag620