Skip to content

Instantly share code, notes, and snippets.

@kolosek
Created November 3, 2023 22:23
Show Gist options
  • Save kolosek/d7d960916d2fef6e07e59bc9bc01ecbb to your computer and use it in GitHub Desktop.
Save kolosek/d7d960916d2fef6e07e59bc9bc01ecbb to your computer and use it in GitHub Desktop.

Revisions

  1. kolosek created this gist Nov 3, 2023.
    27 changes: 27 additions & 0 deletions ubuntu-asdf.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,27 @@
    sudo apt install make gcc dirmngr gpg curl gawk zlib1g-dev libssl-dev unzip
    sudo apt-get install autoconf bison patch build-essential rustc libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libgmp-dev libncurses5-dev libffi-dev libgdbm6 libgdbm-dev libdb-dev uuid-dev


    wget https://www.openssl.org/source/openssl-1.1.1g.tar.gz
    tar zxvf openssl-1.1.1g.tar.gz
    cd openssl-1.1.1g/
    ./config --prefix=$HOME/.openssl/openssl-1.1.1g --openssldir=$HOME/.openssl/openssl-1.1.1g
    make install
    rm -rf ~/.openssl/openssl-1.1.1g/certs
    ln -s /etc/ssl/certs ~/.openssl/openssl-1.1.1g/certs

    #ASDF ruby manager

    git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.10.2

    echo '. $HOME/.asdf/asdf.sh' >> ~/.bashrc
    echo '. $HOME/.asdf/completions/asdf.bash' >> ~/.bashrc

    source ~/.bashrc
    echo 'Please reload terminal before moving on'


    #Troubleshooting:
    #bundle exec rails s
    #/usr/bin/env: ‘ruby_executable_hooks’: No such file or directory
    #sudo gem install --user-install executable-hooks