|
## for Linux (Ubuntu, Mint) |
|
|
|
mkdir ~/workspace |
|
cd ~/workspace |
|
sudo apt-get update |
|
|
|
### Homebrew for Linux |
|
sudo apt-get install build-essential curl file git |
|
sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)" |
|
|
|
### Anaconda for Python |
|
sudo apt install -y libffi-dev libssl-dev libbz2-dev zlib1g-dev libreadline-dev libsqlite3-dev # Install dependencies |
|
git clone https://github.com/yyuu/pyenv.git ~/.pyenv |
|
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc |
|
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc |
|
echo 'eval "$(pyenv init -)"' >> ~/.bashrc |
|
source ~/.bashrc |
|
pyenv -v |
|
pyenv install -l | grep anaconda # Check version list |
|
pyenv install anaconda3-5.3.1 |
|
pyenv global anaconda3-5.3.1 |
|
echo 'export PATH="$PYENV_ROOT/versions/anaconda3-5.3.1/bin:$PATH"' >> ~/.bashrc |
|
source ~/.bashrc |
|
conda update conda |
|
|
|
### Java, Kotlin, Scala, Gradle, sbt (https://sdkman.io/install) |
|
apt install -y curl unzip zip |
|
curl -s "https://get.sdkman.io" | bash |
|
source "$HOME/.sdkman/bin/sdkman-init.sh" |
|
sdk version |
|
sdk install java |
|
java -version |
|
sdk install kotlin |
|
kotlin -version |
|
sdk install scala |
|
scala -version |
|
sdk install gradle |
|
gradle -version |
|
sdk install sbt |
|
sbt --version |
|
|
|
# .NETCore (C#, F#) (https://docs.microsoft.com/ja-jp/dotnet/core/install/sdk?pivots=os-linux#download-and-manually-install) |
|
# Download binary from https://dotnet.microsoft.com/download/dotnet-core/3.1 |
|
mkdir -p $HOME/dotnet && tar zxf dotnet-sdk-3.1.102-linux-x64.tar.gz -C $HOME/dotnet |
|
echo 'export DOTNET_ROOT=$HOME/dotnet' >> ~/.bashrc |
|
echo 'export PATH=$PATH:$HOME/dotnet' >> ~/.bashrc |
|
source ~/.bashrc # Reflect .bashrc |
|
|
|
### mono (https://www.mono-project.com/download/stable/) |
|
#sudo apt install gnupg ca-certificates |
|
#sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF |
|
#echo "deb https://download.mono-project.com/repo/ubuntu stable-bionic main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list |
|
#sudo apt update |
|
#sudo apt install -y mono-devel |
|
#mono --version |
|
#mcs --version |
|
#csc -version |
|
|
|
|
|
# Swift (https://swift.org/download/) |
|
wget https://swift.org/builds/swift-5.1.3-release/ubuntu1804/swift-5.1.3-RELEASE/swift-5.1.3-RELEASE-ubuntu18.04.tar.gz |
|
tar -zxvf swift-5.1.3-RELEASE-ubuntu18.04.tar.gz |
|
sudo mv swift-5.1.3-RELEASE-ubuntu18.04 /usr/share/swift |
|
echo 'export PATH="$PATH:/usr/share/swift/usr/bin"' >> ~/.bashrc |
|
source ~/.bashrc # Reflect .bashrc |
|
swift -v |
|
# sudo apt remove libc6-dbg # swift起動時にエラーが出る場合: https://bugs.swift.org/browse/SR-8690 |
|
|
|
### Node.js, Typescript |
|
|
|
### Dart, Flutter (https://flutter.dev/docs/get-started/install/linux) |
|
wget https://storage.googleapis.com/flutter_infra/releases/stable/linux/flutter_linux_v1.12.13+hotfix.5-stable.tar.xz |
|
tar xf flutter_linux_v1.12.13+hotfix.5-stable.tar.xz |
|
sudo mv flutter_linux_v1.12.13+hotfix.5-stable.tar.xz ~/flutter |
|
echo 'export "PATH="$PATH:$HOME/flutter/bin"' >> ~/.bashrc |
|
source ~/.bashrc # Reflect .bashrc |
|
flutter precache |
|
flutter doctor |
|
dart --version |
|
|
|
### Ruby |
|
brew install rbenv |
|
echo 'eval "$(rbenv init -)"' >> ~/.bashrc |
|
source ~/.bashrc # Reflect .bashrc |
|
rbenv install -l # Check version list |
|
rbenv install 2.6.5 |
|
rbenv global 2.6.5 |
|
ruby -v |
|
irb -v |
|
|
|
### PHP |
|
git clone https://github.com/CHH/phpenv.git |
|
UPDATE=yes ./phpenv/bin/phpenv-install.sh |
|
echo 'export PATH="$PATH:$HOME/.phpenv/bin"' >> ~/.bashrc |
|
echo 'eval "$(phpenv init -)"' >> ~/.bashrc |
|
source ~/.bashrc # Reflect .bashrc |
|
(要修正) |
|
|
|
### Go (https://github.com/moovweb/gvm) |
|
bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer) |
|
"source /home/sawa/.gvm/scripts/gvm" >> ~/.bashrc |
|
gvm version |
|
gvm listall |
|
gvm install go1.14 -B |
|
gvm use go1.14 --default |
|
go version |
|
|
|
### Rust |
|
brew install rustup |
|
rustup-init -y |
|
echo 'export PATH="$PATH:$HOME/.cargo/bin"' >> ~/.bashrc |
|
source ~/.bashrc # Reflect .bashrc |
|
rustc -V |
|
cargo -V |
|
|
|
### Elixir (https://asdf-vm.com/#/core-manage-asdf-vm?id=install-asdf-vm) |
|
brew install coreutils automake autoconf openssl libyaml readline libxslt libtool unixodbc unzip curl unixodbc fop # Install dependencies |
|
brew install asdf |
|
echo '. $(brew --prefix asdf)/asdf.sh' >> ~/.bashrc |
|
echo '. $(brew --prefix asdf)/etc/bash_completion.d/asdf.bash' >> ~/.bashrc |
|
source ~/.bashrc # Reflect .bashrc |
|
asdf plugin-add erlang |
|
asdf list-all erlang # Check version list |
|
asdf install erlang 22.2.1 |
|
asdf global erlang 22.2.1 |
|
asdf plugin-add elixir |
|
asdf list-all elixir # Check version list |
|
asdf install elixir 1.9.4 |
|
asdf global elixir 1.9.4 |
|
asdf current |
|
elixir -v |
|
iex -v |
|
|
|
### Haskell |
|
curl -sSL https://get.haskellstack.org/ | sh |
|
stack upgrade |
|
stack setup |
|
ghci --version |
|
|
|
### Julia (https://julialang.org/downloads/) |
|
wget https://julialang-s3.julialang.org/bin/linux/x64/1.3/julia-1.3.0-linux-x86_64.tar.gz |
|
tar -zxvf julia-1.3.0-linux-x86_64.tar.gz |
|
sudo mv julia-1.3.0 /usr/share/julia |
|
echo 'export PATH="$PATH:/usr/share/julia/bin"' >> ~/.bashrc |
|
source ~/.bashrc # Reflect .bashrc |
|
julia -v |
How to check GPU vRAM