2025/06/26

Trying to install and run neocities localy is like ...🤷🏻‍♂️

Got it like VM inside of VM trolol😆



UPDATE: So these are the steps inside of VM that was necessary to successfully resolve dependencies hell of Ruby

I HATE that language.🤫 It's so unreliable ecosystem ....

# Step into container        
0. vagrant ssh
# Installed required build tools and libraries for building Ruby
1. sudo apt install -y git curl build-essential libssl-dev libreadline-dev zlib1g-dev autoconf bison libyaml-dev libncurses5-dev libffi-dev libgdbm-dev

# Installed rbenv and set it up in the shell
2. git clone https://github.com/rbenv/rbenv.git ~/.rbenv
3. cd ~/.rbenv && src/configure && make -C src
4. echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
5. echo 'eval "$(rbenv init - bash)"' >> ~/.bashrc
6. exec $SHELL


# Installed Ruby 3.2.3 using ruby-build
7. git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
8. rbenv install 3.2.3

# Installed Bundler 2.6.3 for the new Ruby
9. rbenv global 3.2.3
10. gem install bundler -v 2.6.3

# Installed gem dependencies with specific Bundler version
11. bundle _2.6.3_ install

# Edited Gemfile and installed rackup
12. nano Gemfile
>> add "rackup" and "rackup"
13. bundle install

# Updated environment.rb to safely enable YJIT
14. nano environment.rb (edit)
    ``` 
    if RubyVM.const_defined?(:YJIT) && RubyVM::YJIT.respond_to?(:enable)
    RubyVM::YJIT.enable
    end
    ```

# Started the Rack app successfully
17.bundle exec rackup -o 0.0.0.0
        


It's not just

1. vagrant ssh
2. bundle exec rackup -o 0.0.0.0
        

As it was written at Github.

Remember my dear children, never use Ruby 「LOL」

Give me a favor next time, please use Rust 🦀 That's only two characters different.