Closed jamesgecko closed 2 years ago
Getting the exact same issue here on Manjaro Linux, latest version of ruby. I'm not familiar with ruby so I don't know how to utilize #34.
Same on Windows 10 with "gem install neocities" and "gem install --no-document neocities". Full Ruby devkit install (tried it with 64 and 32 versions) with "gem update --system" "gem install rake". Also tried the older version of neocities down to 0.0.11
Temporarily enhancing PATH for MSYS/MINGW...
Building native extensions. This could take a while...
ERROR: Error installing neocities:
ERROR: Failed to build gem native extension.
current directory: E:/Ruby31/lib/ruby/gems/3.1.0/gems/neocities-0.0.15/ext
E:/Ruby31/bin/ruby.exe mkrf_conf.rb
mkrf_conf.rb:4:in `<main>': uninitialized constant Gem::Command (NameError)
Gem::Command.build_args = ARGV
^^^^^^^^^
rake failed, exit code 1
Gem files will remain installed in E:/Ruby31/lib/ruby/gems/3.1.0/gems/neocities-0.0.15 for inspection.
Results logged to E:/Ruby31/lib/ruby/gems/3.1.0/extensions/x86-mingw32/3.1.0/neocities-0.0.15/gem_make.out
For anyone else having this issue, I spent hours trying to get the neocities CLI to work using Ruby 3.1 and kept getting this same error no matter what I tried, using #34 , using the instructions given by Jamesgecko, everything. I finally decided to do a fresh install of Ruby for version 2.7.5 with the devkit, and just simply using "gem install neocities" worked like a charm on the first try.
Use Ruby 2.7.5 without any problem
I merged #34 which will hopefully solve this.
I get a compilation error when installing this CLI gem.
I'm using an M1 MacBook running macOS 12.2. Ruby 3.1.0p0 (installed via MacPorts).