Nvidia Unveils Futuristic Gaming Experience at Computex 2023
News

Nvidia Unveils Futuristic Gaming Experience at Computex 2023, Blending Gaming and AI

by Isabel
May 29, 2023
0

At Computex 2023, Nvidia displays a futuristic gaming experience that...

Read more
Adobe Introduces Powerful Generative AI Tools in Photoshop

Adobe Introduces Powerful Generative AI Tools in Photoshop Beta

May 29, 2023
Adobe Photoshop's Generative Fill Feature

Exploring the Power of Adobe Photoshop’s Generative Fill Feature

May 27, 2023
NVIDIA and Microsoft Partner to Accelerate AI

NVIDIA and Microsoft Partner to Accelerate AI

May 25, 2023
google photos security and privacy

Exploring the Top 5 Privacy and Security Risks of using Google Photos

May 24, 2023
What is langchain

Experience the Power of Langchain: The Next Generation of Language Learning

May 5, 2023
Flowise AI A Drag-and-Drop UI for Building LLM Flows

Flowise AI: A Drag-and-Drop UI for Building LLM Flows

May 23, 2023
QLoRA Fine-tune LLMs

QLoRA: Efficient Finetuning of Quantized LLMs

May 29, 2023
Bard API key

Everything You Need to Know About Google’s Bard API Key

May 20, 2023
Microsoft Build 2023 Unveiling the Power of AI and Innovation

Microsoft Build 2023: Unveiling the Power of AI and Innovation

May 24, 2023
Everything you need to know about AutoGPT

Everything you need to know about AutoGPT

May 4, 2023
Cloudbooklet
  • News
  • Artificial Intelligence
  • Linux
  • Google Cloud
  • AWS
No Result
View All Result
Cloudbooklet
  • News
  • Artificial Intelligence
  • Linux
  • Google Cloud
  • AWS
No Result
View All Result
Cloudbooklet
No Result
View All Result
Home Google Cloud

Install Rust on Ubuntu 18.04 LTS

by Cloudbooklet
November 27, 2019
in Google Cloud
Reading Time: 3 mins read
Install Rust on Ubuntu 18.04 LTS
Share on FacebookShare on TwitterShare on WhatsAppShare on Telegram

Install Rust on Ubuntu 18.04 LTS. Rust is fast and memory efficient with no runtime or garbage collector and easily integrate with other languages.

In this guide you are going to learn how to install Rust language on Ubuntu 18.04 LTS and create a project.

You might also like

How to Setup SSH Keys on Ubuntu

How to Setup SSH Keys on Ubuntu 20.04

May 31, 2023
DragGAN AI editing Tool Install and Use DragGAN Photo Editor

DragGAN AI editing Tool Install and Use DragGAN Photo Editor

May 27, 2023

You can install Rust on the following platforms also.

Prepare yourself for a role working as an Information Technology Professional with Linux operating system

Install Rust Programming Language

SSH to your Ubuntu system or server and download Rust using rustup

sudo apt update
sudo apt upgrade

curl https://sh.rustup.rs -sSf | sh

Now Rust will be downloaded and you will get a prompt to choose the installation options.

Choose Proceed with Installation (default) and hit Enter.

Install Rust on Ubuntu

Now latest stable version of Rust will get installed and you will get a confirmation similar to the one below.

Rust Installed on Ubuntu

The installation script automatically adds Rust to your system path after your next login to SSH. If you need to use Rust immediately without restarting terminal you can add Rust to path manually.

source $HOME/.cargo/env

Now you can verify the version of Rust installed in your Ubuntu.

rustc --version

Output
rustc 1.31.1 (b6c32da9b 2018-12-18)

Install Build Tools for Rust

Rust program needs to be complied before running the file. So you need to install build-essentials

sudo apt install build-essential

Create a Rust Project

Once Rust is installed you can create your first project.

mkdir ~/projects
cd ~/projects
mkdir hello_world
cd hello_world

Create a new file with the .rs extension. If you are using more than one word for your file name you need to use underscore hello_world.rs instead of helloworld.rs

sudo nano hello_world.rs

Paste the following code inside the new file.

fn main() {
println!("Hello, world!");
}

Hit Ctrl + X followed by Y and Enter to save the file.

Now compile and run the program.

rustc hello_world.rs 
./hello_world

You will see the output of your Rust code.

Hello, world!

Now Rust is installed on your Ubuntu and you can create your blazing fast project using Rust language.

Continue Reading
Tags: RustUbuntu 18.04
ShareTweetSendShare
Cloudbooklet

Cloudbooklet

Help us grow and support our blog! Your contribution can make a real difference in providing valuable content to our readers. Join us in our journey by supporting our blog today!
Buy me a Coffee

Related Posts

Set Up Deep Learning with Nvidia, Cuda, cuDNN on Ubuntu

How to Set Up Deep Learning with Nvidia, CUDA, cuDNN on Ubuntu 22.04

May 27, 2023
How to Install or Upgrade PHP 8.2 on Ubuntu 22.04

How to Install or Upgrade PHP 8.2 on Ubuntu 22.04

April 13, 2023
How to Change Timezone on Ubuntu 22.04

How to Change Timezone on Ubuntu 22.04

May 16, 2023
How to Install Ansible on Ubuntu 22.04

How to Install Ansible on Ubuntu 22.04

May 19, 2023

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

I agree to the Terms & Conditions and Privacy Policy.

Cloudbooklet

Welcome to our technology blog, where we explore the latest advancements in the field of artificial intelligence (AI) and how they are revolutionizing cloud computing. In this blog, we dive into the powerful capabilities of cloud platforms like Google Cloud Platform (GCP), Amazon Web Services (AWS), and Microsoft Azure, and how they are accelerating the adoption and deployment of AI solutions across various industries. Join us on this exciting journey as we explore the endless possibilities of AI and cloud computing.

  • About
  • Contact
  • Disclaimer
  • Privacy Policy

Cloudbooklet © 2023 All rights reserved.

No Result
View All Result
  • News
  • Artificial Intelligence
  • Linux
  • Google Cloud
  • AWS

Cloudbooklet © 2023 All rights reserved.

This website uses cookies. By continuing to use this website you are giving consent to cookies being used. Visit our Privacy and Cookie Policy.