Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Some small maintenance updates. #4

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ sudo apt update
sudo apt -y full-upgrade

# make sure we have the required libraries and tools already installed before starting.
sudo apt install -y build-essential gettext libssl-dev libreadline-dev zlib1g-dev sqlite3 libsqlite3-dev libgtk2.0-0 libbz2-dev sublime-text libxml2-dev libdb-dev gedit pcmanfm ccache
sudo apt install -y build-essential curl gettext libssl-dev libreadline-dev zlib1g-dev sqlite3 libsqlite3-dev libgtk2.0-0 libbz2-dev sublime-text libxml2-dev libdb-dev gedit pcmanfm ccache

# install winbind and support lib to ping WINS hosts
sudo apt install -y winbind libnss-winbind
Expand Down Expand Up @@ -59,13 +59,13 @@ echo $'bundler\nsass\nscss_lint\nrails\nrspec\nrspec-rails' > ~/.rbenv/default-g
# set up .gemrc to avoid installing documentation for each gem...
echo "gem: --no-document" > ~/.gemrc
# install the required ruby version and set as default
rbenv install 2.4.2
rbenv global 2.4.2
rbenv install 2.4.3
rbenv global 2.4.3

# we need to erase 2 files temporarily (they will be regenerated) otherwise the installation will pause for overwrite confirmation
# These are the 'ri' and 'rdoc' scripts
rm ~/.rbenv/versions/2.4.2/bin/rdoc
rm ~/.rbenv/versions/2.4.2/bin/ri
rm ~/.rbenv/versions/2.4.3/bin/rdoc
rm ~/.rbenv/versions/2.4.3/bin/ri
# now update RubyGems and the default gems
gem update --system
gem update
Expand Down Expand Up @@ -117,8 +117,8 @@ fi
# source perlbrew setup so we can use in this shell
source ~/perl5/perlbrew/etc/bashrc
# Currently the tests will fail under WSL so we dont run them. Needs further investigation.
perlbrew install perl-5.27.1 --notest
perlbrew switch perl-5.27.1
perlbrew install perl-5.27.9 --notest
perlbrew switch perl-5.27.9
perlbrew install-cpanm
# set up some cpan configuration
(echo y; echo o conf auto_commit 1; echo o conf yaml_module YAML::XS; echo o conf use_sqlite yes; echo o conf commit) | cpan
Expand Down