[JAVA] How to install the language used in Ubuntu and how to build the environment

Recently, I have been studying by preparing an environment with VM for each backend language, and recently I am managing the environment construction method with Gist, but somehow Qitta. * * However, Gist is written in English.

environment

** This is the place to build a CUI or GUI virtual environment using Ubuntu. **

Ruby on Rails Install latest version

terminal


# install in one time
sudo apt install autoconf bison build-essential libssl-dev libreadline-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm-dev

# install rbenv
# rbenv is tool to manage a few of ruby versions and enable to change ruby ver. project by project.
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
source ~/.bashrc
git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build

# Install ruby
rbenv install --list
rbenv install 2.〇.〇
rbenv global 2.〇.〇

# Instal yarn
# Rails6 needs webpacker, and Webpacker needs yarn to install
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt update
sudo apt install yarn

# Install Rails
gem install rails --no-document

# install webpacker
# inner App
rails webpacker:install

Install RubyonRails by "apt install"

terminal


sudo apt install -y ruby ruby-dev build-essential
sudo apt install yarn

sudo gem install rails

Nodejs rails6 uses webpacker, which needs nodejs

terminal


# first, install nodejs and npm
sudo apt install -y nodejs npm

# install n-package
sudo npm install n -g

# by n-package, install node
sudo n stable

# uninstal old nodejs and npm, and re-login
sudo apt purge -y nodejs npm
exec $SHELL -l

# confirm
node -v

Rust when discord changed golang to Rust, I just tried this and coded a little.

terminal


sudo apt install build-essential

# install rust
curl https://sh.rustup.rs -sSf | sh

# add the pass
source $HOME/.cargo/env

Java

terminal


sudo apt update
sudo apt install git
sudo apt install openjdk-11-jdk

# confirmation
java --version

PHP Python

Recommended Posts

How to install the language used in Ubuntu and how to build the environment
Install Rust in WSL2 Ubuntu environment and build WASM build environment
What happened in "Java 8 to Java 11" and how to build an environment
How to install and configure the monitoring tool "Graphite" on Ubuntu
Install Ubuntu20.04 on RaspberryPi 4 and build Kubernetes to run the container
How to install Titan2D (v4.2.0) in virtual environment
How to Install Oracle JDK 1.8 in Ubuntu 18.04 LTS?
How to build a Pytorch environment on Ubuntu
How to build the simplest blockchain in Ruby
Command memo to install xeyes in ubuntu docker environment
Install Ubuntu 20.04 in virtual box on windows10 and build a development environment using docker
How to install Docker in the local environment of an existing Rails application [Rails 6 / MySQL 8]
How to quit Docker for Mac and build a Docker development environment with Ubuntu + Vagrant
Install docker and docker-compose on ubuntu in the shortest process
How to Install Elixir and Phoenix Framework on Ubuntu 20.04 LTS
How to install Web application for each language in Nginx
How to install PHP 7.4 and SQL Server drivers in CentOS 7.7
[Virtualization] Install VMware and build Ubuntu (20.04)
How to install Bootstrap in Ruby
How to install WildFly on Ubuntu 18.04
How to build vim on Ubuntu 20.04
How to install Swiper in Rails
How to install and use Composer on an ECS instance on Ubuntu 16.04
[Webpacker] Summary of how to install Bootstrap and jQuery in Rails 6.0
Until you build the docker environment and start / stop the Ubuntu container
[jOOQ] How to CASE WHEN in the WHERE / AND / OR clause
Install Rails in the development environment and create a new application
[Rails] How to reset the database in production environment (Capistrano version)
Install PHP7.4 to build CentOS7 Laravel environment
How to reflect seeds.rb in production environment
How to install production Metabase on Ubuntu
How to change the timezone on Ubuntu
How to build SquashTM and how to support Japanese
How to install the legacy version [Java]
How to find the tens and ones
How to get the date in java
How to use environment variables in RubyOnRails
How to build Rails 6 environment with Docker
How to execute with commands of normal development language in Docker development environment
What to do and how to install when an error occurs in DXRuby 1.4.7
How to change the maximum and maximum number of POST data in Spark
[Rails] How to apply the CSS used in the main app with Administrate
How to create your own annotation in Java and get the value
(Memo) How to solve dummy output in Ubuntu 20.04
How to check the logs in the Docker container
Build and install Wireshark Development Release (3.3.1) on Ubuntu
How to configure ubuntu to be used on GCP
How to install network drivers on standalone Ubuntu
How to add sound in the app (swift)
How to install NVIDIA driver on Ubuntu 18.04 (Note)
How to install multiple JDKs on Ubuntu 18.04 LTS
How to build API with GraphQL and Rails
How to find the total score and average score
Reference articles and books used to install CentOS
[Ruby on Rails] How to install Bootstrap in Rails
[Rails] How to build an environment with Docker
How to build parquet-tools and merge Parquet files
How to log in automatically when Ubuntu restarts
How to build an executable jar in Maven
[Rails] How to use PostgreSQL in Vagrant environment
How to check Rails commands in the terminal